Esempio n. 1
0
#!/usr/bin/env python
import time
import common

r = common.make_robot()

for i in range(31):
  print "=== ", i
  with r.OpenValve(i):
    time.sleep(5)
Esempio n. 2
0
"""
BITTERS = set([
    'angostura bitters',
    'peychauds bitters',
    'rose',
])
"""

BITTERS = set([
    'agave syrup',
])


def main(robot):
  ingredients = []
  for name in INGREDIENTS_ORDERED:
    if name in BITTERS:
      ingredients.append(Ingredient(Oz(1), name))

  recipe = Recipe('prime-bitters', ingredients)
  print recipe

  for action in actions_for_recipe(recipe):
    print action
    action(robot)


if __name__ == "__main__":
  main(common.make_robot())