craftbeerpi3 icon indicating copy to clipboard operation
craftbeerpi3 copied to clipboard

Fermetation Supervision

Open lalo-uy opened this issue 7 years ago • 2 comments

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

lalo-uy avatar Jul 30 '17 17:07 lalo-uy

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

mrillies avatar Sep 22 '17 12:09 mrillies

Thanks.

The first stab is here:

https://github.com/lalo-uy/SupervisedFermentor

lalo-uy avatar Apr 19 '18 12:04 lalo-uy