Rock-solid RFM2Pi gateway solution

I have had a good share of frustration with damaging Raspberry Pi SD cards due to wearing out/improper shut downs as a result from power failures and was looking for solution to this sort of problems for a while. At first I thought I had the wrong SD cards, then that my power supply wasn’t good,…

Raspberry Pi root file system in read-only mode

I have found my Raspberry Pi running the root file system off a USB flash drive in no good state this morning, the following error showing up on emoncms that was installed locally: Can’t connect to database, please verify credentials/configuration in settings.php Error message: Can’t connect to local MySQL server through socket ‘/var/run/mysqld/mysqld.sock’ (2) Obviously my MySQL…

Raw infrared <> serial

When interfacing my gadgets to the physical world, I often need to deal with IR of all sorts: air conditioners, TV, audio equipment, media center and so forth. These are all of different brand, so naturally the IR protocol that the remote controls have is different. Some of the more popular ones can be decoded…

Installing emoncms’s “events” module

I use emoncms to log telemetry readings from various sources (wireless sensor nodes, software bots etc), the so logged data helps my IoT connected gadgets make decisions, based on pre-defined rules. For example, my heat pump monitors outside weather conditions (temperature, humidity, wind, time of day, day of week) and adjusts its operation accordingly. Adding notifications…