Changes between Version 10 and Version 11 of WikiStart


Ignore:
Timestamp:
2012-09-01 22:36:05 (12 years ago)
Author:
guessed
Comment:

Convert from Google Weather feed to using Weather Underground (WUI)

Legend:

Unmodified
Added
Removed
Modified
  • WikiStart

    v10 v11  
    11= Introduction = 
    2 [[Image(WeatherDevice.png, align=right, 30%)]] 
    3 [[Image(WeatherDeviceUI4.png, align=right, 30%)]] 
     2[[Image(WeatherUndergroundUI4.png, align=right, 30%)]] 
     3[[Image(WeatherUndergroundUI5.png, align=right, 30%)]] 
    44The 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]. 
    55 
    66= How does it work = 
    7 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: 
     7Each user must register with [http://wunderground.com Weather Underground] to obtain a key.  The plugin, when configured with the key, uses the Latitude / Longitude values configured in Vera's [http://wiki.micasaverde.com/index.php/Location Location] settings, and data provided by the Weather Underground (WUI) data feed, to retrieve: 
    88 
    99 *  Temperature - The Current temperature 
     
    1414Each 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. 
    1515 
    16 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: 
     16Behind 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 Weather Underground (WUI) API.  The user also has the option of explicitly specifying a location string within the Plugin itself. 
    1717 
    18   https://www.google.com/ig/api?weather=,,,40980465,-72212690 
     18The URL calls to WUI look like: 
     19 
     20  https://api.wunderground.com/api/{''key''}/conditions/forecast/q/{''lat''},{''long''}.xml OR; 
     21 
     22  https://api.wunderground.com/api/{''key''}/conditions/forecast/q/{''location''}.xml 
    1923 
    2024The plugin selects elements from the XML output, and translates them into values that are set upon the respective Child Devices. 
    2125 
    22 The Weather plugin retrieves the Weather data at startup, and again every 30 minutes after that. 
     26The Weather plugin retrieves the Weather data at startup and, by default, every 30 minutes after that. 
    2327 
    2428= Installation =