Hi
I’m trying to retrieve data from a Json API
https://api.keepfocus.dk/v1/installations/261/current-weather
but it needs username and password to retrieve it.
Is there a way to type this in so it can log in and retrieve the data
When I’m logged in by typing my user/pass manualy in a browser, I receive this
{"data":{"id":0,"type":"current-weather","attributes":{"status":0,"calculation-unixtime-utc":1509787200,"condition-codes":[701],"temp-c":10,"pressure-hpa":1010,"rel-humidity-pct":87,"wind-speed-ms":4.1,"wind-dir-deg":210,"cloudiness-pct":0,"rain-mm":0,"snow-mm":0,"temp-feels-like-c":5.51,"city-name":"Indre By","country-code":"DK","sunrise-unixtime-utc":1509776574,"sunset-unixtime-utc":1509808969,"longitude":12.57,"latitude":55.68}}}
I would like to get “wind-speed-ms”
so I have made this request
String Vind_test "Vind kbh [%s]" (test) { http="<[vind:30000:JSONPATH($.vind-speed-ms)]" }
and my http.cfg file
vind.url = https: //api.keepfocus.dk/v1/installations/261/current-weather
vind.updateInterval = 30000