Author Topic: How do you disable a sensor in WeeWx?  (Read 518 times)

0 Members and 1 Guest are viewing this topic.

Offline galfert

  • Forecaster
  • *****
  • Posts: 2704
How do you disable a sensor in WeeWx?
« on: June 11, 2019, 08:39:50 AM »
Say you have a bad sensor, like for example your humidity sensors goes bad. Instead of sending bad data till you are able to order and replace a bad sensor it would be beneficial to just disable the one sensor.

In WeeWx is it possible to disable just the one sensor for all services?

If possible please give example using humidity sensor.
WS-2000 & WS-2902A | Ecowitt GW1000 | WeatherBridge (Meteobridge)
WU: KFLWINTE111  |  PWSweather: KFLWINTE111
CWOP: FW3708  |  AWEKAS: 14814
Windy: pws-f075acbe
Weather Underground Issue Tracking
Tele-Pole

Offline txweather.org

  • Forecaster
  • *****
  • Posts: 1526
    • Texas Weather
Re: How do you disable a sensor in WeeWx?
« Reply #1 on: June 11, 2019, 10:04:22 AM »
galfert,

For what type of system? I think for Davis ISS this is not possible. Now if you use separate sensors that are not part of the ISS than you could disable it via the conf file or even at the console itself.

I might be wrong, Hopefully somebody with more weewx experience can chime in or you can head to their google group and ask there.
I have been using weewx for a while and I have not seen such option except for the owfs module.

Edit: If you have a VP2 you can disconnect the sensor from the system itself.

----
Davis Vantage Pro2 Plus +FARS|Meteobridge Nano SD|Meteohub|Meteobridge MR-3020|WU KTXSPRIN75/PWS JRARGWX75/CWOP EW2972/WBB TXWDVUE75/Blitzortung ID: 1142|AWEKAS: 12095
Donations are welcome: https://paypal.me/ffuentesb

Offline galfert

  • Forecaster
  • *****
  • Posts: 2704
Re: How do you disable a sensor in WeeWx?
« Reply #2 on: June 11, 2019, 10:09:25 AM »
Yes for Davis VP2.  But ideally I think it should not matter. It would be nice if there was some sort of internal setting in a config file or something.

Disabling at the console or by disconnecting sensor would not be a good option for doing this remotely (station is not local and there is nobody there). It would be better if this was something in WeeWx to control.
WS-2000 & WS-2902A | Ecowitt GW1000 | WeatherBridge (Meteobridge)
WU: KFLWINTE111  |  PWSweather: KFLWINTE111
CWOP: FW3708  |  AWEKAS: 14814
Windy: pws-f075acbe
Weather Underground Issue Tracking
Tele-Pole

Offline mwall

  • Contributor
  • ***
  • Posts: 134
Re: How do you disable a sensor in WeeWx?
« Reply #3 on: June 11, 2019, 10:21:37 AM »
In WeeWx is it possible to disable just the one sensor for all services?

one way to do this is to set the sensor value to 'None' using the calibrations.  for example, in your weewx configuration file do this:

Code: [Select]
[StdCalibrate]
    [[Corrections]]
        outHumidity = None
that will make 'outHumidity' have a value of None (which will be a NULL in the database)

m

Offline galfert

  • Forecaster
  • *****
  • Posts: 2704
Re: How do you disable a sensor in WeeWx?
« Reply #4 on: June 11, 2019, 10:44:22 AM »
Matt,
Thank you! That is perfect...just what I was looking for.
WS-2000 & WS-2902A | Ecowitt GW1000 | WeatherBridge (Meteobridge)
WU: KFLWINTE111  |  PWSweather: KFLWINTE111
CWOP: FW3708  |  AWEKAS: 14814
Windy: pws-f075acbe
Weather Underground Issue Tracking
Tele-Pole