"No live camera feed at this time", plus a question about regions
When using the Webcams API, the webcam
1562900176returned an image that said "No live camera feed at this time".
The status of the webcam was "
active", is there a way to detect when no image is available?
Also, an unrelated question, is there a list of all the supported regions without having to loop through the results of
@fourtonfish Hello, the complete documentation is here: https://api.windy.com/webcams/docs
If you cannot find a way how to achieve what you need, I am affraid there is no any "secret" way how to that.
The webcam you mentioned is not working even on our website: https://www.windy.com/webcams/1562900176
Unfortunately the error message is returned as the image of the webcam. Currently, we are not able to detect if the image is a real image or error image. The webcam stream we are using should return an error status code, but it does not :-(
Anyway, thank you for reporting invalid webcam, I am sure @Korina will look at that :-)
This post is deleted!
Hi, I fixed the error with your camera image URL and it is live again - https://www.windy.com/it/-Webcam/Stati-Uniti-d'America/Stato-di-New-York/New-York/I-at-Stewart-Avenue/webcams/1562900176?40.714,-87.100,5
@Korina Thank you!
Unfortunately the error message is returned as the image of the webcam. Currently, we are not able to detect if the image is a real image or error image.
Ah, that makes sense, thank you!
As for the support regions, would you maybe consider adding the full list to your documentation?
I'm looking at the
list?show=regionsendpoint and it shows 31,055 entries, which is a lot to loop through.
For some context, I made a starter project for creating Twitter bots that post images from public webcams: https://nycviewsbot.glitch.me/
Right now the tutorial suggests to use lat/long, but using a specific region would be more accurate.
The project is aimed at less technical folks, so suggesting to loop through 31k+ records to find your location isn't a great option.
No edit button for me I guess 🙃
phonenumber Banned last edited by
This post is deleted!
Okay, I think I misunderstood the the response data. I'm guessing
totalrefers to the total number of webcams, and the
regionsfield lists all of the available regions. In which case, this is definitely enough.