How to get specific webcam url using api?
-
I apologize for my entry level question,
I applied for the free trial and got my API key.
I'm using a platform to create a dashboard for my smart home (www.actiontiles.com)
the dashboard works in tiles. a tile can be a jpeg that refreshes every x seconds which is what i'm trying to embed.
All i need to do is to get the webcam image url but I couldn't figure out how to do that using the api key.This is the furthest I could get:
https://api.windy.com/api/webcams/v2/list/webcam=1361879037?show=webcams:location,image?key=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxif anyone could help me out to get the image url link.
Thanks. -
@sedosan7 Your URL query part is not valid. Use:
https://api.windy.com/api/webcams/v2/list/webcam=1361879037?show=webcams:location,image&key=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxThe diffrence is: image&key
Or put the key into request header.
-
Hi Marekd,
Thank you for your reply but I didn't understand. The difference? I'm already using image&key... how else should it be?
Also, how to put the key into request header? the dashboard i'm using only allows for a URL link where the image resides.Thanks!
-
If anyone could support me on this!
thanks. -
@sedosan7 As I wrote you before, your url is invalid and it probably returns 403 status code. Use ampersant, not question mark. https://www.wikiwand.com/en/Query_string
-
My bad, I just noticed that in your initial reply that you already changed the ? to &... I thought you copied mine and said that the problem with & which I was thinking... but it was already written &...
Little misunderstanding there hehe, anyways it worked now however all what i'm seeing is a JSON reply.What I want to do is create a static URL of a dynamic image that I can insert in an HTML5 dashboard which will just refresh every X seconds, I got the ID of the webcam that I want to stream, I tried the link above and it gave me thumbnail and toenail images and some preview images where all are just not usable.
Any idea how to get a better quality jpeg url?Thanks.
-
@sedosan7 Please read https://api.windy.com/webcams carefully, full size images are for premium users only.