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

Wunderground configuration password is not sent correctly

Discussion and questions about Cumulus weather station software version 1. This section is the main place to get help with Cumulus 1 software developed by Steve Loft that ceased development in November 2014.
Post Reply
peterh
Posts: 150
Joined: Fri 21 Dec 2012 1:08 pm
Weather Station: Alecto WS-5000 rebadged FO 3081
Operating System: Windows server 2008R2
Location: Nederland

Wunderground configuration password is not sent correctly

Post by peterh »

Hi.

I just so happen to have a comma (,) in my Wunderground password.
Or I had. Because I got INVALIDPASSWORDID twice in a row in my debug.log. It had sent the password with a dot rather than a comma. On inspecting the cumulus.ini file, I saw that in there, the password was correct (with a comma rather than a dot).

I've changed my Wunderground password to a password not containing interpunction... and now it works.
An opinion should be the result of a thought process, not a substitution.
http://www.dnl-core.net/CothenWeather/
User avatar
steve
Cumulus Author
Posts: 26672
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: Wunderground configuration password is not sent correctl

Post by steve »

How do you know it was sending a dot rather than a comma? There's nothing in Cumulus that would do that conversion. I'm not surprised to hear that a comma caused a problem, though.
Steve
peterh
Posts: 150
Joined: Fri 21 Dec 2012 1:08 pm
Weather Station: Alecto WS-5000 rebadged FO 3081
Operating System: Windows server 2008R2
Location: Nederland

Re: Wunderground configuration password is not sent correctl

Post by peterh »

steve wrote:How do you know it was sending a dot rather than a comma?
Because even though, in the Cumulus.ini, the password was correct (with a comma):

Code: Select all

[Wunderground]
ID=IUTRECHT58
Password=**,*****
Enabled=1
RapidFire=0
Interval=10
SendUV=1
SendSR=1
SendAverage=1
CatchUp=1
in the debug.log file it said:

Code: Select all

7979.4745 : http://weatherstation.wunderground.com/weatherstation/updateweatherstation.php?ID=IUTRECHT58&PASSWORD=**.*****&dateutc=2013-01-
01+13%3A30%3A01&winddir=270&windspeedmph=11.4&windgustmph=15.2&windspdmph_avg2m=8.3&winddir_avg2m=303&humidity=74&tempf=47.1&rainin=0.00
&dailyrainin=0.38&baromin=29.705&dewptf=39.3&UV=1.0&solarradiation=230&softwaretype=Cumulus%20v1.9.2&action=updateraw
7979.5385 : 14:30:02 WU Response Code: 200 Response = INVALIDPASSWORDID|Password and/or id are incorrect
(Yes, I have masked the password with asterisks, except for the comma/period. You'd never guess it, anyway).

And I *am* surprised that a comma caused a problem. :-p
On second thought: I am guessing that you have code somewhere that replaces a decimal comma with a decimal period... probably because that's what Wunderground wants. It *must* be something like that... probably in the code where you compile the web request to be sent to Wunderground... amirite?
An opinion should be the result of a thought process, not a substitution.
http://www.dnl-core.net/CothenWeather/
User avatar
steve
Cumulus Author
Posts: 26672
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: Wunderground configuration password is not sent correctl

Post by steve »

peterh wrote:On second thought: I am guessing that you have code somewhere that replaces a decimal comma with a decimal period... probably because that's what Wunderground wants. It *must* be something like that... probably in the code where you compile the web request to be sent to Wunderground... amirite?
Yes, you're absolutely correct and I'd forgotten that it works that way rather than modifying the individual items :oops:

So, yes, it needs to be changed at some point.

In 1.9.3, the password is 'asterisked' in the debug.log, so you wouldn't have been able to see what was being sent. I thought that 1.9.2 was the same, but clearly not.
Steve
peterh
Posts: 150
Joined: Fri 21 Dec 2012 1:08 pm
Weather Station: Alecto WS-5000 rebadged FO 3081
Operating System: Windows server 2008R2
Location: Nederland

Re: Wunderground configuration password is not sent correctl

Post by peterh »

steve wrote:
peterh wrote:On second thought: I am guessing that you have code somewhere that replaces a decimal comma with a decimal period... probably because that's what Wunderground wants. It *must* be something like that... probably in the code where you compile the web request to be sent to Wunderground... amirite?
Yes, you're absolutely correct and I'd forgotten that it works that way rather than modifying the individual items :oops:
I've been coding too long to not spot these things ;-)
steve wrote:In 1.9.3, the password is 'asterisked' in the debug.log, so you wouldn't have been able to see what was being sent. I thought that 1.9.2 was the same, but clearly not.
An observation:
If it WOULD have been the same, it would've taken me a *lot* longer to figure out. So, please do not asterisk this out! :-o
An opinion should be the result of a thought process, not a substitution.
http://www.dnl-core.net/CothenWeather/
User avatar
steve
Cumulus Author
Posts: 26672
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: Wunderground configuration password is not sent correctl

Post by steve »

peterh wrote:If it WOULD have been the same, it would've taken me a *lot* longer to figure out. So, please do not asterisk this out! :-o
Well, yes, but unfortunately I can't expect people to upload debug.log files with passwords in, so in 1.9.3 they're not visible.
Steve
peterh
Posts: 150
Joined: Fri 21 Dec 2012 1:08 pm
Weather Station: Alecto WS-5000 rebadged FO 3081
Operating System: Windows server 2008R2
Location: Nederland

Re: Wunderground configuration password is not sent correctl

Post by peterh »

steve wrote:
peterh wrote:If it WOULD have been the same, it would've taken me a *lot* longer to figure out. So, please do not asterisk this out! :-o
Well, yes, but unfortunately I can't expect people to upload debug.log files with passwords in, so in 1.9.3 they're not visible.
In that case, we would want to be absolutely, positively sure we do not change the password string in any way.
Or we create an extra debugging option, something like "Include account information in debug file (including passwords)".

Let me think about this for awhile and get back to you.
An opinion should be the result of a thought process, not a substitution.
http://www.dnl-core.net/CothenWeather/
Post Reply