REST - addycakes/Domotics GitHub Wiki

All the Arduinos are running a variation of the default bridge script. The code is available here.

The main raspberry pi runs two python scripts via cron schedule. The first (code here) checks the status of the house sensors. The second (code here) monitors the electricity and water consumption/generation. They run every minute and 5 minutes respectively.

The scripts create plist files out of the data received from the REST calls to the arduinos. These plists and then downloaded by the iOS device via ssh. iOS devices can easily read plist files, and since these remain fairly small in size (<500kb) I chose to use them. XML or SQL database types could also work.