WXforum.net

Weather Software => WeeWX Software => Topic started by: galfert on June 11, 2019, 08:39:50 AM

Title: How do you disable a sensor in WeeWx?
Post by: galfert 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.
Title: Re: How do you disable a sensor in WeeWx?
Post by: txweather.org 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.
Title: Re: How do you disable a sensor in WeeWx?
Post by: galfert 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.
Title: Re: How do you disable a sensor in WeeWx?
Post by: mwall 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
Title: Re: How do you disable a sensor in WeeWx?
Post by: galfert on June 11, 2019, 10:44:22 AM
Matt,
Thank you! That is perfect...just what I was looking for.
Title: Re: How do you disable a sensor in WeeWx?
Post by: konz on September 15, 2019, 08:14:03 PM
Did it work?

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
Title: Re: How do you disable a sensor in WeeWx?
Post by: galfert on September 15, 2019, 10:28:47 PM
I inquired how to disable a sensor in WeeWx because I was helping a neighbor with their station running WeeWx. They were out of town for a few months and their VP2 humidity went out. There was no remote access to the WeeWx system. When they got back and after they replaced their sensor, I helped them implemented a remote access solution and then informed them how to disable a defective sensor. So this time around it wasn't used, but they are now ready should the need come up, and I've become more savvy. We didn't test the disabling but I have no reason to doubt that it would work.

This is an important solution that all weather station owners should consider for the following reasons:
- Nobody wants bad data in their database and online weather uploads as it corrupts historically reporting.
- Anyone that uploads to CWOP and AWEKAS should realize that they affect neighbor stations with analysis data, and shutting down a bad sensor or complete station is the polite thing to do.
- Live weather data is also used for many important things that may be using your station.
Title: Re: How do you disable a sensor in WeeWx?
Post by: konz on September 15, 2019, 10:30:59 PM
Good to know.  Thank you for sharing.

I inquired how to disable a sensor in WeeWx because I was helping a neighbor with their station running WeeWx. They were out of town for a few months and their VP2 humidity went out. There was no remote access to the WeeWx system. When they got back and after they replaced their sensor, I helped them implemented a remote access solution and then informed them how to disable a defective sensor. So this time around it wasn't used, but they are now ready should the need come up, and I've become more savvy. We didn't test the disabling but I have no reason to doubt that it would work.

This is an important solution that all weather station owners should consider for the following reasons:
- Nobody wants bad data in their database and online weather uploads as it corrupts historically reporting.
- Anyone that uploads to CWOP and AWEKAS should realize that they affect neighbor stations with analysis data, and shutting down a bad sensor or complete station is the polite thing to do.
- Live weather data is also used for many important things that may be using your station.