Graphing Raspberry Pi performance with sar

As part of monitoring the general health of my Raspberry Pi boxes, i like keeping a historical image of how the load was at a given time. I have real time monitoring in place, which will alert me via Pushover if something goes haywire1, and my surveillance does it’s own checking and alerts (via the same pushover container) if a sensor fails to report within a given period. I based my graph generating script on the one described here, though the memory calculation in that script is not what i wanted, and this being a memory restricted platform, i also wanted to monitor swap in/out. [Read More]

Running a Docker Swarm on a Raspberry Pi Cluster.

For a long time i’ve wanted to experiment with running a small cluster on my Raspberry Pi’s, but I’ve always had lots of other things to do. Recently i started moving my hosted services from my NAS onto a single Raspberry Pi, and came across a few older Raspberry Pi’s, and thought now is a good a time as any, so here goes. Hardware used I used the following components: [Read More]

New Toys

Controlling a 3D printer with a Raspberry Pi Preface I finally got around to getting a shiny new toy in the form of a 3D Printer. The specific model is a Wanhao Duplicator i3 Plus. While it may not be the best in terms of quality, it’s a nice “little” printer that, after a lot of tinkering, produces some fair prints. I’ve had my fair share of problems with it, for starters every bolt needed tightening upon unpacking, add to that an uneven printbed, and the general “confusion” following playing around in uncharted territory, and it pretty much sums up my first 4 weeks with it. [Read More]

Raspberry Pi Sense Hat

I recently acquired a Sense Hat, and despite not having much use for it, i decided to have some fun and learning a little along the way. The hardware The Sense-hat is a little Hat for Raspberry Pi’s that contains a bunch of sensors, along with a small 8x8 RGB LED Matrix. It contains the following sensors: Gyroscope Accelerometer Magnetometer Temperature Barometric pressure Humidity Along with the hardware, there’s an official Sense-Hat Python library available. [Read More]

Playing Around with Go

I’ve previously described my temperature monitoring solution, written in Python, and I’ve also described my various attempts at optimizing this solution, using NodeRED and Apache Camel, but all of these attempts have been focused on the server side, while the client has been mostly left to itself. The client runs on an old Raspberry Pi B+, with a total of 256MB RAM. The RPi also runs a surveillance camera, via the RPi camera module, which requires a memory split of 128 MB. [Read More]

Monitoring temperatures with Apache Camel

Intro I’ve been trying out various technologies for my temperature monitoring project, but all of them have been more or less unstable. The python solution is by far the most robust, but can lose connection to the MQTT broker, and stubbornly refuse to reconnect by itself. The Node-RED solution is, while fast to write, notoriously unstable regarding MQTT connections. Connections sit “idle” showing a connected state, while in fact they are disconnected, and there is no obvious way of reconnecting it - apart from restarting the docker container. [Read More]

Scheduling lights with Philips Hue and a Raspberry Pi

Up until a few weeks ago, i’ve been using IFTTT for controlling various automated light tasks. The lights i want to control are mostly outdoor lights, turning on at dusk, and off again at sunrise. I also automatically tone the light down and into a slight more red color in the kids rooms around bedtime, and in the living room a wee bit later :) IFTTT works, but is not very punctual. [Read More]

Monitoring temperatures with a Raspberry Pi.

I recently got into a discussion about dogs, kennels and temeratures. I have a German Shepherd, and he has a nice insulated dog house in his kennel, and the discussion was along the lines, how much heat does it take to warm up the doghouse, if it gets hotter than the outside at all. Now, a normal person would have solved this by putting a wireless meat thermometer in the doghouse, made a few readings of it with/without the dog, and compare it to the outside temperature. [Read More]

Replacing my Raspberry Pi 2 with my Synology NAS and Docker

I recently moved my server from a 2012 Mac Mini to a Raspberry Pi 2, and while the Pi 2 has been doing a great job, another option recently became available to me. I’ve been a long time user of Synology NAS products. Their products have great uptime, along with superior performance, mobile apps, file sharing etc. I’ve been using them since 2001, and have only had a single unit fail on me. [Read More]

Replacing my old server with a Raspberry Pi 2

I’ve been running a server at home for as long as i can remember. Over the years, the tasks performed by the server has varied greatly, from a complete mail/web/file server, to file/streaming/backup, and in it’s most recent incarnation, streaming/backup. Somewhere along the way (2008 or so), a Synology NAS snuck in, “hijacked” all our data, and streams to AirPlay and Chromecast devices. For the past 8 years, my server has been a Mac Mini, replaced every 3-5 years with the latest model. [Read More]