craftbeerpi3
craftbeerpi3 copied to clipboard
Fermetation Supervision
Hi people, great system. I want to create a module to supervise the fermentation, so in case a temp goes too hi or too low it will generate an alarm, send sms or email. Or simple run a user shell script. In that respect do you think it should be implemented as a background task? If so how do you iterate the fermentation tasks ?
Thanks in advance.
Lalo
Yep would basically be a plugin with just a background task
You can find the array of fermenters at:
cbpi.cache.get("fermenter")
for key, value in cbpi.cache.get("fermenter").iteritems():
to iterate through where value is the instance
to see what an instance looks like http://ip.of.cbpi5000/api/fermenter/1 will show the string dump of the fermenter instance
Thanks.
The first stab is here:
https://github.com/lalo-uy/SupervisedFermentor