WeatherCompany binding (WeatherUnderground replacement for PWS data uploaders only!)

To get the event log entries, you need to find the events.log file, as I’m not sure where that’s located in openhabian. Then find the entries for your item WCF_Day0_Night_WindSpeed.

To get the binding version, access the console, then run this command:

list -s | grep weathercompany

The result would look similar to this (but with a 2.5 version number):

213 │ Active │  80 │ 3.0.0.202011012052      │ org.openhab.binding.weathercompany

My events.log file is empty.

Here the version information of the binding weathercompany:
297 │ Active │ 80 │ 2.5.10.202011012102 │ org.openhab.binding.weathercompany

Hmm. I don’t know what to say about that…

Try this from the console.

smarthome:items list | grep WCF_Day0_Night_WindSpeed

that works :slight_smile:
WCF_Day0_Night_WindSpeed (Type=NumberItem, State=3.599994240006911596313921474304011 km/h, Label=WindSpeed, Category=wind)

Ok, good. But since the forecast changes, I’ll need the response from the API and the item’s value at the same time. The forecast you posted above is now 3 hours old. :wink:

API response from now:
2020-11-02 22:54:05.090 [DEBUG] [andler.WeatherCompanyForecastHandler] - Parsing daypartsObject: [{“cloudCover”:[null,95.0,98.0,96.0,96.0,95.0,91.0,74.0,45.0,31.0,18.0,52.0],“dayOrNight”:[null,“N”,“D”,“N”,“D”,“N”,“D”,“N”,“D”,“N”,“D”,“N”],“daypartName”:[null,“Heute Abend”,“Morgen”,“Morgen Abend”,“Mittwoch”,“Mittwochnacht”,“Donnerstag”,“Donnerstagnacht”,“Freitag”,“Freitagnacht”,“Samstag”,“Samstagnacht”],“iconCode”:[null,11.0,12.0,11.0,11.0,26.0,26.0,27.0,30.0,29.0,34.0,29.0],“iconCodeExtend”:[null,7301.0,1200.0,1201.0,1100.0,2600.0,2600.0,2700.0,3000.0,2900.0,3400.0,2900.0],“narrative”:[null,“Abends aufkommender leichter Regen. Tiefsttemperatur 12C. Wind aus WSW und wechselhaft. Regenrisiko 70 %.”,“Regen. Höchsttemperatur 14C. Wind aus NW mit 2 bis 4 m/s. Regenrisiko 90 %. Niederschlag ca. 6 mm.”,“Leichter Regen. Tiefsttemperatur 6C. Wind aus WNW und wechselhaft. Regenrisiko 70 %.”,“Schauer. Höchsttemperatur 7C. Wind aus NO mit 2 bis 4 m/s. Regenrisiko 70 %.”,“Bedeckt. Tiefsttemperatur 5C. Wind aus NNO mit 2 bis 4 m/s.”,“Bedeckt. Höchsttemperatur 8C. Wind aus NO mit 2 bis 4 m/s.”,“Meistens bedeckt. Tiefsttemperatur 5C. Wind aus NNO und wechselhaft.”,“Teilweise bedeckt. Höchsttemperatur 11C. Wind aus OSO und wechselhaft.”,“Teilweise bedeckt. Tiefsttemperatur 5C. Wind aus SSW und wechselhaft.”,“Meistens klar. Höchsttemperatur 14C. Wind aus SSW und wechselhaft.”,“Teilweise bedeckt. Tiefsttemperatur 6C. Wind aus SW und wechselhaft.”],“precipChance”:[null,70.0,90.0,70.0,70.0,20.0,20.0,20.0,10.0,10.0,10.0,10.0],“precipType”:[null,“rain”,“rain”,“rain”,“rain”,“rain”,“rain”,“rain”,“rain”,“rain”,“rain”,“rain”],“qpf”:[null,1.98,5.18,2.94,2.33,0.0,0.0,0.0,0.0,0.0,0.0,0.0],“qpfSnow”:[null,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0],“qualifierCode”:[null,null,null,null,null,null,null,null,null,null,null,null],“qualifierPhrase”:[null,null,null,null,null,null,null,null,null,null,null,null],“relativeHumidity”:[null,91.0,94.0,92.0,91.0,98.0,90.0,93.0,87.0,89.0,76.0,83.0],“snowRange”:[null,"","","","","","","","","","",""],“temperature”:[null,12.0,14.0,6.0,7.0,5.0,8.0,5.0,11.0,5.0,14.0,6.0],“temperatureHeatIndex”:[null,14.0,13.0,9.0,7.0,6.0,8.0,8.0,10.0,7.0,13.0,9.0],“temperatureWindChill”:[null,13.0,8.0,5.0,4.0,4.0,3.0,4.0,4.0,4.0,4.0,6.0],“thunderCategory”:[null,null,null,null,null,null,null,null,null,null,null,null],“thunderIndex”:[null,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0],“uvDescription”:[null,“Niedrig”,“Niedrig”,“Niedrig”,“Niedrig”,“Niedrig”,“Niedrig”,“Niedrig”,“Niedrig”,“Niedrig”,“Niedrig”,“Niedrig”],“uvIndex”:[null,0.0,1.0,0.0,1.0,0.0,1.0,0.0,2.0,0.0,2.0,0.0],“windDirection”:[null,255.0,306.0,302.0,41.0,32.0,52.0,23.0,117.0,206.0,201.0,217.0],“windDirectionCardinal”:[null,“WSW”,“NW”,“WNW”,“NO”,“NNO”,“NO”,“NNO”,“OSO”,“SSW”,“SSW”,“SW”],“windPhrase”:[null,“Wind aus WSW und wechselhaft.”,“Wind aus NW mit 2 bis 4 m/s.”,“Wind aus WNW und wechselhaft.”,“Wind aus NO mit 2 bis 4 m/s.”,“Wind aus NNO mit 2 bis 4 m/s.”,“Wind aus NO mit 2 bis 4 m/s.”,“Wind aus NNO und wechselhaft.”,“Wind aus OSO und wechselhaft.”,“Wind aus SSW und wechselhaft.”,“Wind aus SSW und wechselhaft.”,“Wind aus SW und wechselhaft.”],“windSpeed”:[null,1.0,3.0,2.0,4.0,3.0,3.0,2.0,2.0,1.0,1.0,2.0],“wxPhraseLong”:[null,“Später leichter Regen”,“Regen”,“Leichter Regen”,“Schauer”,“Bedeckt”,“Bedeckt”,“Stark bewölkt”,“Wolkig”,“Wolkig”,“Meist sonnig”,“Wolkig”],“wxPhraseShort”:[null,"","","","","","","","","","",""]}]

