Python module to write FarmBot Celery Script JSON Sequences
with Sequence("My Sequence", "green") as s:
s.wait(milliseconds=1000)
s.take_photo()
{
"name": "My Sequence",
"color": "green",
"body": [
{
"kind": "wait",
"args": {
"milliseconds": 1000
}
},
{
"kind": "take_photo",
"args": {}
}
]
}
For more examples, see /examples.py.