From ago control wiki
Jump to: navigation, search


The weather devices gives the condition of rain, outdoor temperature and humidity. Rain is set as a binary sensor and will be marked true if any variety of rain is detected including drizzle. Temperature and humidity are shown as multi-level sensor. This allows for graphing the data over time to view trends.

This device requires the install of the Python Weather API.

Configuration options are set in /etc/opt/agocontrol/conf.d/weather.conf:

tempunits = f
waittime = 300
  • locations_ID - the city/location to be monitored. This value is either a five digit US zip code or an international location id. This value can be determined by reading the information at this link
  • tempunits - show values in Fahrenheit (f) or Centigrade (c)
  • waititime - amount of time in seconds to wait between updates

Getting started

Temporary instructions until I learn how to create a package so this is automated...

sudo wget
sudo mv /opt/agocontrol/bin
sudo apt-get install python-pywapi
sudo nano /etc/opt/agocontrol/conf.d/weather.conf

Then edit the lines to match your location- e.g.:

tempunits = f
waittime = 300

Save and exit the file, then run

sudo chmod a+rx /etc/opt/agocontrol/conf.d/weather.conf
sudo chmod a+rx /opt/agocontrol/bin/

Then create and edit the service file:

sudo nano /lib/systemd/system/agoweather.service

Putting the following in that service file:

Description=ago control Weather Device

You should then just have to enable and start the service:

systemctl enable agoweather.service
systemctl start agoweather.service

And check it is running with:

systemctl status agoweather.service

It maybe required to reload the system daemon:

sudo systemctl --system daemon-reload
Personal tools