Northern hemisphere summer may be over, but no more heatwaves doesn’t mean the weather shouldn’t be monitored. In fact, we should probably pay yet more attention to it. To that end we present here instructions for perhaps the world’s most over-engineered thermometer, humidity meter, moisture sensor and air-quality meter.
Inspired by this month’s coding cover feature, we thought that we’d continue our voyage of programmatic discovery. But this time we’re wanted to get physical. Physical computing, that is. We’re going to be reading environmental sensors and displaying data on a small TFT screen, all through the magic of a Raspberry Pi. We’ll be using Python again, but also the venerable Gnuplot (for drawing graphs), Cron as well as a smidgeon of shell scripting to automate the data gathering.
As we’ll soon discover, sometimes code can appear unwieldy. However, by seeing through boilerplate code and concentrating only on the lines that matter, we’ll hopefully help you to leverage the incredible power of Python. In addition, you’ll find all of the code (thoroughly tested, of course) on our lovely new Gitlab repo at: https://gitlab.com/lxfjb/pydisplay.
his month’s coding cover feature inspired us to continue our voyage of programmatic(for drawing graphs) as well as a smidgeon of shell scripting to automate the data gathering.