I think the value is now correct. Because 1.0 * 3.6 is 3.5999… and thats ok :slight_smile:

Ok, then this looks correct.

The API is returning this “windSpeed”:[null,1.0,3.0,2.0,4.0,3.0,3.0,2.0,2.0,1.0,1.0,2.0], which means the Day0 Night Wind Speed is 1.0 meters/s.

The item is showing this 3.599994240006911596313921474304011 km/h, which given the conversion factor of 3.6, is the correct km/h for 1.0 meters/s

The fix is already in 3.0 as PR8944. I just need to submit it for 2.5.x

Thanks for your patience working thru this.

Submitted for 2.5.x

1 Like

Many thanks for your help :slight_smile:

I am running OH3 my Precipitation Rate is showing 0.0000000 mph. How can I change this to in/hr?

Appreciate the new binding.

Thank you

The documentation shows it in the example items.

Number:Speed WC_PWS_PrecipitationRate "Precipitation Rate [%.2f in/h]" <rain> { channel="weathercompany:weather-observations:myaccount:myobservations:currentPrecipitationRate" }

I see this, but I don’t know where to put it. Thanks

Can anyone tell me where to put this to fix my Precipitation Rate.

Number:Speed WC_PWS_PrecipitationRate “Precipitation Rate [%.2f in/h]” { channel=“weathercompany:weather-observations:myaccount:myobservations:currentPrecipitationRate” }

