Weatherreporter

From ago control wiki
(Difference between revisions)
Jump to: navigation, search
(Created page with "The agoweatherreporter module uploads environment data such as temperature to sites for weather crowd sourcing. The module is listening for event.environment.temperaturechang...")
 
Line 22: Line 22:
 
  Sensor = S11                                  - The aGo control device name
 
  Sensor = S11                                  - The aGo control device name
 
  UUID = 03f3f1d3-41d2-41bc-10d9-7656181a2e28    - The aGo control UUID for the device
 
  UUID = 03f3f1d3-41d2-41bc-10d9-7656181a2e28    - The aGo control UUID for the device
 +
 +
== Installation ==
 +
cd /home/<your username>
 +
git clone git://github.com/kennethreitz/requests.git
 +
cd requests
 +
sudo python setup.py install
 +
 +
cd /home/<your username>
 +
wget https://pypi.python.org/packages/source/c/configobj/configobj-5.0.6.tar.gz
 +
tar -xvf configobj-5.0.6.tar.gz
 +
cd configobj-5.0.6
 +
sudo python setup.py install
 +
 +
cd /home/<your username>
 +
wget https://pypi.python.org/packages/source/s/six/six-1.9.0.tar.gz
 +
cd six-1.9.0
 +
sudo python setup.py install

Revision as of 21:19, 24 February 2015

The agoweatherreporter module uploads environment data such as temperature to sites for weather crowd sourcing.

The module is listening for event.environment.temperaturechanged or event.environment.humiditychanged events. The config file contains a list of sensors that should be reported.

Config file example

[weatherreporter]

[Services]
Delay = 150
	[[temperatur.nu]]
		[[[Tempsensor garage]]]
		Hash = 12345678901234567890123456789012
		Sensor = S11
		UUID = 03f3f1d3-41d2-41bc-10d9-7656181a2e28

As of now, the only service supported is temperatur.nu

Parameters explained:

[[[Tempsensor garage]]]                        - Just a name you select
Hash = 12345678901234567890123456789012        - The unique hash you get when registering your weatherstation
Sensor = S11                                   - The aGo control device name
UUID = 03f3f1d3-41d2-41bc-10d9-7656181a2e28    - The aGo control UUID for the device

Installation

cd /home/<your username> git clone git://github.com/kennethreitz/requests.git cd requests sudo python setup.py install

cd /home/<your username> wget https://pypi.python.org/packages/source/c/configobj/configobj-5.0.6.tar.gz tar -xvf configobj-5.0.6.tar.gz cd configobj-5.0.6 sudo python setup.py install

cd /home/<your username> wget https://pypi.python.org/packages/source/s/six/six-1.9.0.tar.gz cd six-1.9.0 sudo python setup.py install

Personal tools