I have extended ospiLCD to look at pump pressure via the a/d on OSPi and send emails when pressure is out of range. When it gets too far out it will reset the active zones and send an email. I started with ospiLCD mainly because it was a fairly simple place to start that used the API. I used total minutes as an indication the system was running – pump master zone would be better I suppose but I didn’t know quite how to do that. I disabled the LCD display but left the code in the file so it can be used if needed. I changed it to run a while loop forever rather than relying on cron to rerun it as I needed to do some timing. I haven’t finished testing it but would welcome some other eyes on it and testing. For others wanting to put together something in python using the API I suggest they look at ospiLCD if they need some info with how things are done.
What’s the best/preferred way to share the code? It’s about a 10k file size.