Thanks

You habe to put this in your items file. In the openhab folder you have a subfolder items. In this folder items you can define the items files. See also the documentation: items

I installed my PWS and the binding 2 weeks ago. Now I see that the data for wind gusts are very often exactly the same. I visualise these values via Grafana and all gusts dots are always on the same height.
Is this a problem of my PWS, the API or the binding?

Here are some values selected from InfluxDB:

2021-08-05T11:51:11.281Z PWSWindGust 3.5405568
2021-08-05T11:53:11.522Z PWSWindGust 5.4717696
2021-08-05T11:59:12.53Z  PWSWindGust 11.1044736
2021-08-05T12:00:01.313Z PWSWindGust 11.1044736
2021-08-05T12:01:12.797Z PWSWindGust 9.3341952
2021-08-05T12:03:13.133Z PWSWindGust 14.8059648
2021-08-05T12:05:13.473Z PWSWindGust 7.242048
2021-08-05T12:07:13.695Z PWSWindGust 11.1044736
2021-08-05T12:09:13.941Z PWSWindGust 5.4717696
2021-08-05T12:11:14.236Z PWSWindGust 11.1044736
2021-08-05T12:15:14.681Z PWSWindGust 5.4717696
2021-08-05T12:17:14.953Z PWSWindGust 7.242048
2021-08-05T12:19:15.34Z  PWSWindGust 13.0356864
2021-08-05T12:25:16.117Z PWSWindGust 5.4717696
2021-08-05T12:29:16.607Z PWSWindGust 1.7702784
2021-08-05T12:31:16.863Z PWSWindGust 11.1044736
2021-08-05T12:33:17.076Z PWSWindGust 3.5405568
2021-08-05T12:35:17.309Z PWSWindGust 7.242048
2021-08-05T12:37:17.581Z PWSWindGust 11.1044736
2021-08-05T12:39:17.828Z PWSWindGust 18.3465216
2021-08-05T12:43:18.31Z  PWSWindGust 13.0356864
2021-08-05T12:45:18.57Z  PWSWindGust 21.8870784
2021-08-05T12:47:18.885Z PWSWindGust 14.8059648
2021-08-05T12:49:19.175Z PWSWindGust 16.5762432
2021-08-05T12:51:19.681Z PWSWindGust 14.8059648
2021-08-05T12:53:19.901Z PWSWindGust 13.0356864
2021-08-05T12:55:20.134Z PWSWindGust 7.242048
2021-08-05T12:57:20.402Z PWSWindGust 14.8059648
2021-08-05T12:59:21.089Z PWSWindGust 7.242048
2021-08-05T13:00:01.304Z PWSWindGust 7.242048
2021-08-05T13:01:21.362Z PWSWindGust 11.1044736
2021-08-05T13:03:21.645Z PWSWindGust 13.0356864
2021-08-05T13:05:21.882Z PWSWindGust 7.242048
2021-08-05T13:07:22.166Z PWSWindGust 11.1044736
2021-08-05T13:09:22.522Z PWSWindGust 7.242048
2021-08-05T13:11:22.843Z PWSWindGust 11.1044736
2021-08-05T13:13:23.097Z PWSWindGust 13.0356864
2021-08-05T13:15:23.327Z PWSWindGust 9.3341952
2021-08-05T13:17:23.568Z PWSWindGust 5.4717696
2021-08-05T13:19:23.773Z PWSWindGust 9.3341952
2021-08-05T13:21:24.257Z PWSWindGust 7.242048
2021-08-05T13:27:25.244Z PWSWindGust 9.3341952
2021-08-05T13:29:25.459Z PWSWindGust 5.4717696
2021-08-05T13:31:25.691Z PWSWindGust 7.242048
2021-08-05T13:33:26.188Z PWSWindGust 5.4717696
2021-08-05T13:35:26.462Z PWSWindGust 3.5405568
2021-08-05T13:37:26.688Z PWSWindGust 5.4717696
2021-08-05T13:39:26.927Z PWSWindGust 11.1044736
2021-08-05T13:43:27.449Z PWSWindGust 9.3341952
2021-08-05T13:45:27.709Z PWSWindGust 11.1044736
2021-08-05T13:47:28.016Z PWSWindGust 9.3341952
2021-08-05T13:49:28.248Z PWSWindGust 7.242048
2021-08-05T13:55:28.931Z PWSWindGust 5.4717696
2021-08-05T13:59:29.469Z PWSWindGust 9.3341952
2021-08-05T14:00:01.41Z  PWSWindGust 9.3341952
2021-08-05T14:01:29.724Z PWSWindGust 7.242048
2021-08-05T14:03:29.955Z PWSWindGust 9.3341952
2021-08-05T14:05:30.238Z PWSWindGust 7.242048
2021-08-05T14:07:30.467Z PWSWindGust 5.4717696
2021-08-05T14:13:31.162Z PWSWindGust 1.7702784
2021-08-05T14:15:31.45Z  PWSWindGust 3.5405568
2021-08-05T14:17:32.106Z PWSWindGust 5.4717696
2021-08-05T14:19:32.806Z PWSWindGust 3.5405568
2021-08-05T14:21:33.089Z PWSWindGust 1.7702784
2021-08-05T14:23:33.412Z PWSWindGust 3.5405568
2021-08-05T14:31:34.684Z PWSWindGust 5.4717696
2021-08-05T14:33:35.009Z PWSWindGust 3.5405568
2021-08-05T14:43:36.57Z  PWSWindGust 5.4717696
2021-08-05T14:47:37.36Z  PWSWindGust 7.242048
2021-08-05T14:51:37.901Z PWSWindGust 3.5405568
2021-08-05T14:53:38.21Z  PWSWindGust 5.4717696
2021-08-05T14:55:38.485Z PWSWindGust 3.5405568
2021-08-05T14:57:38.734Z PWSWindGust 1.7702784
2021-08-05T14:59:39.101Z PWSWindGust 3.5405568
2021-08-05T15:00:01.312Z PWSWindGust 3.5405568
2021-08-05T15:07:40.329Z PWSWindGust 1.7702784
2021-08-05T15:09:40.724Z PWSWindGust 3.5405568
2021-08-05T15:11:40.974Z PWSWindGust 1.7702784
2021-08-05T15:13:41.244Z PWSWindGust 3.5405568
2021-08-05T15:17:41.708Z PWSWindGust 1.7702784
2021-08-05T15:19:41.95Z  PWSWindGust 3.5405568
2021-08-05T15:25:42.648Z PWSWindGust 5.4717696
2021-08-05T15:27:42.872Z PWSWindGust 3.5405568
2021-08-05T15:29:43.103Z PWSWindGust 7.242048
2021-08-05T15:31:43.406Z PWSWindGust 1.7702784
2021-08-05T15:37:44.358Z PWSWindGust 0
2021-08-05T15:39:44.587Z PWSWindGust 1.7702784
2021-08-05T15:57:47.032Z PWSWindGust 3.5405568
2021-08-05T16:00:01.284Z PWSWindGust 3.5405568
2021-08-05T16:05:48.009Z PWSWindGust 5.4717696
2021-08-05T16:07:48.266Z PWSWindGust 3.5405568
2021-08-05T16:09:48.527Z PWSWindGust 5.4717696
2021-08-05T16:11:48.753Z PWSWindGust 3.5405568
2021-08-05T16:13:49.969Z PWSWindGust 5.4717696
2021-08-05T16:15:50.265Z PWSWindGust 7.242048
2021-08-05T16:17:50.473Z PWSWindGust 5.4717696
2021-08-05T16:19:50.711Z PWSWindGust 7.242048
2021-08-05T16:23:51.332Z PWSWindGust 3.5405568
2021-08-05T16:31:52.292Z PWSWindGust 5.4717696
2021-08-05T16:35:52.789Z PWSWindGust 3.5405568
2021-08-05T16:37:53.04Z  PWSWindGust 5.4717696
2021-08-05T16:39:53.276Z PWSWindGust 3.5405568
2021-08-05T16:45:53.95Z  PWSWindGust 0

