Page 1 of 1

CR 3_10_3 OPENWEATHERMAP bad request

Posted: Mon 22 Mar 2021 6:35 am
by michelinostreet
During upload to openweathermap the following MxDiag log appears:
2021-03-22 06:50:00.607 AWEKAS: Data PARIALLY stored
2021-03-22 06:50:00.822 Windy Response: OK: SUCCESS (valid measurements count: 9, valid station info count: 0)
2021-03-22 06:50:01.035 OpenWeatherMap: Response code = Error - BadRequest

Internet settings are as follows:

OpenWeatherMap
Enabled = yes
Interval = 5 Interval between updates in minutes
API key = 6ef53c4b642*******52b5d93426e5 Enter the API key you want to use for these uploads
Station Id has been left blank ( Enter your station id if known. If not leave blank and Cumulus will find an existing station or generate a new station for you )
Catch up When Cumulus starts, send each entry read from the station logger

Re: CR 3_10_3 OPENWEATHERMAP bad request

Posted: Mon 22 Mar 2021 9:30 am
by mcrossley
Please start CumulusMX.exe using the -debug command line option, then after 10 minutes post the MXdiags log file.

Re: CR 3_10_3 OPENWEATHERMAP bad request

Posted: Wed 24 Mar 2021 8:28 pm
by michelinostreet
below 10 minutes debug file. I've checked again API key in my openweathermap profile and look fine.
20210324-211150.zip

Re: CR 3_10_3 OPENWEATHERMAP bad request

Posted: Thu 25 Mar 2021 2:50 pm
by mcrossley
Thanks - I see the problem, Cumulus is sending comma decimal values and should be sending dot decimal. It will require a fix in the next release.

Re: CR 3_10_3 OPENWEATHERMAP bad request

Posted: Thu 25 Mar 2021 5:33 pm
by michelinostreet
thanks so much. I'll wait your next release. have a nice day. stefano.

Re: CR 3_10_3 OPENWEATHERMAP bad request

Posted: Wed 07 Apr 2021 4:30 pm
by michelinostreet
Mark,
I've tested latest release CR 3_10_5.
I think that the OpenWeatherMap problem is still live.
Test1: Settings, Internet Options, OpenWeatherMap, Station ID = null ( see log UsingStationId_null.txt )
Test2: Settings, Internet Options, OpenWeatherMap, Station ID = "IBOLOG37" ( see log UsingStationId_Filled.txt )
In both Test1 and Test2 error is the same: "Failed to create new station. Error - BadRequest, text - {"code":400001,"message":"syntax error: offset=65, error=invalid character '8' looking for beginning of object key string"}

Re: CR 3_10_3 OPENWEATHERMAP bad request

Posted: Thu 08 Apr 2021 4:07 pm
by mcrossley
I see using the Station Name - "IBOLOG37" - just returned an "Station id is invalid" message.

Leaving it blank and letting CMX create a new station failed because I missed forcing the Latitude and Longitude to use dot decimals, I'll fix that for the next release. :bash:

Re: CR 3_10_3 OPENWEATHERMAP bad request

Posted: Fri 09 Apr 2021 4:23 pm
by michelinostreet
as always .. thanks and most of all congrats for your great job. s