Windy Community

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

    Guide for dummies: How to load API 4?

    Windy API v4
    5
    12
    3676
    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.
    • saaneuvos
      saaneuvos | Premium last edited by

      Could someone please help me to find the place, where I can load API 4 for testing! I'm not programmer and don't know well the terminology of programming. I managed to make everything I needed in API 3 and now I would like to test API 4 to my purpose, before I spent my money...

      1 Reply Last reply Reply Quote 0
      • JimInSanDiego
        JimInSanDiego Moderator last edited by

        The Windy API 4 can be found at https://api4.windy.com.


        JamesInSanDiego
        San Diego, CA USA

        1 Reply Last reply Reply Quote 0
        • fastseas
          fastseas Developers Sailor last edited by

          start with the samples/tutorials at https://api4.windy.com/. just copy the sample html as is into your own html file, put it on your web server, and look at the resulting page. make changes as needed. the samples cover a lot of ground in terms of typical changes folks might be interested in.

          saaneuvos 2 Replies Last reply Reply Quote 2
          • saaneuvos
            saaneuvos @fastseas | Premium last edited by

            @fastseas Thanks!

            1 Reply Last reply Reply Quote 1
            • saaneuvos
              saaneuvos @fastseas | Premium last edited by

              @fastseas Sorry to bother you again, but I’m still struggling to load API4…

              I copied the sample html as you informed and put it on my web server. But the page is blank in my sites?
              In the sample, there is script for leaflet. Is it enough for loading the Leaflet library or have to I do something more?
              Do you have any recommendations 😊
              PS I changed the API key to my personal API key I got from Windy

              1 Reply Last reply Reply Quote 0
              • siim
                siim last edited by

                Just give us link and then it is easier to tell you what is wrong with it.

                saaneuvos 1 Reply Last reply Reply Quote 0
                • saaneuvos
                  saaneuvos @siim | Premium last edited by

                  @siim link to my empty site is
                  https://www.sääneuvos.fi/test/testAPI4/

                  siim 1 Reply Last reply Reply Quote 0
                  • siim
                    siim @saaneuvos last edited by

                    @saaneuvos

                    I think you need to publish this page also.

                    At the moment it shows "Page not found" / "HUPS! ETSIMÄÄSI SIVUA EI LÖYTYNYT."

                    saaneuvos 1 Reply Last reply Reply Quote 1
                    • saaneuvos
                      saaneuvos @siim | Premium last edited by

                      @siim hmm, thanks! I'm using Wordpress. I made this testAPI4.php in test folder in my public html folder, but I have to still publish it somehow? Do you know have to make it in Wordpress?

                      1 Reply Last reply Reply Quote 0
                      • fastseas
                        fastseas Developers Sailor last edited by

                        @saaneuvos said in Guide for dummies: How to load API 4?:

                        testAPI4.php

                        ah, so the address is https://www.sääneuvos.fi/test/testAPI4.php.

                        when i try load that page, i see the js console is reporting the following error:
                        Windy API used on unauthorized domain

                        Have you authorized your domain (www.sääneuvos.fi) in your API config (https://api4.windy.com/api-key/)? If you have, ivo's code might be having issues with the special characters in your domain name (ä)...

                        DaFish saaneuvos 2 Replies Last reply Reply Quote 1
                        • DaFish
                          DaFish @fastseas | Premium last edited by

                          @fastseas Thanks again! I'll try that...

                          1 Reply Last reply Reply Quote 0
                          • saaneuvos
                            saaneuvos @fastseas | Premium last edited by

                            @fastseas Great!! Thanks for you time. It's now working. The reason was The special characters, because I had authorized my domain... @ivo FYI The special characters in domain cause problems with API4. It's maybe good idea to mention this on the API-page (https://api4.windy.com/api-key/)?

                            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