Windy Community
    • Unread
    • Categories
    • Groups
    • Go to windy.com
    • Register
    • Login

    Importing Own CSV File

    Windy Plugins
    3
    7
    3.1k
    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.
    • A
      ac5a
      last edited by

      Hi,

      I am currently trying to load a csv file from my own computer following tutorial 8.
      I have downloaded 'a.csv' from windy.com and it put it in the same folder where 'plugin.html' is located. The webpage loads fine, but when I click on the right sidebar to load the data, nothing shows up.
      Any help is appreciated. I have added a picture of my code. 0_1541460413833_Untitled.png

      1 Reply Last reply Reply Quote 0
      • ivoI
        ivo Administrator
        last edited by

        Check CORS on MDN. File must be hosted on some https:// server

        1 Reply Last reply Reply Quote 1
        • A
          ac5a
          last edited by

          I moved the csv to Google Drive and set the sharing settings to "accessible with link" but when I tried and load it gives me an error saying that the file must be retrieved full windy.com. What is the way around this?

          I have attached a screenshot.

          Thanks0_1541530330725_Untitled.png

          ivoI 1 Reply Last reply Reply Quote 0
          • ivoI
            ivo Administrator @ac5a
            last edited by

            @ac5a The server must set CORS headers. It evidently does not.

            A 2 Replies Last reply Reply Quote 0
            • A
              ac5a @ivo
              last edited by

              @ivo Is there a way that I can set the CORS headers to accept the google drive link? If not, what are my other options on how to upload my own csv? Thanks

              1 Reply Last reply Reply Quote 0
              • A
                ac5a @ivo
                last edited by

                @ivo I was able to resolve this issue and upload my own files. Thank you

                For future readers, you must upload your files to a server where you have the ability to set CORS headers. You cannot simply upload it to a dropbox or google drive where you do not have this control.

                1 Reply Last reply Reply Quote 0
                • U
                  uizin
                  last edited by

                  Hey @ac5a would you mind sharing your plugin code? I'm interested in this topic too!
                  Thank you so much :)

                  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 of Use     Privacy Policy