Difference between revisions of "Weather monitor"

From EttiWiki
Jump to navigationJump to search
m (Database)
(Server)
Line 22: Line 22:
  
 
The database used is called [http://oss.oetiker.ch/rrdtool/ RRDtool] by Tobi Oetiker. It handles storing data at fixed intervals while updates come randomly, accumulating data and creating graphs. The latter is not used, instead a browser-based charting API is used to create dynamic charts.
 
The database used is called [http://oss.oetiker.ch/rrdtool/ RRDtool] by Tobi Oetiker. It handles storing data at fixed intervals while updates come randomly, accumulating data and creating graphs. The latter is not used, instead a browser-based charting API is used to create dynamic charts.
 +
 +
== Server ==
 +
The server's job is to run the database and web server, so that clients can connect with a browser and retrieve and display all weather data.
 +
* The server is a standard Linux PC, but not a common desktop machine. Instead, a [http://www.raspberrypi.org/ Raspberry PI] is used.
 +
* The server runs an [http://tomcat.apache.org/ Apache Tomcat] web server.

Revision as of 09:31, 7 March 2013

The basic idea of the weathermon project is to obtain, record and monitor the weather at my home. All weather data sent from wireless sensors is to be stored in a database, from which different graphs are generated that can be monitored on a PC, over the Internet and on a smartphone.

System Overview

  1. Weather data is measured by sensors outside and inside the house. These sensors transmit all measured values via radio link.
  2. Transmitted values are received by a weather station and displayed for convenience.
  3. Transmitted values are also received by a small USB device which sends them to the PC connected.
  4. The PC reads received measurements and stores them in a database.
  5. From this database a web server serves all measurements to clients for display.

Sensors

The sensors and the weather station come as a set from ELV:

Receiver

For receiving the 868,35 MHz signals the following device from ELV is used:

Database

Data from weather sensors is stored in a Round Robin Database (RRDB) at different resolutions. This means, while high-resolution data is stored for the last 90 days, it also gets accumulated into daily data which is then kept for 10 years.

The database used is called RRDtool by Tobi Oetiker. It handles storing data at fixed intervals while updates come randomly, accumulating data and creating graphs. The latter is not used, instead a browser-based charting API is used to create dynamic charts.

Server

The server's job is to run the database and web server, so that clients can connect with a browser and retrieve and display all weather data.

  • The server is a standard Linux PC, but not a common desktop machine. Instead, a Raspberry PI is used.
  • The server runs an Apache Tomcat web server.