Hi, I must be doing something wrong but I don’t see it.
I already have this url working in my http.cfg file:
Buienradar_JSON.url=https://api.buienradar.nl/data/public/2.0/jsonfeed
Buienradar_JSON.updateInterval=180000
but adding this url:
Neerslag.url=https://gpsgadget.buienradar.nl/data/raintext/?lat=51.82&lon=4.6
Neerslag.updateInterval=60000
results in this warning/error:
[WARN ] [ab.binding.http.internal.HttpBinding] - given config key 'Buienradar_neerslag' does not follow the expected pattern '<id>.<url|updateInterval>'
[WARN ] [ab.binding.http.internal.HttpBinding] - given config key 'Buienradar_neerslag.updateinterval' does not follow the expected pattern '<id>.<url|updateInterval>'
This doesn’t seem to be related to the encoding of the ? and & because when I strip the url just after ‘raintext’ I still get this error:
[WARN ] [ab.binding.http.internal.HttpBinding] - given config key 'Buienradar_neerslag' does not follow the expected pattern '<id>.<url|updateInterval>'
[WARN ] [ab.binding.http.internal.HttpBinding] - given config key 'Buienradar_neerslag.updateinterval' does not follow the expected pattern '<id>.<url|updateInterval>'
It’s probably some small detail I am missing, but I cannot find it. I hope someone spots my error!
EDIT: I now see that the url in the error is the same both times. So the services file is not read in correctly after saving the file, therfore the encoding probably is the reason. Then my question changes to: how to escape the ? and & correctly. I already tried % infront, but if the file is read out of cache and not refreshed, I don’t know what I effectively tried anymore.