Linux Format

FEATHER-LIGHT WEATHER MONITOR

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.

You’re reading a preview, subscribe to read more.

More from Linux Format

Linux Format1 min read
Ultimate Desktop Upgrade!
LXF316 will be on sale Tuesday 28th May 2024 Word processors that can help craft that novel you’ve always been talking about and organise large projects. Revive the old roleplaying system for a digital age as we recreate our own play-by-mail gaming
Linux Format4 min read
Linux
The #1 open source mag Future Publishing Limited, Quay House, The Ambury, Bath, BA1 1UA Email contact@linuxformat.com EDITORIAL Editor-in-chief Neil Mohr Art editor Fraser McDermott Production editor Katharine Davies Group editor-in-chief Graham Bar
Linux Format2 min read
Platform Support And Editions
Kali has a huge variety of install options, and these include images for ARM-based computers and pre-made virtual K machine images for most of the popular virtualisers. It’s even possible to install a version of Kali on to an Android-powered device.

Related Books & Audiobooks