Weather Software > WeeWX Software

how do you rename the additional sensors like "Temperature2" etc

(1/1)

BaseLine:
I added WH31 to my GW2000. No problems renaming it there.
How do I go about it in weewx side? It shows up as "Temperature2" and "Humidity2" on my weewx page.

SnowHiker:
In weewx.conf (under /etc/weewx, at least on my system)

under:

            # Generic labels, keyed by an observation type.
            [[[[Generic]]]]

add or modify:

             Temperature2 = Root Cellar Temperature (or whatever you want to rename it to)
             Humidity2 = Mugginess in Swamp

Try that and see how it works, I can't remember if there are other places it needs to be changed, but that's one place at least.

BaseLine:

--- Quote from: SnowHiker on January 14, 2023, 07:11:09 PM ---In weewx.conf (under /etc/weewx, at least on my system)

under:

            # Generic labels, keyed by an observation type.
            [[[[Generic]]]]

add or modify:

             Temperature2 = Root Cellar Temperature (or whatever you want to rename it to)
             Humidity2 = Mugginess in Swamp

Try that and see how it works, I can't remember if there are other places it needs to be changed, but that's one place at least.

--- End quote ---

Made the changes, restarted weewx and waited for a while but no change.

SnowHiker:

--- Quote from: BaseLine on January 16, 2023, 06:05:49 AM ---Made the changes, restarted weewx and waited for a while but no change.

--- End quote ---

I just changed the name of one of my extra sensors, ran
--- Code: ---sudo wee_reports
--- End code ---
then refreshed the page, and the change took.

Maybe double check that the change took in the .conf file (you most likely need root privileges to edit) and that it is the only "Temperature2" and "Humidity2" listed in that section?

I couldn't find anywhere else to change it, so if it doesn't work I don't know.  Maybe your installation is a little different, I installed WeeWX five years ago and opted to keep all my configuration files the same with each upgrade.


Maybe look at this section here: http://weewx.com/docs/customizing.htm#how_to_change_labels

Edit: That above link does show it can be changed  in en.conf under the skin you're using, but says it's better to change it under weewx.conf like I think you did.


BaseLine:
here is the proper way to change the labels: 



--- Code: ---...
    extraTemp2  = new label A
    extraHumid2 = new label B

--- End code ---

restart weewx and you are done.

Navigation

[0] Message Index

Go to full version