Display both metric and imperial values

82 views
Skip to first unread message

weather list

unread,
Jun 11, 2021, 5:53:18 PM6/11/21
to weewx...@googlegroups.com
Original thread on this is here.

"My system uses US units but I’ve been looking to see if I can somehow display the temp in both systems:

e.g.: 74 °F / 23 °C"

That was answered helpfully in the original thread.

New questions:

In the Belchertown skin:

Is it possible  to set a combined °F /°C group temperature or some way to have both w/o customizing each temp display?

Is it possible to have a JS switch like the Light/Dark one to allow viewers to set display to metric or imperial?

Ian Millard

unread,
Jun 11, 2021, 5:58:05 PM6/11/21
to weewx...@googlegroups.com
Look here: -


Various unit systems can be toggled from the menu (hamburger button top left)

Ian

--
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/28CB833D-EDD4-437C-8E87-711A2082E81C%40gmail.com.

weather list

unread,
Jun 11, 2021, 6:56:30 PM6/11/21
to weewx...@googlegroups.com
Yes, those Weather34 version have always done that. I’m interested in whether it’s possible to do that in the Belchertown skin.

Karen K

unread,
Jun 12, 2021, 12:06:00 AM6/12/21
to weewx-user
With the coming version 4.6 of WeeWX it will be easier to switch between units. Look at the Alpha version here. You could then create an °C and an °F version of the skin and link to each other.

steeple ian

unread,
Jun 12, 2021, 3:04:55 AM6/12/21
to weewx...@googlegroups.com
It should be quite straight forward. My approach would be a to use a unit system conversion calculation which could be toggled via an additional button in the skin.



weather list

unread,
Jun 12, 2021, 1:54:09 PM6/12/21
to weewx...@googlegroups.com
Sounds good but also well above my pay grade I fear! Thank you.

steeple ian

unread,
Jun 12, 2021, 6:02:46 PM6/12/21
to weewx...@googlegroups.com
I am busy maintaining the support for my own template at the moment. However, the WeeWX community is very, very supportive so I am absolutely sure there will be somebody who is willing to tackle this for you. I am happy to share code, but as I principally work in PHP, it is probably not very appropriate for the Belchertown template.

Reply all
Reply to author
Forward
0 new messages