Skip to main content

Trigger Bartendro from Pythonscript

Hello,

I want to build a hardware control for my bartendro with python.

Currently I work with selenium and the pythonvirtual display, because simply calling the recipe page is not enough.

My problem is that loading the pyvirtualdisplay takes too long.

Does anyone have an idea how I can make the call faster?

from pyvirtualdisplay import Display

from selenium import webdriver

display = Display(visible=0, size=(50, 50))

display.start()

browser = webdriver.Firefox()

browser.get('http://bartendro.partyrobotics.com/drink...)

browser.close()

Answer this question I have this problem too

Is this a good question?

Score 1
Add a comment

1 Answer

The software already is shipped with a python made web service where you can call it directly. Look at the bartender dispense test. There is a function on the WS that takes dispenser number and milliliters you want to dispense. I’va just adapted that to my needs.

Was this answer helpful?

Score 0
Add a comment

Add your answer

Christoph will be eternally grateful.
View Statistics:

Past 24 Hours: 0

Past 7 Days: 0

Past 30 Days: 1

All Time: 27