Welcome to the Cumulus Support forum.

Latest Cumulus MX V4 release 4.4.2 (build 4085) - 12 March 2025

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

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

If you are posting a new Topic about an error or if you need help PLEASE read this first viewtopic.php?p=164080#p164080

Extra sensor renaming

From build 3044 the development baton passed to Mark Crossley. Mark has been responsible for all the Builds since. He has made the code available on GitHub. It is Mark's hope that others will join in this development, but at the very least he welcomes your ideas for future developments (see Cumulus MX Development suggestions).

Moderator: mcrossley

Post Reply
Grahame Rob
Posts: 22
Joined: Sun 02 Dec 2012 8:52 pm
Weather Station: Ecowitt
Operating System: raspberry Pi4
Location: Wallsend

Extra sensor renaming

Post by Grahame Rob »

After years away from from this site after my old weather station died I have returned after buying a Ecowitt GW1000 and a few sensors. I have just installed Cumulus MX onto a Raspberry Pi4 and I love the difference between it and the Cumulus 1 I was running in 2011. I am wondering if its possible to rename the extra sensors so they show the name of the room they are in instead of Sensor1, Sensor2 etc as I have 4 extra sensors and its a bit confusing working out/remembering which is which without looking at the WS View app. if it is possible to change the names could someone please point me in the right direction on how its done.
User avatar
mcrossley
Posts: 14388
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Extra sensor renaming

Post by mcrossley »

What you need is "strings.ini". There is a samplestrings.ini in the root CumulusMX folder. Copy that to strings.ini, edit the fields you want (if you like, you can delete the entries you do not need - just for clarity). Then restart Cumulus MX.
Grahame Rob
Posts: 22
Joined: Sun 02 Dec 2012 8:52 pm
Weather Station: Ecowitt
Operating System: raspberry Pi4
Location: Wallsend

Re: Extra sensor renaming

Post by Grahame Rob »

Great and thanks for the reply, is there a wiki on how to do this? I'm not very experienced with the Raspberry Pi, this is my first one and I took the easy route and installed CMX using the pre-built image,
User avatar
mcrossley
Posts: 14388
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Extra sensor renaming

Post by mcrossley »

I don't think there is anything in the Wiki about doing this specifically.

But if you install WinSCP or Filezilla on your windows machine, you should be able to connect it up to your raspberry pi and copy the samplestrings.ini file to your local windows. Rename it there, edit the file, then use WinSCP/Filezilla to copy the renamed file back to your rPi.
sfws
Posts: 1183
Joined: Fri 27 Jul 2012 11:29 am
Weather Station: Chas O, Maplin N96FY, N25FR
Operating System: rPi 3B+ with Buster (full)

Re: Extra sensor renaming

Post by sfws »

mcrossley wrote: Thu 05 Aug 2021 9:35 pm What you need is "strings.ini". There is a samplestrings.ini in the root CumulusMX folder. Copy that to strings.ini, edit the fields you want (if you like, you can delete the entries you do not need - just for clarity). Then restart Cumulus MX.
The Wiki has had https://cumuluswiki.org/a/Strings.ini to explain this concept ever since November 2009, indeed some updates of that page were contributed by you, Mark.
This renaming/configuration is also discussed on MX on Linux page, at Extra Sensor customisation, and on a few other Wiki pages, so where ever anyone starts, this concept is well documented.

A new page https://cumuluswiki.org/a/Samplestring.ini was added last January to offer yet another entry point, after a request last year to document every folder/file included in MX release distributions.
Grahame Rob wrote: Fri 06 Aug 2021 8:44 pm Great and thanks for the reply, is there a wiki on how to do this? I'm not very experienced with the Raspberry Pi, this is my first one
If you are unsure about editing your Raspberry Pi files remotely, have a read of Upgrading on a Raspberry Pi computer by commands from a Microsoft Windows computer. It refers to using a Microsoft Windows PC with remote terminal sessions or file transfers, giving access to the Raspberry Pi files.