Try putting the binding in debug mode (or possibly trace mode, I forget) to see what the api is returning.

The values from the API do not match with the entries in the DB:

2021-08-06 09:47:15.860 [DEBUG] [er.WeatherCompanyObservationsHandler] - Handler: Parsing PWS observations response: {“observations”:[
{“stationID”:“IHAMBU337”,“obsTimeUtc”:“2021-08-06T07:47:13Z”,“obsTimeLocal”:“2021-08-06 09:47:13”,“neighborhood”:“Moorfleet”,“software
Type”:“EasyWeatherV1.5.9”,“country”:“DE”,“solarRadiation”:101.9,“lon”:10.086,“realtimeFrequency”:null,“epoch”:1628236033,“lat”:53.5,“u
v”:1.0,“winddir”:143,“humidity”:79.0,“qcStatus”:1,“imperial”:{“temp”:65.8,“heatIndex”:65.8,“dewpt”:59.2,“windChill”:65.8,“windSpeed”:6
.9,“windGust”:8.1,“pressure”:29.81,“precipRate”:0.00,“precipTotal”:0.00,“elev”:0.0}}]}
2021-08-06 09:49:16.105 [DEBUG] [er.WeatherCompanyObservationsHandler] - Handler: Parsing PWS observations response: {“observations”:[
{“stationID”:“IHAMBU337”,“obsTimeUtc”:“2021-08-06T07:49:05Z”,“obsTimeLocal”:“2021-08-06 09:49:05”,“neighborhood”:“Moorfleet”,“software
Type”:“EasyWeatherV1.5.9”,“country”:“DE”,“solarRadiation”:517.0,“lon”:10.086,“realtimeFrequency”:null,“epoch”:1628236145,“lat”:53.5,“u
v”:5.0,“winddir”:155,“humidity”:79.0,“qcStatus”:1,“imperial”:{“temp”:65.5,“heatIndex”:65.5,“dewpt”:58.8,“windChill”:65.5,“windSpeed”:7
.4,“windGust”:8.1,“pressure”:29.81,“precipRate”:0.00,“precipTotal”:0.00,“elev”:0.0}}]}
2021-08-06 09:51:16.373 [DEBUG] [er.WeatherCompanyObservationsHandler] - Handler: Parsing PWS observations response: {“observations”:[
{“stationID”:“IHAMBU337”,“obsTimeUtc”:“2021-08-06T07:51:13Z”,“obsTimeLocal”:“2021-08-06 09:51:13”,“neighborhood”:“Moorfleet”,“software
Type”:“EasyWeatherV1.5.9”,“country”:“DE”,“solarRadiation”:515.8,“lon”:10.086,“realtimeFrequency”:null,“epoch”:1628236273,“lat”:53.5,“u
v”:5.0,“winddir”:137,“humidity”:80.0,“qcStatus”:1,“imperial”:{“temp”:65.1,“heatIndex”:65.1,“dewpt”:58.8,“windChill”:65.1,“windSpeed”:4
.9,“windGust”:6.9,“pressure”:29.81,“precipRate”:0.00,“precipTotal”:0.00,“elev”:0.0}}]}
2021-08-06 09:53:16.631 [DEBUG] [er.WeatherCompanyObservationsHandler] - Handler: Parsing PWS observations response: {“observations”:[
{“stationID”:“IHAMBU337”,“obsTimeUtc”:“2021-08-06T07:53:05Z”,“obsTimeLocal”:“2021-08-06 09:53:05”,“neighborhood”:“Moorfleet”,“software
Type”:“EasyWeatherV1.5.9”,“country”:“DE”,“solarRadiation”:681.9,“lon”:10.086,“realtimeFrequency”:null,“epoch”:1628236385,“lat”:53.5,“u
v”:5.0,“winddir”:119,“humidity”:81.0,“qcStatus”:1,“imperial”:{“temp”:65.5,“heatIndex”:65.5,“dewpt”:59.5,“windChill”:65.5,“windSpeed”:6
.7,“windGust”:8.1,“pressure”:29.81,“precipRate”:0.00,“precipTotal”:0.00,“elev”:0.0}}]}
2021-08-06 09:55:16.910 [DEBUG] [er.WeatherCompanyObservationsHandler] - Handler: Parsing PWS observations response: {“observations”:[
{“stationID”:“IHAMBU337”,“obsTimeUtc”:“2021-08-06T07:55:13Z”,“obsTimeLocal”:“2021-08-06 09:55:13”,“neighborhood”:“Moorfleet”,“software
Type”:“EasyWeatherV1.5.9”,“country”:“DE”,“solarRadiation”:550.9,“lon”:10.086,“realtimeFrequency”:null,“epoch”:1628236513,“lat”:53.5,“u
v”:5.0,“winddir”:117,“humidity”:79.0,“qcStatus”:1,“imperial”:{“temp”:65.7,“heatIndex”:65.7,“dewpt”:59.0,“windChill”:65.7,“windSpeed”:5
.1,“windGust”:6.9,“pressure”:29.81,“precipRate”:0.00,“precipTotal”:0.00,“elev”:0.0}}]}

