bofh69 / AiLight

This fork of AiLight sets the lamp's colour from a weather station.
Other
0 stars 0 forks source link

Report wrong station password #16

Open duelago opened 6 years ago

duelago commented 6 years ago

I just realized that the API password I use for Ravlunda is incorrect. Need a system to tell you it's wrong. I.e present "Sorry, you don't have access for this station, with this password." in the web interface

curl http://api.holfuy.com/live/\?s\=126\&pw\=wrongpassword\&m\=CSV\&tu\=C\&su\=m/s 126,Error: Sorry, you don't have access for this station, with this password.

bofh69 commented 6 years ago

Annoying that they still give a HTTP 200 response code back, not that it is parsed yet anyway. :-P

The latest status of each weather station should probably be presented: