Freemann wrote: ↑
Wednesday 05 December 2018 9:17
I'm familiare with the GMap api, but I couldn't find a way to add the api to the previous version of the script.
Couldn't find it that fast in this topic/forum, but which values are based on the KNMI weatherstations and which are based on Buienradar API/calculations? For instance expected rain is, as far as I known, not available on the weatherstations so its must come from the Buienradar API.
So if its from the API, then its location is based on my Lat/Lng? So rain calculations are based on my domoticz location and not on the KNMI weatherstation location?
Or I'm i Wrong?
Thanks for the update and it working like a charm!
You are right. Thanks for pointing that out !
Rain forecast devices (text, alert and two custom sensors) are always based on the result of the call to https://gadgets.buienradar.nl
with the lat/lon from domoticz settings.This is a fault in the logic. I have corrected it now but still testing. Will post an update later today.
If useDomoticzLocation is set to true, all other devices are based on the weatherstation information ( buienradar
from the station nearest to this lat/lon or (optional) if the required part of the data is not available at that station it will travel the list of weatherstations from nearby to further away to find a station that does have this part of the data.
If useDomoticzLocation is set to false, the information will be extracted from the named weatherstation.
The call to Google Maps (which now must use the GMap api ) is only used to translate the lat/lon to a more detailed than "Nederland" human readable address.
Raspberry (debian stretch via berryboot on Synology DS916+) , Domoticz (almost) latest Beta, , dzVents 2.6, RFLink, RFXtrx433e, P1, Youless, Harmony, Hue, Yeelight, Xiaomi, HomeWizard, Zwave, Amazon echo