Weatherreporter

From ago control wiki
(Difference between revisions)
Jump to: navigation, search
Line 1: Line 1:
 +
= Weather Rpoerter =
 
The agoweatherreporter module uploads environment data such as temperature to sites for weather crowd sourcing.
 
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.
 
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.
  
 +
== Configuration ==
 
Config file example
 
Config file example
 
<pre>
 
<pre>

Revision as of 16:55, 1 January 2017

Contents

Weather Rpoerter

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.

Configuration

Config file example

[weatherreporter]
log_level=INFO

[General]
Delay = 150
sensors=S1-temp,S2-temp

[WeatherUnderground]
Password=<your password>
Delay=151

[temperatur.nu]
Delay=152


[S1-temp]
Desc=Garage sensor
UUID = <UUID of the device>>
WU-Station=<station for Weather Underground>
TN-Hash = <Temperature.nu API key>

[S2-temp]
Desc=Entrance sensor
UUID = <UUID of the device>>



[weatherreporter]

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

Parameters explained:

Delay              - Delay between uploads
[S1-temp]          - Just a name you select
Hash =             - When registering your stattion you'll get a key
Sensor = S1        - The agocontrol device name
UUID =             - The agocontrol UUID for the device

Install package

sudo apt-get install agocontrol-weatherreporter

Dependencies

Likely depreciated:

sudo apt-get install python-configobj

or use:

<<Is this still needed?>>

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

Enable and start daemon

Then enable and start the daemon

sudo systemctl enable agoweatherreporter.service
sudo systemctl start agoweatherreporter.service
Personal tools