Page 1 of 2
Trouble Sending Data to WINDY.COM
Posted: Fri 31 Dec 2021 11:36 am
by SJG1976
Hi,
I'm having trouble sending data to Windy.com
Looking at the Log files it seems like it's missing the API Key.
Where the API Key goes it just says <<API KEY>>
I've had a look in the cumulus.ini file and the API Key is listed, and if I manually edit the file and put in my API Key it works, not sure how to fix and update this one.
I've tried a re-start of Cumulus but that didn't help
Below is the lines from Cumlus.ini (I've change the API Key to all X's)
Code: Select all
[Windy]
APIkey=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
StationIdx=0
Enabled=1
Interval=5
SendUV=1
CatchUp=1
And this is what is reported in the Logs (it seem to be missing the API Key?)
Code: Select all
2021-12-31 11:25:01.545 Windy: URL = https://stations.windy.com/pws/update/<<API_KEY>>?station=0&dateutc=2021-12-31+11:25:00&winddir=235&wind=3.1&gust=6.7&temp=13.9&precip=0.00&pressure=10.1395&dewpoint=12.4&humidity=91&uv=0.0
2021-12-31 11:25:01.556 http://www.pwsweather.com/pwsupdate/pwsupdate.php?ID=CM2Weather&PASSWORD=***************&dateutc=2021-12-31+11%3A25%3A00&winddir=235&windspeedmph=7.0&windgustmph=15.0&humidity=91&tempf=57.0&rainin=0.00&dailyrainin=0.00&baromin=29.945&dewptf=54.4&UV=0.0&solarradiation=51&softwaretype=Cumulus%20v3.14.1&action=updateraw
2021-12-31 11:25:01.567 WOW URL = http://wow.metoffice.gov.uk/automaticreading?siteid=30826477&siteAuthenticationKey=******&dateutc=2021-12-31+11%3A25%3A00&winddir=235&windspeedmph=7.0&windgustmph=15.0&humidity=91&tempf=57.0&rainin=0.00&dailyrainin=0.00&baromin=29.945&dewptf=54.4&UV=0.0&solarradiation=51&softwaretype=Cumulus%20v3.14.1&action=updateraw
2021-12-31 11:25:01.572 Current CPU temp = 48.9°C
2021-12-31 11:25:01.615 Windy: ERROR - An error occurred while sending the request.
I've only recently tried to start sending data from the latest release, so not sure if it's something I have done wrong?
Thanks Steve.
Re: Trouble Sending Data to WINDY.COM
Posted: Fri 31 Dec 2021 11:44 am
by freddie
<<API KEY>> appears in the log file so that you can post log files to the forum without risk of you exposing your API key to anybody else. Same with passwords being replaced by ******. Standard redaction techniques.
I have the same in my log files and my Windy requests are being processed okay. It must be something else in your Windy setup.
Re: Trouble Sending Data to WINDY.COM
Posted: Fri 31 Dec 2021 11:56 am
by SJG1976
Ahh OK.
Not sure then, maybe I have a space in the Key somewhere.
If I manually copy that from the Log file and change it with my API Key and paste into a Browser it's fine.
I'll triple check and see if I have any spaces somewhere.
Re: Trouble Sending Data to WINDY.COM
Posted: Fri 31 Dec 2021 12:34 pm
by SJG1976
I've triple checked and can't see anything wrong.
Re: Trouble Sending Data to WINDY.COM
Posted: Fri 31 Dec 2021 1:21 pm
by freddie
Are you getting errors for your PWS or WOW uploads? If not, then the only thing I can think of is that Windy requests are made using https rather than the http that WOW and PWS use, so perhaps there's some sort of issue with https on the computer that MX is running on? That is a complete stab in the dark though!
Re: Trouble Sending Data to WINDY.COM
Posted: Fri 31 Dec 2021 1:48 pm
by SJG1976
I've just added a few more.
Weather Underground is fine (updated my password and now using a station ID rather than password but all working)
Windy.com Not working
PWS All working fine (added today)
Met Office been working since Cumulus 1
ARPS/CWOP Working
AWKAS Working Fine
Not Using Weather Cloud
OpenWeatherMap Not working (error with server response)
WindGuru not using
Custom HTTP Requests to my website working fine using http requests
Have just changed to https to see if it breaks.
Thinking about it, you might be onto something there as I did have issues with my Custom http requests a while ago.
Re: Trouble Sending Data to WINDY.COM
Posted: Fri 31 Dec 2021 1:49 pm
by Mapantz
No problems with windy, but Openweathermap..
Code: Select all
2021-12-31 13:45:00.765 OpenWeatherMap: ERROR - Response code = InternalServerError, Response data = {"code":500002,"message":"Exception (504) Reason: \"channel/connection is not open\""}
Re: Trouble Sending Data to WINDY.COM
Posted: Fri 31 Dec 2021 1:56 pm
by SJG1976
I'm getting the same Error on Open weather as well.
Code: Select all
2021-12-31 13:15:02.448 Windy: ERROR - An error occurred while sending the request.
2021-12-31 13:15:02.632 OpenWeatherMap: Response code = Error - InternalServerError
2021-12-31 13:15:02.632 OpenWeatherMap: ERROR - Response code = InternalServerError, Response data = {"code":500002,"message":"Exception (504) Reason: \"channel/connection is not open\""}
I've changed my Custom HTTP calls from
http to https:
They are both still working.
Re: Trouble Sending Data to WINDY.COM
Posted: Fri 31 Dec 2021 2:02 pm
by freddie
So it seems that https per se is okay - it seems to be particular hosts/services that you (and others) are seeing errors for. Have you tried reaching out to Windy to see if they can help? Or Openweathermap?
Re: Trouble Sending Data to WINDY.COM
Posted: Fri 31 Dec 2021 2:08 pm
by SJG1976
Not yet.
I'll give that a go, I've only just started sending data today, so though it was probably something I'm doing wrong.
Thanks for the suggestions.
I might do an update on the Raspberry Pi as well, and see if it something to do with that, as I've not done one for a while, and I think that is what fixed the last https error
something with outdated root Certificates IIRC
Thanks for the pointers.
Steve
Re: Trouble Sending Data to WINDY.COM
Posted: Fri 31 Dec 2021 2:20 pm
by water01
I think OpenWeatherMap has a problem
Code: Select all
2021-12-31 14:10:03.707 OpenWeatherMap:
ERROR - Response code = InternalServerError, Response data = {"code":500002,"message":"Exception (504) Reason: \"channel/connection is not open\""}
Re: Trouble Sending Data to WINDY.COM
Posted: Fri 31 Dec 2021 2:22 pm
by Mapantz
I personally cannot be bothered to contact any of them, as they all throw up errors. WoW is constant, weathercloud has started erroring a lot lately, now openweathermap.
I'm not even sure where the data is going on openweathermap, I cannot find a list of PWS's.
Re: Trouble Sending Data to WINDY.COM
Posted: Fri 31 Dec 2021 2:30 pm
by SJG1976
I've posted to Windy.
And one of the replies was that it can take 3 days before the Station Data goes live
Also another reply was is your SSL Valid still as it's throwing up Errors.
So who knows..
I've submitted one to Open Weather as well, so will await a response.
Re: Trouble Sending Data to WINDY.COM
Posted: Fri 31 Dec 2021 3:39 pm
by SJG1976
Open Weather have responded asking what the API Upload looks like.
As far as I can see it'[s
Code: Select all
http://api.openweathermap.org/data/3.0/measurements?appid=<MYAPI>
But no idea where the Data is or the Station ID goes?
Re: Trouble Sending Data to WINDY.COM
Posted: Fri 31 Dec 2021 6:15 pm
by SJG1976
Well I've just Backed up all my Rasperry Pi
Re-Imaged it from scratch.
Installed all updates so I'm now running Raspberry Pi Bullseye
Installed mono latest
Done a Fresh install of CMX and copied my Data back,
Still not working so I'm out of idea.
I have now however broken my Custom HTTPS Call
Code: Select all
021-12-31 17:51:02.286 CustomHttpSeconds: Querying - https://www.cm2weather.co.uk/importtosql.php?type=realtime&key=MYKEYXXXXX&table=Realtime&file=./realtime.txt
2021-12-31 17:51:03.288 CustomHttpSeconds: Response status code does not indicate success: 301 (Moved Permanently).
I think this was to do with an ipv6 address rather than an ipv4
I've not removed the ipv6 address by making the following changes
Code: Select all
(IN “/etc/sysctl.conf”:)
net.ipv6.conf.all.disable_ipv6=1
net.ipv6.conf.default.disable_ipv6=1
net.ipv6.conf.lo.disable_ipv6=1
net.ipv6.conf.eth0.disable_ipv6 = 1
However this still hasn't worked.
I'm also now getting a different Error on Windy and as well
Code: Select all
2021-12-31 18:10:02.211 Windy: URL = https://stations.windy.com/pws/update/<<API_KEY>>?station=0&dateutc=2021-12-31+18:10:00&winddir=227&wind=1.8&gust=4.0&temp=13.4&precip=0.00&pressure=10.1802&dewpoint=11.5&humidity=88&uv=0.0
2021-12-31 18:10:02.226 http://www.pwsweather.com/pwsupdate/pwsupdate.php?ID=CM2Weather&PASSWORD=***************&dateutc=2021-12-31+18%3A10%3A00&winddir=227&windspeedmph=4.0&windgustmph=9.0&humidity=88&tempf=56.2&rainin=0.00&dailyrainin=0.00&baromin=30.065&dewptf=52.7&UV=0.0&solarradiation=0&softwaretype=Cumulus%20v3.14.1&action=updateraw
2021-12-31 18:10:02.241 WOW URL = http://wow.metoffice.gov.uk/automaticreading?siteid=30826477&siteAuthenticationKey=******&dateutc=2021-12-31+18%3A10%3A00&winddir=227&windspeedmph=4.0&windgustmph=9.0&humidity=88&tempf=56.2&rainin=0.00&dailyrainin=0.00&baromin=30.065&dewptf=52.7&UV=0.0&solarradiation=0&softwaretype=Cumulus%20v3.14.1&action=updateraw
2021-12-31 18:10:02.246 Current CPU temp = 54.8°C
2021-12-31 18:10:02.256 AWEKAS Response code = OK
2021-12-31 18:10:02.257 AWEKAS: Data stored OK
2021-12-31 18:10:02.304 Windy: ERROR - The SSL connection could not be established, see inner exception.
2021-12-31 18:10:02.380 Done creating standard Data file
2021-12-31 18:10:02.380 Creating graph data files
2021-12-31 18:10:02.471 PWS Response: OK: <html lang="en">
So thinking it's to do with an SSL Certificate but I can't for the life of me remember how to update the SSL on there now.
Not really having much luck today....