US - Metric problem

93 views
Skip to first unread message

Pila

unread,
Jan 9, 2020, 6:39:01 AM1/9/20
to weewx-user
I use exclusively metric units. I am adding extra Celsius temperatures to the database. Unfortunatelly for me, when I was building this particular system, I neglected to switch the database from US to Metric units (target_unit).

1) WeeWx is correctly reading my extraTemp1 as 18.4 but is saving it in F. So, my graph shows -8C instead of 18C. How can I tell WeeWx this input unit is C and not F?

2) Is there a (relatively) simple way of converting my existing database from US to Metric units? Google assumes I am illiterate so I can not find an answer. I am sure this will byte me again, so I would prefer to convert and have all my bases in Metric units.

Pila

unread,
Jan 9, 2020, 6:56:55 AM1/9/20
to weewx-user
Just to be clear, page on pondservice (example) says in Units "You must make sure the units match!" Which units? I do not understand what the next sentence refers to. My station is metric, all my data is metric, all works fine. I could work around by writing down data in F, but this is an offensive solution to me as I never use anything but metric anywhere. 

As to converting, I just found by accident "Changing the database unit system" so I expect that should solve my 2) question if I choose to do it.

Thomas Keffer

unread,
Jan 9, 2020, 7:30:59 AM1/9/20
to weewx-user
You're not giving a lot of information, but it sounds like your weather station is emitting values in the US System, to which you are adding a value in the metric system without converting one or the other first.

You need to inject your value after the service StdConvert has done its work converting the record to metric, not before.

But, that's just an educated guess. Without seeing details of your weewx.conf file, we can't be sure.

No need to be "offended." The option target_unit clearly warns not to change the value without knowing what you're doing. Heed the warning.

-tk






On Thu, Jan 9, 2020 at 4:56 AM Pila <mrzim...@gmail.com> wrote:
Just to be clear, page on pondservice (example) says in Units "You must make sure the units match!" Which units? I do not understand what the next sentence refers to. My station is metric, all my data is metric, all works fine. I could work around by writing down data in F, but this is an offensive solution to me as I never use anything but metric anywhere. 

As to converting, I just found by accident "Changing the database unit system" so I expect that should solve my 2) question if I choose to do it.

--
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/e68ac729-dc93-4699-bde9-770c569faa84%40googlegroups.com.

Pila

unread,
Jan 10, 2020, 11:59:59 AM1/10/20
to weewx-user
That is what was confusing me. To my belief, I use only metric and my WS2080 also uses only metric. So I expected this recognized type to be handled well. Problem with great programs is that they are big :) with lots of features and it takes months to get aquainted with their terminology as a new user.

But, since I did found how to convert the database to metric, all is well. I also added extraTemp4.

Now, I have a silly problem: I am unable to specify plot colours for my 4 series. I was reading docs and believe I am doing it right. My colors are simply ignored and my 4th series is in cyan (light blue). I did in:

/home/weewx/skins/Smartphone/skin.conf

define my colours:

chart_line_colors = 0xff0000, 0x3333ff, 0x00cc00, 0xFFC300

They are: red, blue, green and yellow. When I generate my plots, I get: blue, red, green, cyan in that order. What am I doing wrong?







gjr80

unread,
Jan 10, 2020, 5:24:52 PM1/10/20
to weewx-user
Hi,

Actually 0xff0000, 0x3333ff, 0x00cc00, 0xFFC300 are (shades of) blue, red, green and light blue not red, blue, green and yellow. In skin.conf [ImageGenerator] 0x colours are in BGR format not RGB. Probably not clearly spelt out in the docs but there is a fairly clear explanation in the Standard and Seasons skin.conf.

Try 0xff0000, 0x3333ff, 0x00cc00, 0x00C3FF.

Gary

Pila

unread,
Jan 11, 2020, 6:52:13 AM1/11/20
to weewx-user
Yessss! Thank you! Since I did not see any particular explanation, I entered HTML colour codes :) Figuring, it is going to HMTL page.

This sentence of yours certanly should find its way to docs :))
Reply all
Reply to author
Forward
0 new messages