Weather Underground

52 views
Skip to first unread message

Timothy Butcher

unread,
Feb 21, 2021, 9:21:22 AM2/21/21
to weewx-user
When setting up for Weather Underground, is the password to be the account password or the Key in system device.  I have everything seeming to be working except sending data to Weather Underground.

John Kline

unread,
Feb 21, 2021, 9:24:21 AM2/21/21
to weewx...@googlegroups.com
It’s the key, listed under my devices on WU, for that particular station.

On Feb 21, 2021, at 6:21 AM, Timothy Butcher <timothy...@gmail.com> wrote:

When setting up for Weather Underground, is the password to be the account password or the Key in system device.  I have everything seeming to be working except sending data to Weather Underground.

--
You received this message because you are subscribed to the Google Groups "weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/4d6ebfaa-fe74-4f1a-b45b-18a49e9f311en%40googlegroups.com.

Timothy Butcher

unread,
Feb 21, 2021, 11:45:01 AM2/21/21
to weewx...@googlegroups.com

D R

unread,
Feb 21, 2021, 12:35:24 PM2/21/21
to weewx...@googlegroups.com
If the number is negative, it will print a "-" in front of the number.

Despite looking through Python formatting pages from searches for Python
Formatting, I cannot see that there is a provision to force a "+" in
front of a number no matter what.

For example:

-23.7 is always given if negative,

45.2 is given but I'd like +45.2

Is there a formatting character to do this?  I guess a long logical
string to determine if the value is greater than zero, then toggle to
print "+" if true, but that seems more than what I want to waste CPU
cycles.  I was just hoping that some character had been assigned to
force a +.


Dale


p q

unread,
Feb 21, 2021, 1:04:29 PM2/21/21
to weewx...@googlegroups.com
You could play code golf and end up with something like:

&# 44-(Math.sqrt.(x^2)/x) x

44 is the ascii char for -
43 is the ascii char for +
x is your value

There's probably a syntax error in there. And it will absolutely fail with a division by 0. You didn't specify what you wanted for 0. Both -0 and +0 always seem weird to me. Don't get me started about 12:00pm.

I don't know why you want to save cycles in 2021 with a bit of logic, but I bet you could make something work like this with a little polish.

--
You received this message because you are subscribed to the Google Groups "weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+...@googlegroups.com.


--
Peter Quinn
(415)794-2264

Tom Keffer

unread,
Feb 21, 2021, 1:26:00 PM2/21/21
to weewx-user
Just use the "+" format specifier:

$current.outTemp.format("%+.2f") will give something like

+22.12 for positive temperature
-22.12 for negative temperature



On Sun, Feb 21, 2021 at 9:35 AM D R <daleea...@gmail.com> wrote:
--
You received this message because you are subscribed to the Google Groups "weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages