Author Topic: how do you rename the additional sensors like "Temperature2" etc  (Read 1285 times)

0 Members and 1 Guest are viewing this topic.

Offline BaseLine

  • Senior Contributor
  • ****
  • Posts: 184
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.

Sun cooked nothingburger of climate change hysteria with a side order of peak-oil nonsense fries.

Offline SnowHiker

  • Forecaster
  • *****
  • Posts: 352
Re: how do you rename the additional sensors like "Temperature2" etc
« Reply #1 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.

Offline BaseLine

  • Senior Contributor
  • ****
  • Posts: 184
Re: how do you rename the additional sensors like "Temperature2" etc
« Reply #2 on: January 16, 2023, 06:05:49 AM »
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.

Made the changes, restarted weewx and waited for a while but no change.
Sun cooked nothingburger of climate change hysteria with a side order of peak-oil nonsense fries.

Offline SnowHiker

  • Forecaster
  • *****
  • Posts: 352
Re: how do you rename the additional sensors like "Temperature2" etc
« Reply #3 on: January 16, 2023, 11:22:08 AM »
Made the changes, restarted weewx and waited for a while but no change.

I just changed the name of one of my extra sensors, ran
Code: [Select]
sudo wee_reports 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.


« Last Edit: January 16, 2023, 02:45:45 PM by SnowHiker »

Offline BaseLine

  • Senior Contributor
  • ****
  • Posts: 184
Re: how do you rename the additional sensors like "Temperature2" etc
« Reply #4 on: January 17, 2023, 06:38:21 AM »
here is the proper way to change the labels: 


Code: [Select]
...
    extraTemp2  = new label A
    extraHumid2 = new label B

restart weewx and you are done.
Sun cooked nothingburger of climate change hysteria with a side order of peak-oil nonsense fries.