[SOLVED] Dark Sky Binding returns wrong data

OpenHAB 2.5.2
Dark Sky Binding 2.5.2

The data returned by this binding is wrong.
I have checked it with https://api.darksky.net/forecast/a8e...8b88758…1738…2377/xx,-yy and it looks correct to me.

Any ideas on why does it happen?

Have you set up your location in openHAB? Under Configuration -> System in the Paper UI.

Just did it and it helped. Thank you.
I am just curious, does this binding ignore Thing settings for location?

Yes, it does ignore geographical coordinates in weather-and-forecast local.
It works even with the following thing:

Thing weather-and-forecast local "Local Weather And Forecast" [location="blah,blah", forecastHours=24, forecastDays=3]

This is probably for the local only, didn’t test it for other locations.

I do not know if it was developer’s intention, but this doc doesn’t mention it.

@Bruce_Osborne, I am accepting your response as a solution.


Just in case if someone needs a nice weather widget in their HABpanel:

(powered by Dark Sky)

/etc/openhab2/html/weather.html (or any file name)

Copy/Paste a widget code into the html file

HABpanel - frame - URL: http://<openhab-IP-address>:<port>/static/weather.html