Author Topic: Can you 'hardcode' sensor names?  (Read 863 times)

0 Members and 1 Guest are viewing this topic.

Offline bigalpha

  • Member
  • *
  • Posts: 27
Can you 'hardcode' sensor names?
« on: September 14, 2021, 04:29:27 PM »
Curious if it's possible to assign a custom name to a sensor that will then be shown automatically in the console and/or the gateway?

For example, can I name a temp sensor "Garage" and that name automatically is associated with that sensor in all places?  Or do I have to edit the name in all places it's displayed (e.g. console and gateway)?

Thanks.

Online Rover1822

  • Forecaster
  • *****
  • Posts: 2017
    • Mini Wind and Solar Data project
Re: Can you 'hardcode' sensor names?
« Reply #1 on: September 14, 2021, 05:14:36 PM »
I am going to tackle this on a technical level.

With the data received by the sites, and the enormous work they already do to store information, graph it, and show pertinent data for the type of sensor. It is not impossible, but would be very difficult. Let's say you change a name of a sensor before it is sent to a site, currently there are few mechanisms available to address it properly.

Now, If you decide one day to change a name , what happens to the stored data? .

Ambient:
  WS-2000
  PM 2.5(2)
  WH31B(2)
  WH40E
  WH31P
EcoWitt:
  GW1100
  GW1000(4)
  WH31(2)
  WH57
  WH51(12),
  WH40
  WH5360B
  WN34S
  WittBoy WS90 + GW2000
  WS90 (other one) + GW1100
Personal Sites: Weather Cam

Offline bigalpha

  • Member
  • *
  • Posts: 27
Re: Can you 'hardcode' sensor names?
« Reply #2 on: September 14, 2021, 06:40:11 PM »
Sure, but there's also a difference between the actual sensor name (soil moisture 1) and the friendly name (Citrus Trees). 

With that said, I'm clearly lacking in my knowledge of the technical operation of these devices. I was hoping that I could give a name to a sensor that then is propagated to all the display devices. Without having to rename that sensor at the console and at the gateway.

Offline Gyvate

  • Forecaster
  • *****
  • Posts: 3329
Re: Can you 'hardcode' sensor names?
« Reply #3 on: September 16, 2021, 01:38:24 PM »
The answer is yes and no - depending on where you want to display the sensors and their (changed) names.
I guess that by "hardcode" you mean that you can change the default display(ed) name(s) of sensors

Fine Offset /Ecowitt universe:
If you have an Ecowitt (or clone) console and want to change the display name and show the changed name on the console display (HP2551 console, HP350x console) or on ecowitt.net, this is possible without issues.
The manual tells where to do this.
The GW1100/1000 and WH2650 (and clone) consoles can only do this on ecowitt.net as they don't have a display on their own.
If you use the Android PWT app as a console display on an Android tablet (for a display-less console but also for the HP2551/350x consoles), you can again change many of the extra sensor names in the app.

Ambient universe:
It appears that you can also change the display names of most sensors with an Ambient console (WS-2000/WS-5000 console), but there have been issues reported here in the forum that the posting to Ambientweather.net no longer works properly if you do so. If you don't use ambientweather.net as a Fine Offset Ambient clone user, no issues known.
WS2350 1.6.7, GW1000(3) 1.7.7,WH2650 WiFi (2) 1.7.7 (test/backup), GW1100 2.3.1, GW2000(3) 3.1.1, HP2551 1.9.5,5.1.5;HP3500 1.7.2,WS3800 1.2.8, WN1910 1.2.3,WN1980 1.2.3;
Ecowitt WS90(2)1.3.5/1.4.0, WS80(2)1.2.5, WS68, WS69, WH40, WH31, WH31-EP, WN30, WN34L, WN35, WH32, WH32-EP, WH32B, WH57 [Lightning], WH41 [PM2.5], WH51, WH45, WH55
MeteobridgePro(2)[test,prod] 5.8 Mar 01 2024, 15185 - Blake-Larsen Sun Recorder - RPi4/weewx 4.8.0/4.10.2/CumulusMX 3283/Meteobridge RPi4B-2GB(3169)
Barani Meteoshield Pro, MetSpec Rad02 - Ecowitt 5763,34418;WU ISAARB3(WH4000SE),ISAARB22(HP2553), http://meshka.eu