Of course, if you want to write up into the Wiki, some new text, reporting what you discover, in an easier way, to help others in future, see Freddie's message in the pink area. Put it on a new page if you are unsure where is best existing page,(or ask Ken True, the person who hosts the Wiki via saratogaWX for advice).

Did you read Mark's https://cumuluswiki.org/a/Raspberry_Pi_Image page?
When you feel up to reading more about RPi, try https://cumuluswiki.org/a/Raspberry_Pi_computer_page and other parts of the MX on Linux and Upgrading pages mentioned above. Obviously, take it slowly, reading only parts of these pages selected from table of contents!
mcrossley wrote: Fri 06 Aug 2021 10:01 pm I don't think there is anything in the Wiki about doing this specifically.
As linked above, there is now.

Of course, Wiki can be improved further, and that is why there is always an appeal for more Wiki contributors to help. It is hard work to:
1) expand Wiki coverage, (The Wiki is lacking information about Davis, and Ecowitt, hardware, and other items mentioned in https://cumuluswiki.org/a/How_you_can_contribute)
2) keep existing Wiki information up to date as MX transforms/develops so quickly ( MX has drastically altered in last 2 years)
3) rewrite pages so that the new style of simple information for novices (people used to use Cumulus 1 help for that) is put first on pages, before the more technical information (people used to depend on Wiki for that with Cumulus 1).
4) various formerly long pages have had some content moved elsewhere, so information is arranged more logically, and more of that is needed.
Grahame Rob
Posts: 22
Joined: Sun 02 Dec 2012 8:52 pm
Weather Station: Ecowitt
Operating System: raspberry Pi4
Location: Wallsend

Re: Extra sensor renaming

Post by Grahame Rob »

mcrossley wrote: Fri 06 Aug 2021 10:01 pm I don't think there is anything in the Wiki about doing this specifically.

But if you install WinSCP or Filezilla on your windows machine, you should be able to connect it up to your raspberry pi and copy the samplestrings.ini file to your local windows. Rename it there, edit the file, then use WinSCP/Filezilla to copy the renamed file back to your rPi.
Thanks mark for the instructions, I have downloaded Filezilla and connected to my Rpi but when I try and open the root folder it brings up the message
Error: Directory /root: permission denied
Error: Failed to retrieve directory listing

I take it is the root folder samplestrings.ini is in?
freddie
Posts: 2870
Joined: Wed 08 Jun 2011 11:19 am
Weather Station: Davis Vantage Pro 2 + Ecowitt
Operating System: GNU/Linux Ubuntu 24.04 LXC
Location: Alcaston, Shropshire, UK
Contact:

Re: Extra sensor renaming

Post by freddie »

Grahame Rob wrote: Sat 07 Aug 2021 6:23 pm I take it is the root folder samplestrings.ini is in?
Not quite. You are looking in the root users home folder on your pi. What Mark said was that it is in the root folder of your MX installation. Therefore, if MX is in the usual installation location on the pi (/home/pi/CumulusMX) then it is here that you need to look. If you've installed it elsewhere then you will need to look in that location.
Freddie
Image
sfws
Posts: 1183
Joined: Fri 27 Jul 2012 11:29 am
Weather Station: Chas O, Maplin N96FY, N25FR
Operating System: rPi 3B+ with Buster (full)

Re: Extra sensor renaming

Post by sfws »

Freddie, Grahame

The relevant folder for samplestring.ini in the pre-built image is /opt/Cumulus MX.
Grahame Rob
Posts: 22
Joined: Sun 02 Dec 2012 8:52 pm
Weather Station: Ecowitt
Operating System: raspberry Pi4
Location: Wallsend

Re: Extra sensor renaming

Post by Grahame Rob »

All done! Thank you everyone for your help its greatly appreciated.
Post Reply