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

    Report your Weather Station Data to Windy

    Scheduled Pinned Locked Moved Windy Stations
    406 Posts 149 Posters 873.7k Views 35 Watching
    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.
    • LZ7AAL Offline
      LZ7AA
      last edited by

      Hi guys, I need some help to diagnose an issue I have with POST JSON data of my station. Here is my request:

      body: "{"observations":[{"station":0,"temp":23.1}]}"
      

      and i get

      body: "ERROR: no params"
      

      Is my JSON format correct? I'm using Node-Red to compile the message and post it.

      1 Reply Last reply Reply Quote 0
      • Vladyslav LebedievV Offline
        Vladyslav Lebediev
        last edited by

        Good afternoon, colleagues!
        I am addressing you with what seems to me a non-standard question.
        The situation is as follows - when trying to send data to the site, difficulties arise, what they are connected with, I can’t understand, but I hope for your experience.
        I have developed a software and hardware complex for meteorological monitoring based on a microprocessor platform, a sensor unit and a GSM modem for data transmission using GPRS technology.
        As a GSM modem, I use the SIM900 module.
        The GSM modem is controlled using AT commands.
        Sending was tried to be carried out both using the TCP/IP functions, and using the HTTP functions.
        That is, by sending a regular GET request in this format:

        https://stations.windy.com/pws/update/XXX-API-KEY-XXфX?winddir=n&wind=n"

        Where n is the corresponding value of the specified parameter.
        According to the latest modem responses, as far as I understand, the error lies in the incorrect reception of the sent request, that is, the server cannot process it - HTTP/1.0 400 Bad Request.
        But at the same time in the browser such a request is processed without problems.
        I'm sure this system will work because the two sending methods - TCP/IP and HTTP - will do a great job of sending data to Thingspeak.com.
        Therefore, I dare to assume that the error may be on the server side, or I am not connecting to it correctly, or for some other reason I cannot get through to the server, or he really does not like my request, or something else.
        Usually, when connecting to the server, the command looks like this:

        AT+CIPSTART="TCP","api.thingspeak.com","80"

        By analogy, I also specify for the site www.windy.com:

        AT+CIPSTART="TCP","api.windy.com","80"

        But the result is negative, I tried to specify the IP, if I understood correctly:

        AT+CIPSTART="TCP","35.201.88.123","80"

        But nothing.
        I also tried the HTTP method in GET request format:

        AT+HTTPPARA="URL","https://stations.windy.com/pws/update/XXX-API-KEY-XXX?winddir=n&wind=n"

        But also not effective, I tried many options, there were errors 303, 603 and 400.
        Can anyone come across with the organization of such methods of sending? Or understands how to organize it correctly, I will be very grateful.
        Below I attach the code of the program, as well as a screenshot of an attempt to send data and responses from the module.

        TCP/IP function:
        If the URL is "http://api.thingspeak.com/update?api_key=XXX-API-KEY-XXX&field1=n&field2=n&field3=n&field4=n&field5=n&field6=n" and the TCP is "api. thingspeak.com", then everything works.

        AT+CPIN?
        AT+CSQ
        AT+CREG?
        AT+CGATT?
        AT+CSTT="internet"
        AT+CIICR
        AT+CIFSR
        AT+CIPSTART="TCP","api.windy.com","80"
        AT+CIPSEND
        https://stations.windy.com/pws/update/XXX-API-KEY-XXX?winddir=n&wind=n
        

        HTTP function:
        If the URL is "http://api.thingspeak.com/update?api_key=XXX-API-KEY-XXX&field1=n&field2=n&field3=n&field4=n&field5=n&field6=n" and the IP is "api. thingspeak.com", then everything works.

        AT+SAPBR=3,1,"CONTYPE","GPRS"
        AT+SAPBR=3,1,"APN","internet"
        AT+SAPBR=1,1
        AT+SAPBR=2,1
        AT+HTTPINIT
        AT+HTTPPARA="CID",1
        AT+HTTPPARA="URL","https://stations.windy.com/pws/update/XXX-API-KEY-XXX?winddir=n&wind=n" 
        AT+HTTPPARA="PROIP","35.201.88.123"
        AT+HTTPPARA="PROPORT",80
        AT+HTTPACTION=0
        AT+HTTPREAD
        AT+HTTPTERM
        

        Screenshot of an error when using the TCP/IP function:

        photo1660932633.jpeg

        Thanks a lot in advance!

        KorinaK 1 Reply Last reply Reply Quote 0
        • KorinaK Offline
          Korina @Vladyslav Lebediev
          last edited by

          @Vladyslav-Lebediev Hello, what type of weather station do you use? You probably need additional software to be able to send us data.

          Korina

          Vladyslav LebedievV 1 Reply Last reply Reply Quote 0
          • Vladyslav LebedievV Offline
            Vladyslav Lebediev @Korina
            last edited by

            @Korina Hi! I use a homemade weather station with my software.
            I'm trying to send data using the API, but unfortunately your server cannot process my request correctly, or my weather station still cannot connect to your server. It is possible that I am not specifying the correct port when connecting to the server.
            May I know your IP, API and possibly port?

            KorinaK 1 Reply Last reply Reply Quote 0
            • M Offline
              mtkrastev
              last edited by

              Hi, I have 2 weather stations registered in my account. And they work fine. However, I want to add a 3rd one. When I fill in all the fields and click on Save, the station is not added to the list of stations I have. I am redirected to the page listing my stations, but the newly added station is not there. No specific error or success message is shown.

              Is there any limitation on the number of stations a user could add, e.g. 2? Or is there something broken in the add station functionality on Windy? Thanks for your replies!

              KorinaK 1 Reply Last reply Reply Quote 0
              • KorinaK Offline
                Korina @mtkrastev
                last edited by

                @mtkrastev Hello, I just tested adding a new station and everything worked as expected. What browser are you using? Also, did you fill out all the fields?

                Korina

                M 1 Reply Last reply Reply Quote 0
                • KorinaK Offline
                  Korina @Vladyslav Lebediev
                  last edited by

                  @Vladyslav-Lebediev Hello, all the necessary details are stated at stations.windy.com. We cannot provide IP. I suggest trying a third party software.

                  Korina

                  Vladyslav LebedievV 1 Reply Last reply Reply Quote 0
                  • M Offline
                    mtkrastev @Korina
                    last edited by

                    @Korina Hi, I tried with recent versions of both Firefox and Chrome. I filled in all the fields. Actually, I tried adding a new station at least 5 times, and it never worked. Not really sure what to try next.

                    KorinaK 1 Reply Last reply Reply Quote 0
                    • KorinaK Offline
                      Korina @mtkrastev
                      last edited by

                      @mtkrastev Could you let me know your station's ID?

                      Korina

                      M 1 Reply Last reply Reply Quote 0
                      • M Offline
                        mtkrastev @Korina
                        last edited by

                        @Korina Hi, the stations IDs are f05140f8 and 1f05140f8.

                        KorinaK 1 Reply Last reply Reply Quote 0
                        • KorinaK Offline
                          Korina @mtkrastev
                          last edited by

                          @mtkrastev Please try to clear the browser cache. Also, could you post a video showing the error with adding the station?

                          Korina

                          1 Reply Last reply Reply Quote 0
                          • Vladyslav LebedievV Offline
                            Vladyslav Lebediev @Korina
                            last edited by

                            @Korina Good day.
                            Unfortunately, I still can't solve my problem, I think that this may be due to the size of the data that I send you to the server, and everything would be fine if I did not have a buffer size limit on my system.
                            I want to ask if it is possible to change mine API to a shorter one?
                            I think this might solve the problem.

                            KorinaK 1 Reply Last reply Reply Quote 0
                            • KorinaK Offline
                              Korina @Vladyslav Lebediev
                              last edited by

                              @Vladyslav-Lebediev Hello, it is not possible to change the length of the API key.

                              Korina

                              Vladyslav LebedievV 1 Reply Last reply Reply Quote 0
                              • Vladyslav LebedievV Offline
                                Vladyslav Lebediev @Korina
                                last edited by

                                @Korina I understand, ok, thanks for the reply.
                                And please tell me, does your server only accept HTTPS requests, or can it still accept HTTP requests?
                                If I contact your server via an HTTP request, I understand that the server will ignore it? Or can the server still process the HTTP request?
                                Thanks!

                                1 Reply Last reply Reply Quote 0
                                • Hermann HafsteinssonH Offline
                                  Hermann Hafsteinsson @marekd
                                  last edited by

                                  What happens to the data? Is it being used anywhere? I'm sending temperature data but I'm not seeing it on the public map.

                                  KorinaK 1 Reply Last reply Reply Quote 0
                                  • KorinaK Offline
                                    Korina @Hermann Hafsteinsson
                                    last edited by

                                    @Hermann-Hafsteinsson Hello, if you are sending us your station's data, then you should see the station on the map. Please double-check your settings.

                                    Korina

                                    SsnjoffS 1 Reply Last reply Reply Quote 0
                                    • SsnjoffS Offline
                                      Ssnjoff @Korina | Premium
                                      last edited by

                                      @Korina
                                      Hello.
                                      Even my station sends the data to Madis, it disappeared from the Windy stations recently. Were there any changes?
                                      Double checked my station data but there was everything ok. It worked OK for quite some time but, then the station just disappeared from Windy (error loading or rendering data message).
                                      Thanks in advance,
                                      Gordana

                                      KorinaK Léo LachanceL 2 Replies Last reply Reply Quote 0
                                      • KorinaK Offline
                                        Korina @Ssnjoff
                                        last edited by

                                        @Ssnjoff Hello, what is your station ID, please?

                                        Korina

                                        1 Reply Last reply Reply Quote 0
                                        • noahrashetaN Offline
                                          noahrasheta
                                          last edited by noahrasheta

                                          Hello! I have a KestrelMet 6000 Cellular WX station and it’s broadcasting WX data to KestrelNet, Ambient, and Wunderground. Also visible here:
                                          https://www.pwsweather.com/station/pws/UT10CVA

                                          How do I configure it to also send data to Windy? I added a station in Windy but I’m not sure how to send the data over. Does anyone have instructions that can point me in the right direction? Thanks!

                                          KorinaK 1 Reply Last reply Reply Quote 0
                                          • KorinaK Offline
                                            Korina @noahrasheta
                                            last edited by

                                            @noahrasheta Hello, you will need additional software. Please check the stations category, there are several programs compatible with Windy.

                                            Korina

                                            1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post
                                            Windy Community  |  Powered by excellent NodeBB
                                            Terms of Use     Privacy Policy     Windy.com