New JAR file can be downloaded here and should work with any weather station that has an IP Observer.
www.pcmus.com/openhab/WeatherStationBinding
Weather stations that should work are:
WS-0900
WS-1400
WS-1550-IP
WS-2902A (if you add on the ip Observer)
WH-2950 (if you add on the ip Observer)
Plus any others that come with the IP Observer
You can add an IP Observers onto your setup if your outdoor unit is compatible and still keep your normal screen working at the same time.
To upgrade you need to remove the old Jar and place this one into the addons folder (after unzipping). Then remove any old ‘things’ and re-add the weatherstation ‘thing’ using PaperUI or the textual config at bottom of this post.
Quick list of changes are:
- UV index channel fix.
- Now waits until unit is ONLINE before trying to update channels which was causing missing info.
- Can reboot the unit manually via a switch, or using an openhab rule, or also it is possible to auto reboot.
- Displays the web delay when fetching the livedata.
- Refresh time is now easily changed.
- Should be easier to run ‘mvn clean install’ with less errors and warnings.
- Removed unit labels as these can be added easily by user by adding labels in sitemap or item definitions.
- Timestamp of last update scraped from livedata.
@captndelta
Please contact me so I can provide the changes to the code I have made. A big thank you for making this binding.
@mhilbush Thanks for helping with the url for doing a reboot.
@shorty707
Since you have the original binding working it would be great if you could test these changes.
Binding Configuration
*.things
Thing ambientweather1400ip:weatherstation:Weather1 [hostname="192.168.1.243", autoReboot=5000, scanrate=20]
*.items
Number WeatherOutdoorTemp "Outdoor Temp (°C)" {channel="ambientweather1400ip:weatherstation:Weather1:outdoor_temp"}
Number WeatherOutdoorHumidity "Outdoor Humidity" {channel="ambientweather1400ip:weatherstation:Weather1:outdoor_humidity"}
Number WeatherWindDir "Wind Direction" {channel="ambientweather1400ip:weatherstation:Weather1:wind_direction"}
Number WeatherWindSpeed "Wind Speed" {channel="ambientweather1400ip:weatherstation:Weather1:wind_speed"}
Number WeatherWindGust "Wind Gust" {channel="ambientweather1400ip:weatherstation:Weather1:wind_gust"}
Number WeatherSolarRad "Solar Radiation" {channel="ambientweather1400ip:weatherstation:Weather1:solar_radiation"}
Number WeatherUV "UV" {channel="ambientweather1400ip:weatherstation:Weather1:uv"}
Number WeatherUVIndex "UV Index" {channel="ambientweather1400ip:weatherstation:Weather1:uvi"}
Number WeatherRainHourly "Rain Hourly (mm)" {channel="ambientweather1400ip:weatherstation:Weather1:hourly_rain"}
Number WeatherRainDaily "Rain Last 24 hours (mm)" {channel="ambientweather1400ip:weatherstation:Weather1:daily_rain"}
Number WeatherRainWeekly "Rain this week (mm)" {channel="ambientweather1400ip:weatherstation:Weather1:weekly_rain"}
Number WeatherRainMonthly "Rain this month (mm)" {channel="ambientweather1400ip:weatherstation:Weather1:monthly_rain"}
Number WeatherRainYearly "Rain this year (mm)" {channel="ambientweather1400ip:weatherstation:Weather1:yearly_rain"}
String WeatherBatteryOut "Battery Status" {channel="ambientweather1400ip:weatherstation:Weather1:battery_out"}
Number WeatherResponse "Response (ms)" {channel="ambientweather1400ip:weatherstation:Weather1:web_response"}
Switch WeatherReboot "Reboot Station" {channel="ambientweather1400ip:weatherstation:Weather1:reboot"}
String WeatherTime "Time of last update" {channel="ambientweather1400ip:weatherstation:Weather1:receiver_time"}
*.sitemap
Text label="WeatherStation" icon="rain"{
Default item=WeatherOutdoorTemp icon=temperature
Default item=WeatherOutdoorHumidity icon=humidity
Default item=WeatherWindDir icon=wind
Default item=WeatherWindSpeed icon=wind
Default item=WeatherWindGust icon=wind
Default item=WeatherSolarRad icon=sun
Default item=WeatherUV icon=sun
Default item=WeatherUVIndex icon=sun
Default item=WeatherRainHourly icon=rain
Default item=WeatherRainDaily icon=rain
Default item=WeatherRainWeekly icon=rain
Default item=WeatherRainMonthly icon=rain
Default item=WeatherRainYearly icon=rain
Default item=WeatherBatteryOut icon=battery
Default item=WeatherResponse icon=time
Default item=WeatherReboot
Default item=WeatherTime icon=time
}