Welcome to the Cumulus Support forum.

Latest Cumulus MX V4 release 4.4.2 (build 4085) - 12 March 2025

Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024

Legacy Cumulus 1 release 1.9.4 (build 1099) - 28 November 2014
(a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)

Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki

If you are posting a new Topic about an error or if you need help PLEASE read this first viewtopic.php?p=164080#p164080

Trouble Sending Data to WINDY.COM

From build 3044 the development baton passed to Mark Crossley. Mark has been responsible for all the Builds since. He has made the code available on GitHub. It is Mark's hope that others will join in this development, but at the very least he welcomes your ideas for future developments (see Cumulus MX Development suggestions).

Moderator: mcrossley

User avatar
SJG1976
Posts: 367
Joined: Wed 21 Dec 2011 11:04 am
Weather Station: Davis WLL, with Airlink
Operating System: Raspberry Pi3 MX on USB Drive
Location: Glemsford, Suffolk
Contact:

Trouble Sending Data to WINDY.COM

Post 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.
freddie
Posts: 2870
Joined: Wed 08 Jun 2011 11:19 am
Weather Station: Davis Vantage Pro 2 + Ecowitt
Operating System: GNU/Linux Ubuntu 24.04 LXC
Location: Alcaston, Shropshire, UK
Contact:

Re: Trouble Sending Data to WINDY.COM

Post 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.
Freddie
Image
User avatar
SJG1976
Posts: 367
Joined: Wed 21 Dec 2011 11:04 am
Weather Station: Davis WLL, with Airlink
Operating System: Raspberry Pi3 MX on USB Drive
Location: Glemsford, Suffolk
Contact:

Re: Trouble Sending Data to WINDY.COM

Post 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.
User avatar
SJG1976
Posts: 367
Joined: Wed 21 Dec 2011 11:04 am
Weather Station: Davis WLL, with Airlink
Operating System: Raspberry Pi3 MX on USB Drive
Location: Glemsford, Suffolk
Contact:

Re: Trouble Sending Data to WINDY.COM

Post by SJG1976 »

I've triple checked and can't see anything wrong.
freddie
Posts: 2870
Joined: Wed 08 Jun 2011 11:19 am
Weather Station: Davis Vantage Pro 2 + Ecowitt
Operating System: GNU/Linux Ubuntu 24.04 LXC
Location: Alcaston, Shropshire, UK
Contact:

Re: Trouble Sending Data to WINDY.COM

Post 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!
Freddie
Image
User avatar
SJG1976
Posts: 367
Joined: Wed 21 Dec 2011 11:04 am
Weather Station: Davis WLL, with Airlink
Operating System: Raspberry Pi3 MX on USB Drive
Location: Glemsford, Suffolk
Contact:

Re: Trouble Sending Data to WINDY.COM

Post 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.
Mapantz
Posts: 1992
Joined: Sat 17 Dec 2011 11:55 am
Weather Station: Davis Vantage Pro2
Operating System: Windows 11 x64
Location: Dorset - UK
Contact:

Re: Trouble Sending Data to WINDY.COM

Post 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\""}
Image
User avatar
SJG1976
Posts: 367
Joined: Wed 21 Dec 2011 11:04 am
Weather Station: Davis WLL, with Airlink
Operating System: Raspberry Pi3 MX on USB Drive
Location: Glemsford, Suffolk
Contact:

Re: Trouble Sending Data to WINDY.COM

Post 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.
freddie
Posts: 2870
Joined: Wed 08 Jun 2011 11:19 am
Weather Station: Davis Vantage Pro 2 + Ecowitt
Operating System: GNU/Linux Ubuntu 24.04 LXC
Location: Alcaston, Shropshire, UK
Contact:

Re: Trouble Sending Data to WINDY.COM

Post 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?
Freddie
Image
User avatar
SJG1976
Posts: 367
Joined: Wed 21 Dec 2011 11:04 am
Weather Station: Davis WLL, with Airlink
Operating System: Raspberry Pi3 MX on USB Drive
Location: Glemsford, Suffolk
Contact:

Re: Trouble Sending Data to WINDY.COM

Post 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
water01
Posts: 3670
Joined: Sat 13 Aug 2011 9:33 am
Weather Station: Ecowitt HP2551
Operating System: Windows 10/11 64bit Synology NAS
Location: Burnham-on-Sea
Contact:

Re: Trouble Sending Data to WINDY.COM

Post 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\""}
David
Image
Mapantz
Posts: 1992
Joined: Sat 17 Dec 2011 11:55 am
Weather Station: Davis Vantage Pro2
Operating System: Windows 11 x64
Location: Dorset - UK
Contact:

Re: Trouble Sending Data to WINDY.COM

Post 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.
Image
User avatar
SJG1976
Posts: 367
Joined: Wed 21 Dec 2011 11:04 am
Weather Station: Davis WLL, with Airlink
Operating System: Raspberry Pi3 MX on USB Drive
Location: Glemsford, Suffolk
Contact:

Re: Trouble Sending Data to WINDY.COM

Post 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.
User avatar
SJG1976
Posts: 367
Joined: Wed 21 Dec 2011 11:04 am
Weather Station: Davis WLL, with Airlink
Operating System: Raspberry Pi3 MX on USB Drive
Location: Glemsford, Suffolk
Contact:

Re: Trouble Sending Data to WINDY.COM

Post 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?
User avatar
SJG1976
Posts: 367
Joined: Wed 21 Dec 2011 11:04 am
Weather Station: Davis WLL, with Airlink
Operating System: Raspberry Pi3 MX on USB Drive
Location: Glemsford, Suffolk
Contact:

Re: Trouble Sending Data to WINDY.COM

Post 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....
Post Reply