Author: HCA Central Version: Added to Library: HCAVersion needed: 15 Keywords: Weather Requirements: Must have a weather station that uploads to WU and have an NEW API key. See the linked technical note. Extra Info Link: Here
Package Description: Weather class for new Weather Underground API. Must have a weather station that uploads to WU.
Program Description: Weather class program for Weather Underground to retrieve current sensor data. Do not call directly. Use the Weather-Test element or the _WeatherGet function.
Global Variable Use:
Name | Description |
---|---|
WUApiKey | Weather Underground API Key |
WUStation | Weather Underground station identifier |
WUUnits | Weather Underground observation units: 1 character. 'e' = US, 'm' = metric, 'h' = hybrid uk, 's' = si |
Program Description: Simple quick program to show the sensor data retrieved from weather underground
Program Description: Retrieves historical weather data from Weather Underground. gets the 7-day historical data and extracts out of it the sensor requested for the time period and for high, low, or Average. For "PrecipTotal" then value returned is the sum of rain during the time period.
Example: value = _WUHistory ("temp", "low", -12).
Determines the lowest temperature in the last 12 hours.
Return value: The result. If there is no data in the specified range, -999 is returned
Parameters:
Name | Type | Description | Default |
---|---|---|---|
SensorName | Value | WU sensor name. See the names created by the weather class program. | |
Code | Value | 1=high, 2=low, 3-avg | 3 |
DeltaHours | Value | Number of hours into the past (negative value) or into the future (positive value) |
Global Variable Use:
Name | Description |
---|---|
WUApiKey | Weather Underground API Key |
WUStation | Weather Underground station identifier |
WUUnits | Weather Underground observation units: 1 character. 'e' = US, 'm' = metric, 'h' = hybrid uk, 's' = si |