Here the corresponding DB entries:

2021-08-06T07:45:15.666Z PWSWindGust 9.3341952
2021-08-06T07:47:15.908Z PWSWindGust 13.0356864
2021-08-06T07:51:16.415Z PWSWindGust 11.1044736
2021-08-06T07:53:16.679Z PWSWindGust 13.0356864
2021-08-06T07:55:16.949Z PWSWindGust 11.1044736

Here again the repeating identical values…

The items are defined as follows:

Number:Temperature PWSTemperature “Aussentemperatur [%.1f°C]” { channel=“weathercompany:weather-observations:747b19f04d:03e7f3f700:currentTemperature” }
Number PWSHumidity “Luftfeuchtigkeit [%.1f%%]” { channel=“weathercompany:weather-observations:747b19f04d:03e7f3f700:currentHumidity” }
Number:Pressure PWSPressure “Luftdruck [%.1f hPa]” { channel=“weathercompany:weather-observations:747b19f04d:03e7f3f700:currentPressure” }
Number:Speed PWSPrecRate “Niederschlagsrate [%.1f mm/h]” { channel=“weathercompany:weather-observations:747b19f04d:03e7f3f700:currentPrecipitationRate” }
Number:Length PWSPrecTotal “Niederschlagsmenge [%.1f mm]” { channel=“weathercompany:weather-observations:747b19f04d:03e7f3f700:currentPrecipitationTotal” }
Number:Speed PWSWindSpeed “Windgeschwindigkeit [%.1f km/h]” { channel=“weathercompany:weather-observations:747b19f04d:03e7f3f700:currentWindSpeed” }
Number:Speed PWSWindGust “Böengeschwindigkeit [%.1f km/h]” { channel=“weathercompany:weather-observations:747b19f04d:03e7f3f700:currentWindSpeedGust” }
Number:Angle PWSWindDirection “Windrichtung [%s°]” { channel=“weathercompany:weather-observations:747b19f04d:03e7f3f700:currentWindDirection” }
Number PWSBeaufort “Beaufort [%s Bft]”
String PWSWindDirectionCardinal “Windrichtung [%S]”

The values in the database for wind speed do also not match the answer from the API

Assuming your region in openHAB uses metric units of measure…

API returns values in imperial units (miles per hour):

“windGust”:8.1

Which will be converted to metric by openHAB if your region uses metric units of measure. 8.1 mph converted to kilometers per hour:

Value in your DB

2021-08-06T07:47:15.908Z PWSWindGust 13.0356864