Offline galfert

  • Global Moderator
  • Forecaster
  • *****
  • Posts: 6822
Re: Can you 'hardcode' sensor names?
« Reply #4 on: September 16, 2021, 03:37:47 PM »
... Or do I have to edit the name in all places it's displayed (e.g. console and gateway)?

Yes you have to name the sensor on the device/place that receives the sensor, or like you said everywhere the data is displayed. If you get a second display it has no knowledge of the existing display. Every device that receives a sensor's data is doing so independently. Therefore you must name the sensor at each endpoint of where the data shows.
Ecowitt GW1000 | Meteobridge on Raspberry Pi
WU: KFLWINTE111  |  PWSweather: KFLWINTE111
CWOP: FW3708  |  AWEKAS: 14814
Windy: pws-f075acbe
Weather Underground Issue Tracking
Tele-Pole

Offline bigalpha

  • Member
  • *
  • Posts: 27
Re: Can you 'hardcode' sensor names?
« Reply #5 on: September 16, 2021, 04:46:18 PM »
Thank you, this is what I was looking for.  Kinda unfortunate we cannot name the device itself to then have that name pushed to all endpoints. 

I am going to be integrating this into my Home Assistant instance, so I wanted to make sure I wasn't overlooking something that could make life a bit easier.

Quote

Therefore you must name the sensor at each endpoint of where the data shows.


Offline alanb

  • Forecaster
  • *****
  • Posts: 359
Re: Can you 'hardcode' sensor names?
« Reply #6 on: September 16, 2021, 05:31:14 PM »
Custom names on ambientweather.net web site and apps seem to be tied to your user login. Once you get the names  set, you can log in on a different browser or a different device and the custom names will show. And the app doesn't seem to let you set custom names unless you are logged in. This is true even if you have allowed your indoor sensors to be publicly visible. The app or web site won't let you enter the custom name as an anonymous (not logged in) user.
Alan - Ambient WS-2000, WH31E x5, WH31L, Ecowitt WN32(WH32E)
          Airthings Corentium Home Radon Detector 223

Online Rover1822

  • Forecaster
  • *****
  • Posts: 2017
    • Mini Wind and Solar Data project
Re: Can you 'hardcode' sensor names?
« Reply #7 on: September 16, 2021, 05:50:03 PM »
Sorry Alan, the question was if you set custom names to the sensors, to the console itself , would those names be used on remote sites, like ambientweather.net, ecowitt.net, etc.
Other words, can you set your sensor name in something like WSView or on the console directly and have that be replicated for all the sites you upload to. The purpose being, you would not have to go to each individual website and rename the sensor to what you wanted it to be.





« Last Edit: September 16, 2021, 06:00:05 PM by Rover1822 »
Ambient:
  WS-2000
  PM 2.5(2)
  WH31B(2)
  WH40E
  WH31P
EcoWitt:
  GW1100
  GW1000(4)
  WH31(2)
  WH57
  WH51(12),
  WH40
  WH5360B
  WN34S
  WittBoy WS90 + GW2000
  WS90 (other one) + GW1100
Personal Sites: Weather Cam

Offline alanb

  • Forecaster
  • *****
  • Posts: 359
Re: Can you 'hardcode' sensor names?
« Reply #8 on: September 16, 2021, 06:20:45 PM »
Sorry Alan, the question was if you set custom names to the sensors, to the console itself , would those names be used on remote sites, like ambientweather.net, ecowitt.net, etc.
Other words, can you set your sensor name in something like WSView or on the console directly and have that be replicated for all the sites you upload to. The purpose being, you would not have to go to each individual website and rename the sensor to what you wanted it to be.
Yes, I understand the intent of your original post ... sorry if my response isn't relevant to that. I was simply stating my observation of where it seems that the ambientweather.net web site and apps get their custom names from ... definitely not propagated from the console. I do find it interesting that the Alexa skill uses the custom names I put in the console when asked "Alexa, ask Ambient Weather for an indoor report".
Alan - Ambient WS-2000, WH31E x5, WH31L, Ecowitt WN32(WH32E)
          Airthings Corentium Home Radon Detector 223

Offline bigalpha

  • Member
  • *
  • Posts: 27
Re: Can you 'hardcode' sensor names?
« Reply #9 on: September 17, 2021, 12:04:12 PM »
I def appreciate all the information here!  I was hoping to reduce possible naming errors, but alas.  :D