Aug 30 2013 0

Certificate Expires Soon (Mac OS X Server)

Since a week or so I am receiving daily emails from my Mac Mini (running Mac OS X Server) that some certificates are expiring soon. Some of them could be easily renewed using Server.app by going to the Alerts and clicking on Renew’.

But some of them there is only the warning but not an option to renew the certificates

Aug 25 2013 0

Additional Rules

##Unhealthy Humidity##

Ever since we moved into our new apartment we noticed that the relative humidity is very low, sometimes even as low as 20%. This has caused some sparkling moments between my wife and myself…

Aug 22 2013 0

Rule definitions

In my previous post I detailed the changes to the data collecting Python script and an additional script fired by crontab. In this post I will describe the code behind the rule-engine.

Table to store rule definitions

Aug 22 2013 0

DNSSEC Issues

I recently noticed that when I was using Google Public DNS I could not reach my own domain at littlegemsoftware.com. Using other DNS services like my own ISP or for instance OpenDNS everything was working fine.

If it would have been just for me, switching to another DNS service would have been fine. However I am running services on littlegemsoftware.com for my iOS application WoW Realms and obviously I have no say in the matter what my users will be using for their DNS service.

Aug 21 2013 0

Integrating Pushover into Raspberry Pi Project

In my previous post I talked about using the Pushover service for sending notifications from the Raspberry Pi to my mobile devices. Now it is time to actually define some of these events.

Event Condition Interval
New Record New highest/lowest temperature detected 5 min
No Data Logged No new data since at least 5 minutes 5 min
Temperature Difference Rise/Drop >= 1°C 30 sec
Aug 13 2013 0

Improving MySQL query performance

Performance for the charts pages was getting worse and worse the more data was collected from all the sensors connected to the Raspberry Pi. It was not only taken a lot of time to get any results, but also CPU usage by the MySQL process jumped to around 90%.

High time to do some further optimization.

Aug 08 2013 0

Sending Push Notifications from RPi using Pushover

My Raspberry Pi has been humming along for quit some time now. Next thing to add to the project is a mechanism to send notifications when certain events occur (sudden increase/drop in temperature, etc.). Probably the simplest method for sending these type of notifications would probably be via email, but I don’t like it. I would rather implement some sort of push notifications.

I am already using Pushover to have IFTTT send notifications from several services to my mobile devices. So for me it makes sense to use the Pushover service. The Pushover service itself is free (no monthly fees), however the client applications are priced at $4.99 (iOS or Android).

Aug 02 2013 0

Running it all on the Raspberry Pi (Part 3) - Performance Issue Resolved

In my previous two post (Part 1 and 2) I described how I moved all of the processes for tracking the sensor data onto the Raspberry Pi. I ended the second post with some concerns in relation to CPU usage of the php-cgi process being to high (around 100% when accessing the charts).

The php-cgi process was taking care of calling the PHP script, which then would access the SQLite database and return data for one particular sensor. Since a SQLite database can only be accessed by one process at the time (database locked until released/closed) special steps had been taken to wait for the database to be available to be queried (i.e. by using the busyTimeout()-routine). In most scenarios this would work fine, but since the sensor page fetches data for three sensors simultaneously, these processes were mainly waiting for each other to finish.

This blog is powered by Blot