<div dir="ltr">This is great. Now when someone asks you "What do you use Squeak for?" you can sincerely answer: "All kinds of shit!"<br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Apr 2, 2020 at 1:37 PM tim Rowledge <<a href="mailto:tim@rowledge.org">tim@rowledge.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Living waaaaay out in the middle of nowhere (it isn't a joke that I have an underground laboratory in the middle of the rainforest on a Pacific island) we have a well and a septic system. One of the problems we face is too-frequent minor electrical glitches that can trip circuit breakers. That's annoying for in-house stuff but if the breaker/gcfi for the septic system pump trips then poop don't pump and after a day or two a shrieking alarm wakes us up - because of course it happens at night.<br>
<br>
So to monitor the power actually at the pump and get a warning when it is absent - before the shriek - I adapted one of the little ESP8266 wifi SBCs I've been using for temp/humidity monitoring in the house. Since I don't really care about the outside temp/humidity for this purpose I just removed the sensor and the relevant code and reflashed a board so it simply reports status; and of course if there is not power it can't report anything. At the Squeak end I simply track the last timestamp received from that unit and if nothing has come in for 30 minutes it notifies me.<br>
<br>
Of course this is really nothing like as sophisticated as the usage LabWare put an extension of my MQTT code to; that's monitoring the power grid for Scottish Power and apparently several US states.<br>
<br>
tim<br>
--<br>
tim Rowledge; <a href="mailto:tim@rowledge.org" target="_blank">tim@rowledge.org</a>; <a href="http://www.rowledge.org/tim" rel="noreferrer" target="_blank">http://www.rowledge.org/tim</a><br>
Strange OpCodes: XER: Exclusive ERror<br>
<br>
<br>
<br>
</blockquote></div><br clear="all"><br>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div>Eric</div></div></div>