Skip to main content

WXonline

This driver provides weather information and forecasts retrieved from OpenWeatherMap.

HSYCO Configuration

Add a WXONLINE I/O Server in the I/O Servers section of the Settings and set its parameters.

note

Note that the WXONLINE I/O Server doesn't count in the I/O servers license total, so you don't need an extra I/O Server license to use WXONLINE with HSYCO.

High Availability

  • Shutdown when inactive: defaults to true.

Options

IDDefaultValuesDescription
guitruetrueenable support for the UI object and UISET actions
falsedisable UI support
pollinterval10n >= 10the data acquisition interval, in minutes
location<id> or <lat>:<lon>ID of the target location or coordinates
key<key>OpenWeatherMap API key

The 'location' option is required. To obtain the ID of the desired location, look for it this list. Otherwise, you can specify the geographic coordinates of the location using the format <latitude>:<longitude> (e.g. "45.461001:9.183567"), with latitude and longitude expressed as decimal degrees.

The 'key' option can be obtained creating an account on OpenWeatherMap. If this option is not specified, a default API key will be used and the 'pollinterval' option wont't allow for values below 60.

Datapoints

IDValueR/WDescription
connectiononlineRconnection established
offlineRHSYCO can't connect to the panel
location<location>Rthe target location is set to <location> (e.g. New York, NY, United States)
<id> or
<lat>:<lon>
Wset the location to the specified value
condition<condition>Rthe current weather condition (refer to the conditions table for a complete list of possible values)
condition.clear1Rthe current condition is categorized as clear
0Rthe current condition is not categorized as clear
condition.precipitation1Rthe current condition is categorized as precipitation
0Rthe current condition is not categorized as precipitation
condition.storm1Rthe current condition is categorized as storm
0Rthe current condition is not categorized as storm
condition.partly_cloudy1Rthe current condition is categorized as partly cloudy
0Rthe current condition is not categorized as "partly cloudy”
condition.low_visibility1Rthe current condition is categorized as low visibility
0Rthe current condition is not categorized as low visibility
temp.c<val>Rthe reported current temperature corresponds to <val> (expressed in °C)
temp.f<val>Rthe reported current temperature corresponds to <val> (expressed in °F)
humidity<val>Rthe reported current humidity percentage corresponds to <val>
pressure<val>Rthe reported current pressure in inches of mercury (inHg) corresponds to <val>. Multiply by 33.86389 to obtain the equivalent hPa value
wind.speed<val>Rthe reported current wind speed corresponds to <val> (expressed in Km/h)
wind.dir<val>Rthe reported current wind direction corresponds to <val> (expressed in degrees)
forecast.day.<n> (<n> = 1 ... 5)<day>Rthe week day identified by <n> corresponds to <day> (i.e. mon, "tue", "wed", ...)
forecast.temp.low.c.<n><val>Rthe forecasted lowest temperature for day <n> is <val> (expressed in °C)
forecast.temp.low.f.<n><val>Rthe forecasted lowest temperature for day <n> is <val> (expressed in °F)
forecast.temp.high.c.<n><val>Rthe forecasted highest temperature for day <n> is <val> (expressed in °C)
forecast.temp.high.f.<n><val>Rthe forecasted highest temperature for day <n> is <val> (expressed in °F)
forecast.condition.<n><condition>Rthe forecasted weather condition for day <n> corresponds to <condition> (refer to the conditions table for a complete list of possible values)
forecast.condition.clear.<n>1Rthe forecasted condition for day <n> is categorized as "clear"
0Rthe forecasted condition for day <n> is not categorized as "clear"
forecast.condition.precipitation.<n>1Rthe forecasted condition for day <n> is categorized as "precipitation"
0Rthe forecasted condition for day <n> is not categorized as "precipitation"
forecast.condition.storm.<n>1Rthe forecasted condition for day <n> is categorized as "storm"
0Rthe forecasted condition for day <n> is not categorized as "storm"
forecast.condition.partly_cloudy.<n>1Rthe forecasted condition for day <n> is categorized as "partly cloudy"
0Rthe forecasted condition for day <n> is not categorized as "partly cloudy"
forecast.condition.low_visibility.<n>1Rthe forecasted condition for day <n> is categorized as "low visibility"
0Rthe forecasted condition for day <n> is not categorized as "low visibility"

Conditions and categories

The following table shows the possible weather condition values and their categorization.

Categories are used to summarize relevant aspects of a specific condition so to simplify programming logic. The available categories are: clear (c), precipitation (p), storm (s), partly cloudy (pc), and low visibility (lv). For some conditions (e.g. windy) the categorization is not feasible; in such cases (denoted by "xx") the category datapoints will not be updated so to maintain the previous condition.

ConditionCategories
blowing_snowp, lv
blusteryxx
clear_nightc
cloudy
coldxx
drizzlep
dustlv
fair_daypc
fair_nightpc
foggylv
freezing_drizzlep
freezing_rainp
hailp
hazelv
heavy_snowp,lv
hotc
hurricanep, s, lv
isolated_thundershowersp, s, lv
isolated_thunderstormsp, s, lv
light_snow_showersp, lv
mixed_rain_hailp
mixed_rain_sleetp
mixed_rain_snowp
mixed_snow_sleetp
mostly_cloudy_day
mostly_cloudy_night
partly_cloudypc
partly_cloudy_daypc
partly_cloudy_nightpc
scattered_showersp, lv
scattered_snow_showersp, lv
scattered_thunderstormsp, s, lv
severe_thunderstormsp, s, lv
showersp, lv
sleetp
smokylv
snowp
snow_flurriesp
snow_showersp, lv
sunnyc
thundershowersp, s, lv
thunderstormsp, s, lv
tornados
tropical_stormp, s, lv
windyxx
unknownxx

