Navigation

    Windy Community

    • Register
    • Login
    • Search
    • Unread
    • Categories
    • Groups
    • Go to windy.com

    How to get specific webcam url using api?

    Developers
    2
    7
    328
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • S
      sedosan7 last edited by

      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=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

      if anyone could help me out to get the image url link.
      Thanks.

      1 Reply Last reply Reply Quote 1
      • marekd
        marekd Administrator last edited by

        @sedosan7 Your URL query part is not valid. Use:
        https://api.windy.com/api/webcams/v2/list/webcam=1361879037?show=webcams:location,image&key=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

        The diffrence is: image&key

        Or put the key into request header.

        1 Reply Last reply Reply Quote 0
        • S
          sedosan7 last edited by

          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!

          1 Reply Last reply Reply Quote 0
          • S
            sedosan7 last edited by

            If anyone could support me on this!
            thanks.

            1 Reply Last reply Reply Quote 0
            • marekd
              marekd Administrator last edited by

              @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

              1 Reply Last reply Reply Quote 0
              • S
                sedosan7 last edited by

                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.

                1 Reply Last reply Reply Quote 0
                • marekd
                  marekd Administrator last edited by

                  @sedosan7 Please read https://api.windy.com/webcams carefully, full size images are for premium users only.

                  1 Reply Last reply Reply Quote 0
                  • First post
                    Last post
                  Windyty, S.E. - all rights reserved. Powered by excellent NodeBB
                  NodeBB & contributors, OSM & contributors, HERE maps
                  Terms and Conditions     Privacy Policy