[squeak-dev] Graphing weather data
David T. Lewis
lewis at mail.msen.com
Wed Dec 21 02:47:39 UTC 2016
On Tue, Dec 20, 2016 at 05:36:16PM -0800, tim Rowledge wrote:
> Now that I have my Pi based weather station in operation and mounted up on the peak of my garage roof ...
Sounds like fun :-)
> ??? I need to do something with the data it provides. Sadly the code reading the sensors is in Python (for now!) but it sends it as MQTT packets to a mac-mini running the broker. I???m working with Craig on an MQTT client (very early state on http://www.squeaksource.com/@gWFeIvLx-rTHKE2R/Gtrt3pje) to read it but then what?
> Are there any current projects that will work in squeak5.1/spur that can draw nice graphs? What kind of graphs are good for weather data? Should there be chocolate? I guess I ought to store some amount of collected data so maybe it???s time I got to grips with Magma. I???m interested in all ideas that might lead somewhere fun with this. With those ESP8266 wi-fi enabled sorta-arduino things so cheap and easy to set up there must be a gazillion interesting things that could be monitored and analyzed and graphed and indeed actuated in response; let???s not forget that MQTT works both ways.
We had some very suitable graph drawing packages about 10 or 15 years ago,
so I pulled out some old images that I was working on back then to have a
look. I remember being able to interact directly with the graphs, and open
inspectors on the points on the graph to look at the data, that sort of thing.
Unfortunately I find to my considerable dismay that I cannot run those images
any mmore. I suspect a few too many numbered primitive updates in the intervening
years, yuk. Might be time to move to SqueakJS.
> How about a rain sensor sending a message that its raining (duh) which gets collected and turned into a message to your car to close the sunroof before the velvet seat covers (with painted portrait of Elvis, natch) get wet? Or a strain gauge on your security fence alerting you that something heavier than 20 pounds has climbed over so the remote gatling needs hotting up?
>  Pi model A+ with gpio attached interface board for rain bucket, wind speed/direction, outdoor temp/humidity, indoor temp, RTC and USB attached Ethernet interface to POE adaptor. WiFi wasn???t practical due to metal roof. Besides, POE means I can hard-reboot by pulling a plug in my server room :-)
> tim Rowledge; tim at rowledge.org; http://www.rowledge.org/tim
> Strange OpCodes: IIB: Ignore Inquiry and Branch anyway
More information about the Squeak-dev