Temperaturnu

From ago control wiki
(Difference between revisions)
Jump to: navigation, search
m
Line 3: Line 3:
 
= Configuration =
 
= Configuration =
  
/etc/opt/agocontrol/conf.d/system.conf
+
Parameters used from /etc/opt/agocontrol/conf.d/system.conf
 
  [system]
 
  [system]
 
  units=SI
 
  units=SI
 
+
 
  # Coordinates for sunrise/sunset event
 
  # Coordinates for sunrise/sunset event
 
  lat=56.05
 
  lat=56.05
 
  lon=12.7
 
  lon=12.7
 +
 +
Lat/Lon will be used to locate the weather station with closest proximity to you.
  
 
/etc/opt/agocontrol/conf.d/temperaturenu.conf
 
/etc/opt/agocontrol/conf.d/temperaturenu.conf
Line 23: Line 25:
 
  chmod +x /opt/agocontrol/binagotemperaturenu.pi
 
  chmod +x /opt/agocontrol/binagotemperaturenu.pi
  
Enable a service as per [[autostarting devices|Autostart_Devices]]
+
Enable a service as per [[autostarting devices|Autostart Devices]]

Revision as of 10:29, 12 January 2014

This is a module getting temperature data from temperatur.nu which is mainly relevant in Sweden.

Configuration

Parameters used from /etc/opt/agocontrol/conf.d/system.conf

[system]
units=SI

# Coordinates for sunrise/sunset event
lat=56.05
lon=12.7

Lat/Lon will be used to locate the weather station with closest proximity to you.

/etc/opt/agocontrol/conf.d/temperaturenu.conf

[temperaturenu]
waittime=300
debug=false

Waittime cannot be shorter than 300 seconds due to API constraints

Installation

sudo apt-get install python-lxml

Place agotemperaturenu.pi in /opt/agocontrol/bin

chmod +x /opt/agocontrol/binagotemperaturenu.pi

Enable a service as per Autostart Devices

Personal tools