Welcome to the Cumulus Support forum.

Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024

Cumulus MX V4 beta test release 4.0.0 (build 4018) - 28 March 2024

Legacy Cumulus 1 release v1.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

Units for pop-up graphs

Discussion of Mark Crossley's HTML5/Javascript gauges

Moderator: mcrossley

Post Reply
jmfernandezz
Posts: 6
Joined: Thu 22 Dec 2016 6:29 am
Weather Station: PCE FWS-20
Operating System: Linux
Contact:

Units for pop-up graphs

Post by jmfernandezz »

Hello,
I am new with this skin and I have some problems to configure. I have installed in a Raspi with Weewx software.
I would like to configure the units for pop-up graphs in metrics. Actually, the gauges shows data in C, mbar, mm, etc... but the pop-up shows the graphs in F, inHg, etc...
How can I change these units?
Thank you and best regrads,
User avatar
mcrossley
Posts: 12694
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Units for pop-up graphs

Post by mcrossley »

The gauges code does not create the graphs - they must be coming from weewx?
jmfernandezz
Posts: 6
Joined: Thu 22 Dec 2016 6:29 am
Weather Station: PCE FWS-20
Operating System: Linux
Contact:

Re: Units for pop-up graphs

Post by jmfernandezz »

This is confusing for me.
I have configured Weewx with SU units (weewx.conf------target_unit = US).
Then, the Standard skin (skin.conf) is configured in order to write in metric units (I suppose skin.conf does the unit conversion):

[Units]
# This section is for managing the selection and formatting of units.

[[Groups]]
# For each group of measurements, this section sets what units to
# use for it.
# NB: The unit is always in the singular. I.e., 'mile_per_hour',
# NOT 'miles_per_hour'

group_altitude = meter # Options are 'foot' or 'meter'
group_degree_day = degree_C_day # Options are 'degree_F_day' or 'degree_C_day'
group_direction = degree_compass
group_moisture = centibar
group_percent = percent
................


I thought it would be similar in the skin of Steelseries. But skin.conf of Steelseries does not have a specific section for units

In another hand, Weewx generates two graphs for each parameter, one according Standard Skin and another for Steel skin. For example, I have to graphs for barometer:
- For Standard skin in "hPa" (according to skin.conf of Standard skin).
- For Steelseries skin in "inHg".

I am not sure what's wrong.
Any suggestion?

Thank you and best regards
User avatar
mcrossley
Posts: 12694
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Units for pop-up graphs

Post by mcrossley »

No sorry, I think you'd be better asking on the weewx forum
jmfernandezz
Posts: 6
Joined: Thu 22 Dec 2016 6:29 am
Weather Station: PCE FWS-20
Operating System: Linux
Contact:

Re: Units for pop-up graphs

Post by jmfernandezz »

Finally I have resolved the problem. I have included in the skin.conf of Steel the same section for units of the skin of Stabdard:
[Units]
# This section is for managing the selection and formatting of units.

[[Groups]]
# For each group of measurements, this section sets what units to
# use for it.
# NB: The unit is always in the singular. I.e., 'mile_per_hour',
# NOT 'miles_per_hour'

group_altitude = meter # Options are 'foot' or 'meter'
group_degree_day = degree_C_day # Options are 'degree_F_day' or 'degree_C_day'
group_direction = degree_compass
group_moisture = centibar
group_percent = percent
................

Thanks,
Post Reply