1 | | = Introduction = |
2 | | [[Image(WeatherDeviceUI4.png, align=right, 30%)]] |
3 | | The Weather plugin is a [http://wiki.micasaverde.com/index.php/Luup_Plugins Luup component] that captures, displays, and periodically updates Temperature and Humidity data based upon Vera's current [http://wiki.micasaverde.com/index.php/Location Location]. |
4 | | |
5 | | = How does it work = |
6 | | The plugin uses the Latitude/Longitude values configured in Vera's [http://wiki.micasaverde.com/index.php/Location Location] settings, and data provided by the ''Unofficial'' Google Weather service, to retrieve: |
7 | | |
8 | | * Temperature - The Current temperature |
9 | | * Low Temperature - The ''estimated'' low temperature |
10 | | * High Temperature - The ''estimated'' high temperature |
11 | | * Humidity - The ''estimated'' humidity |
12 | | |
13 | | Each of these values is presented as a Child Device of the Weather plugin, implementing the respective [http://wiki.micasaverde.com/index.php/Luup_UPNP_Files UPnP Service]. They're all set to be visually ''grouped'' in the UI/Presentation. |
14 | | |
15 | | Behind the scenes, the plugin uses Vera's ''Latitude'' and ''Longitude'' values, derived from the User-specified [http://wiki.micasaverde.com/index.php/Location Location] settings, to help form a URL to the Google Weather API. This URL call looks like: |
16 | | |
17 | | http://www.google.com/ig/api?weather=,,,40980465,-72212690 |
18 | | |
19 | | The plugin selects elements from the XML output, and translates them into values that are set upon the respective Child Devices. |
20 | | |
21 | | The Weather plugin retrieves the Weather data at startup, and again every 30 minutes after that. |
22 | | |