Hi, I just got my WundergroundHistoryDevice Graph displayed and it looks like the values are 7 hours late. The precip_total is normally reset at 0:00 o’clock and the solar radiation of 642 W/m² etc. we had around 14:00 o’clock and not at 21:00 o’clock like in the Graph.
-
New plugin [pimatic-wunderground]
-
What time/day offset did you configure?
-
I have not configured an offset at all. Where can I do that?
-
In the device configuration. The default is -7 hours
-
Ok, but why?
The values then no longer correspond to the times in the graph. -
Please provide your device configuration
-
{ "days": "1", "country": "Germany", "pws": "MYPWSID", "id": "wetterstation-wu", "name": "Wetterstation WU", "class": "WundergroundDevice", "apiKey": "myapikey" }, { "apiKey": "myapikey", "pws": "MYPWSID", "attributes": [ { "name": "temperature", "label": "Temperatur" }, { "name": "humidity", "label": "Luftfeuchtigkeit", "unit": "%" }, { "name": "precip", "label": "Niederschlag", "unit": "mm" }, { "name": "precip_total", "label": "Niederschlag gesamt", "unit": "mm" }, { "name": "solarradiation" }, { "name": "uv", "label": "UV Index" } ], "xAttributeOptions": [ { "name": "temperature", "displaySparkline": false }, { "name": "humidity", "displaySparkline": false }, { "name": "precip", "displaySparkline": false }, { "name": "precip_total", "displaySparkline": false }, { "name": "solarradiation", "displaySparkline": false }, { "name": "rain", "displaySparkline": false }, { "name": "uv", "displaySparkline": false } ], "id": "wetterstation-wu-datenlogger", "name": "Wetterstation WU Datenlogger", "class": "WundergroundHistoryDevice" }
I also noticed that I cannot delete the entry “Rain” via the frontend.
-
Please set up the time offset to 0
-
Okay, the values in the past are still wrong. Let’s see if the new values match at the right time. Why is the default setting -7 hours?
-
Because of the initial usecase where a user wanted to have a history device for Vietnam.
-
Ok, I see. Maybe its better to set the default to zero.
I had to recreate the device to get the right values.
But theres still a problem with a entry “unbekannt”.
On the first try it was labled with “rain” but after recreation i doesn´t select “rain” but i still get the label “unbekannt” on the frontend. -
Please provide a screenshot.
-
(with “rain” device)and
(without “rain” device) -
Does the history API provides a valid rain value for your PWS?
-
No, no “rain” for http://api.wunderground.com/api/{YOUR-API-KEY}/history_20180505/lang:DL/q/pws:{YOUR-PWS-ID}.json
But in the second case i doesn´t select rain in the device configuration. But why it´s still there?
-
I could reproduce this.
Here’s the solution:
Go to the xAttributeOptions of your WH Device and set rain to hidden=true. Save the device and reload you page by pressing Strg + F5 or clear your browser cache. -
Ok, great! It works!
Could you also reproduce the underscores between the attributes and values?
It seems they came from the label. -
No, I saw nothing unnormal
-
As you can see in the last screenshot there are small underscores between the attributes. In the screenshot from today they are growing, so i think they are no underscores but the sparkline like on “Wetterstation” on the screenshot.
But i got no values…{ "apiKey": "myapikey", "pws": "MYPWSID", "timeOffset": 0, "attributes": [ { "name": "temperature", "label": "Temperatur", "unit": "°C" }, { "name": "humidity", "label": "Luftfeuchtigkeit", "unit": "%" }, { "name": "precip", "label": "Niederschlag", "unit": "mm" }, { "name": "precip_total", "label": "Niederschlag", "unit": "mm" }, { "name": "solarradiation", "label": "Solar Radiation", "unit": "W/m2" }, { "name": "uv", "label": "UV Index" } ], "xAttributeOptions": [ { "name": "rain", "displaySparkline": true, "hidden": true }, { "name": "temperature", "displaySparkline": true }, { "name": "humidity", "displaySparkline": true }, { "name": "precip", "displaySparkline": true }, { "name": "precip_total", "displaySparkline": true }, { "name": "solarradiation", "displaySparkline": true }, { "name": "uv", "displaySparkline": true } ], "id": "wu-logger", "name": "WU Logger", "class": "WundergroundHistoryDevice" }
-
set DisplaySparkline to false, then they will disappear