Yes, and I entered them in the link. Still nothing. Tried it with and without quotes. Entered both keys. No more syntax error, but the readings won't load. I even tried replacing v1 with v2 and v3, etc. Has anyone ever had success in pulling and displaying data in just a simple text format from Ambient with PHP/cURL?
The application key = the key you got when entering your appication
The apikey = your apikey for every user of your application another one
In my case both keys are 64 characters.
Yes that is long and yes you have to be carefull copying those.
You should first test this in your browser to make sure that it is working. See attached screenshot.
How should it look in your browser
https://rt.ambientweather.net/v1/devices?apiKey=847ed9304bexxxxxxxb34cd2d530d14b26&applicationKey=2d94ac7e4xxxxx19b4e284Returns following data as a jsonffile:
[{"macAddress":"B8:D8:12:60:40:A7","lastData":{"dateutc":1739985600000,"winddir":67,"windspeedmph":0,"windgustmph":0.9,"maxdailygust":4,"windgustdir":302,"winddir_avg2m":66,"windspdmph_avg2m":0,"winddir_avg10m":279,"windspdmph_avg10m":0,"tempf":42.8,"humidity":62,"baromrelin":30.11,"baromabsin":29.96,"tempinf":72.7,"humidityin":25,"hourlyrainin":0,"dailyrainin":0,"monthlyrainin":1.22,"yearlyrainin":7.22,"battin":0,"battout":0,"feelsLike":42.8,"dewPoint":30.69,"feelsLikein":70.8,"dewPointin":34.8,"lastRain":"2025-02-13T10:13:00.000Z","tz":"Europe/Luxembourg","date":"2025-02-19T17:20:00.000Z"},"info":{"name":"Sluispark","coords":{"coords":{"lon":4.700163841247559,"lat":50.88512473189906},"address":"Sluisstraat 16, 3000 Leuven, Belgium","location":"Leuven","elevation":19.31222343444824,"geo":{"type":"Point","coordinates":[4.700163841247559,50.88512473189906]}}}}]