Site Navigation

Your Account

Choose Language

Controlling the Bartendro via network requests.

I need to control a Bartendro router board from a separate application. So, rather than having to use the bartendro GUI, I need to be able to send the router board a JSON request or something similar that says something like 'dispense 5oz dispenser 1'.

Does the software currently support this? How hard would it be to add if not? Thanks.

Answer this question I have this problem too

Is this a good question?

Score 0
Add a comment

1 Answer

Go to the UI and click the top right corner to get into the admin section, go to the booze tab and select an ingredient. Note the booze number in the URL. For example:

/admin/booze/edit/35

Note down the number 35 and do that for all the boozes you want to control. Then in the drink tab, create a cocktail that uses those boozes and give it a name. Similarly, note the drink number from the URL.

Now you’re ready to mix cocktails!

Log into the raspberry pi directly via ssh.

user: bartendro

passwd: hackme!

In a python program, use urllib(2) to fetch a web resource from

http://localhost/ws/drink/58?booze35=50&booze11=50

You’ll need to tweak the numbers in the URL to your needs. 58 = drink number you saved above. 35 is a booze number you saved. 50 = the number of ml to dispense. The same goes for booze 11 dispensing 50 ml.

Was this answer helpful?

Score 0

Comments:

Hi Pierre,

Is it also possible to use this method to adjust the dispenser speed? Is so, what would the url look like?

by

Add a comment

Add your answer

Nick will be eternally grateful.
View Statistics:

Past 24 Hours: 0

Past 7 Days: 0

Past 30 Days: 2

All Time: 243