Changes between Version 1 and Version 2 of WikiStart


Ignore:
Timestamp:
2010-04-03 03:46:53 (15 years ago)
Author:
guessed
Comment:

Initial transcribe from page on wiki.micasaverde.com

Legend:

Unmodified
Added
Removed
Modified
  • WikiStart

    v1 v2  
    1 = Welcome to Trac 0.11.6 = 
     1[[Image(WeatherDevice.png)]] 
     2= Introduction = 
     3The 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]. 
    24 
    3 Trac is a '''minimalistic''' approach to '''web-based''' management of 
    4 '''software projects'''. Its goal is to simplify effective tracking and handling of software issues, enhancements and overall progress. 
     5= How does it work = 
     6The 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: 
    57 
    6 All aspects of Trac have been designed with the single goal to  
    7 '''help developers write great software''' while '''staying out of the way''' 
    8 and imposing as little as possible on a team's established process and 
    9 culture. 
     8 *  Temperature - The Current temperature 
     9 *  Low Temperature - The ''estimated'' low temperature 
     10 *  High Temperature - The ''estimated'' high temperature 
     11 *  Humidity - The ''estimated'' humidity 
    1012 
    11 As all Wiki pages, this page is editable, this means that you can 
    12 modify the contents of this page simply by using your 
    13 web-browser. Simply click on the "Edit this page" link at the bottom 
    14 of the page. WikiFormatting will give you a detailed description of 
    15 available Wiki formatting commands. 
     13Each 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. 
    1614 
    17 "[wiki:TracAdmin trac-admin] ''yourenvdir'' initenv" created 
    18 a new Trac environment, containing a default set of wiki pages and some sample 
    19 data. This newly created environment also contains  
    20 [wiki:TracGuide documentation] to help you get started with your project. 
     15Behind 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: 
    2116 
    22 You can use [wiki:TracAdmin trac-admin] to configure 
    23 [http://trac.edgewall.org/ Trac] to better fit your project, especially in 
    24 regard to ''components'', ''versions'' and ''milestones''.  
     17  http://www.google.com/ig/api?weather=,,,40980465,-72212690 
     18 
     19The plugin selects elements from the XML output, and translates them into values that are set upon the respective Child Devices. 
     20 
     21The Weather plugin retrieves the Weather data at startup, and again every 30 minutes after that. 
     22 
     23= Installation = 
     24 1. Configure the physical location of your Vera, using the ''Location'' settings UI 
     25 1. Download the ZIP file `Weather.zip` from [http://www.box.net/shared/b7z6s9j9md document] 
     26 1. Expand the ZIP File to extract the 3x files, their names should be exactly as follows: 
     27   * `D_Weather.xml` 
     28   * `S_Weather.xml` 
     29   * `I_GoogleWeather.xml` 
     30 1. Goto ''Devices'' --> ''Luup plugins'' --> ''Luup files'' 
     31 1. Click the '''(Browse)''' buttons on the right, and enter the 3 filenames references above. 
     32 1. Select the checkbox "''[x] Restart Luup after upload''" and click '''(Go)''' 
     33 1. ... wait whilst it uploads and restarts the Lua engine ... 
     34 1. If successful, you'll see the 3x files listed in the System. 
     35 1. Navigate to ''Devices'', scroll to the bottom at the ''Add device'' form. 
     36 1. Type "`D_Weather.xml`", and click '''(Add Device)''', type in a name of your choice against the device then click '''(Save)''' 
     37 1. At this point you should have a working Weather component 
     38 
     39= Extras = 
     40Support has been added for the following Device Variables: 
     41 *  `Location` (String) a Location override for the settings configured within Vera.[[br]] 
     42  This can be set to any value that the Google API supports.  These options aren't officially documented by Google, but there are various websites that show examples.  You can use values like "New York, USA" (etc) and it'll override the Lat/Long values in the Vera's [http://wiki.micasaverde.com/index.php/Location Location] settings. 
     43 *  `Metric` (Boolean) an override to force the calculations to produce values in Metric instead of Imperial.[[br]] 
     44  This parameter defaults to "0" (Imperial), but can be set to Metric by changing the value to "1".  Visually, Vera will still display ("F" or "C") after the values, depending upon what has been set in Vera's [http://wiki.micasaverde.com/index.php/Location Location] settings. 
     45 *  `Condition` (String) something representing the current Weather state.[[br]] 
     46  From postings on the internet, this seems to have values in the list (potentially more): 
     47  *  `Clear` 
     48  *  `Cloudy` 
     49  *  `Fog` 
     50  *  `Haze` 
     51  *  `Light rain` 
     52  *  `Mostly Cloudy` 
     53  *  `Overcast` 
     54  *  `Partly Cloudy` 
     55  *  `Rain` 
     56  *  `Rain Showers` 
     57  *  `Showers` 
     58  *  `Thunderstorm` 
     59  *  `Chance of Showers` 
     60  *  `Chance of Snow` 
     61  *  `Chance of Storm` 
     62  *  `Mostly Sunny` 
     63  *  `Partly Sunny` 
     64  *  `Scattered Showers` 
     65  *  `Sunny` 
     66  *  `Snow` 
     67  *  `Snow Showers` 
     68  *  `Flurries` 
     69  *  `Rain and Snow` 
     70  *  `Ice/Snow` 
     71  *  `Fog` 
     72  *  `Windy` 
     73  *  `Heavy Rain` 
    2574 
    2675 
    27 TracGuide is a good place to start. 
     76 *  `WindCondition` (String) a value like "`W at 2 mph`". 
     77  
     78Changes to the values of Variables requires a '''(Save)''' Operation to be performed in Vera after the change has been made. 
    2879 
    29 Enjoy! [[BR]] 
    30 ''The Trac Team'' 
     80= Errors = 
     81 *  The Weather device requires [http://wiki.micasaverde.com/index.php/Location Location] data to start[[br]] 
     82  If the Vera's Location has not been configured by the user, then the Weather plugin will not startup, and will indicate an error to the User in Vera's Device pane. 
     83 *  The Weather device is dependent upon data from Google's Weather API[[br]] 
     84  Through the discussion thread below we've discovered that some of the values, such as the Humidity, for a given [http://wiki.micasaverde.com/index.php/Location Location] are extrapolated from nearby Weather stations.  This process isn't 100% accurate and can lead to anomalies.  If the information that's derived from Vera's [http://wiki.micasaverde.com/index.php/Location Location] settings is not accurate enough, you can use the Weather Device's `Location` variable to override it.  You can then specify ZIP Codes (etc) to get more accurate information. 
     85 *  The values don't display in Metric[[br]] 
     86  Vera's luup API's, as of 1.0.900 don't support retrieval of the User-specified ''Temperature format'' in Vera's [http://wiki.micasaverde.com/index.php/Location Location] settings.  When this API is added, we can make changes to have the temperature values presented in that format. 
     87 *  It doesn't display correctly using http://findvera.com/mobile[[br]] 
     88  As of Vera firmware release 1.0.900 there are problems in the Mobile renditions of multiple components.  `TemperatureSensor` and `HumiditySensor` devices seem to be among those not implemented. 
     89 *  The Humidity value doesn't display in the Dashboard.[[br]] 
     90  This is a limitation of the Vera UI.  They don't appear to have a rendition for the `HumdiditySensor`. 
    3191 
    32 == Starting Points == 
     92= Releases = 
     93 *  4-Oct-2009[[br]] 
     94  Added ability to override the Location information.  http://forum.micasaverde.com/index.php?topic=1435.msg8832#msg8832 
     95 *  7-Nov-2009[[br]] 
     96  Added stateVariables for `Condition` (`Sunny`, `Partly Cloudy`, etc) and `WindCondition` (`W at 2 mph`), in case folks want to script off of these.  These are direct translations of the equivalent data from Google Weather.  I strip out the "`Wind: `" prefix string from the `WindCondition` 
    3397 
    34  * TracGuide --  Built-in Documentation 
    35  * [http://trac.edgewall.org/ The Trac project] -- Trac Open Source Project 
    36  * [http://trac.edgewall.org/wiki/TracFaq Trac FAQ] -- Frequently Asked Questions 
    37  * TracSupport --  Trac Support 
     98= Discussion = 
     99The Weather plugin is discussed in this forum thread, along with a lot of it's development history: 
     100  http://forum.micasaverde.com/index.php?topic=1435.0 
    38101 
    39 For a complete list of local wiki pages, see TitleIndex. 
     102Feel free to ask questions on that thread, as well as make any suggestions & contributions to the future development of the Weather plugin's functionality.