User Interface

UISET Actions

IDAttributeSet toDescription
connection.labelvisibletruewhen datapoint connection = offline
falsewhen datapoint connection = online
locationvaluethe target location (e.g. “New York, NY, United States”)
temp.cvaluethe reported current temperature followed by "°C"
temp.c.nounitvaluethe reported current temperature without unit (expressed in °C)
temp.fvaluethe reported current temperature followed by "°F"
temp.f.nounitvaluethe reported current temperature without unit (expressed in °F)
humidityvaluethe reported current humidity percentage
wind.speedvaluethe reported current wind speed in Km/h
wind.speedvaluethe reported current wind direction in degrees
forecast.day.<n> (<n> = 1 ... 5)valuethe week day identified by <n> (i.e. “Mon”, “Tue”, “Wed”, ...)
forecast.temp.low.c.<n>valuethe forecasted lowest temperature for day <n> followed by "°C"
forecast.temp.low.c.<n>.nounitvaluethe forecasted lowest temperature for day <n> without unit (expressed in °C)
forecast.temp.low.f.<n>valuethe forecasted lowest temperature for day <n> followed by "°F"
forecast.temp.low.f.<n>.nounitvaluethe forecasted lowest temperature for day <n> without unit (expressed in °F)
forecast.temp.high.c.<n>valuethe forecasted highest temperature for day <n> followed by "°C"
forecast.temp.high.c.<n>.nounitvaluethe forecasted highest temperature for day <n> without unit (expressed in °C)
forecast.temp.high.f.<n>valuethe forecasted highest temperature for day <n> followed by "°F"
forecast.temp.high.f.<n>.nounitvaluethe forecasted highest temperature for day <n> without unit (expressed in °F)
forecast.condition.<n>valuethe forecasted weather condition for day <n> (e.g. “SUNNY”)
condition.labelimgweather/<current_condition_imagen>
forecast.condition.<n>.labelimgweather/<forecasted_condition_imagen>

Weather conditions images

The following table shows the mapping between each condition and the corresponding image.

To customize the images add a folder named "weather" inside the "img" folder of your project and add your images named accordingly to the table.

ConditionImage nameDefault image
blowing_snowsnow.pngWx Online Icon
blusterywindy.pngWx Online Icon
clear_nightsunny.pngWx Online Icon
cloudycloudy.pngWx Online Icon
coldicy.pngWx Online Icon
drizzledrizzle.pngWx Online Icon
dustdust.pngWx Online Icon
fair_daypartly_cloudy.pngWx Online Icon
fair_nightpartly_cloudy.pngWx Online Icon
foggyfog.pngWx Online Icon
freezing_drizzledrizzle.pngWx Online Icon
freezing_rainrain.pngWx Online Icon
hailhail.pngWx Online Icon
hazehaze.pngWx Online Icon
heavy_snowsnow.pngWx Online Icon
hotsunny.pngWx Online Icon
hurricanestorm.pngWx Online Icon
isolated_thundershowerschance_of_storm.pngWx Online Icon
isolated_thunderstormschance_of_storm.pngWx Online Icon
light_snow_showerssnow.pngWx Online Icon
mixed_rain_hailhail.pngWx Online Icon
mixed_rain_sleetsnow.pngWx Online Icon
mixed_rain_snowsnow.pngWx Online Icon
mixed_snow_sleetsnow.pngWx Online Icon
mostly_cloudy_daycloudy.pngWx Online Icon
mostly_cloudy_nightcloudy.pngWx Online Icon
partly_cloudypartly_cloudy.pngWx Online Icon
partly_cloudy_daypartly_cloudy.pngWx Online Icon
partly_cloudy_nightpartly_cloudy.pngWx Online Icon
scattered_showerschance_of_rain.pngWx Online Icon
scattered_snow_showerschance_of_snow.pngWx Online Icon
scattered_thunderstormschance_of_storm.pngWx Online Icon
severe_thunderstormsstorm.pngWx Online Icon
showersrain.pngWx Online Icon
sleetsnow.pngWx Online Icon
smokydust.pngWx Online Icon
snowsnow.pngWx Online Icon
snow_flurriessnow.pngWx Online Icon
snow_showerssnow.pngWx Online Icon
sunnysunny.pngWx Online Icon
thundershowersstorm.pngWx Online Icon
thunderstormsstorm.pngWx Online Icon
tornadotornado.pngWx Online Icon
tropical_stormstorm.pngWx Online Icon
windywindy.pngWx Online Icon
unknownunknown_weather_condition.png

Release Notes

3.8.0

  • dynamic location settings are retained when the I/O Server is restarted

3.7.0

  • data source changed from Yahoo to OpenWeatherMap
  • increased number of forecasted days from 2 to 5
  • location can be set to latitude and longitude, as well as with the location id

3.5.1

  • updated Yahoo API calls (new format required after March 15th, 2016)

3.4.0

  • fixed Fahrenheit to Celsius conversion

3.1.1

  • pressure datapoint added

3.1.0

  • changed weather provider
  • modified I/O Datapoints
  • modified I/O Server options

3.0.1

  • added weather object

3.0.0

  • initial release

OpenWeatherMap is a registered trademark of OpenWeatherMap, Inc.