Hi,
I have an outdated Oregon WMR 968 weather station with an outdoor
temperature sensor that reports nonsense and cannot be corrected.
In weewx.conf I tried to replace the value of outTemp with that of
extraTemp1. That extra sensor is ordered, but not delivered an I was hoping
I would get a "0" value
[StdCalibrate]
#
# This section can adjust data using calibration expressions.
#
[[Corrections]]
# For each type, an arbitrary calibration expression can be given.
# It should be in the native units of the weather station hardware.
# For example:
# outTemp = outTemp + 9.0
# outTemp = extraTemp1
the demon will not start and reports:
Feb 23 18:16:13 raspberrypi weewx[2511]: wxengine: Starting up weewx
version 2.3.3
Feb 23 18:16:13 raspberrypi weewx[2511]: wxengine: Starting main packet
loop.
Feb 23 18:16:14 raspberrypi weewx[2511]: wxengine: Caught unrecoverable
exception in wxengine:
Feb 23 18:16:14 raspberrypi weewx[2511]: **** name 'extraTemp1' is not
defined
Feb 23 18:16:14 raspberrypi weewx[2511]: **** Traceback (most recent
call last):
Feb 23 18:16:14 raspberrypi weewx[2511]: **** File
"/usr/share/weewx/weewx/wxengine.py", line 867, in main
Feb 23 18:16:14 raspberrypi weewx[2511]: **** engine.run()
Feb 23 18:16:14 raspberrypi weewx[2511]: **** File
"/usr/share/weewx/weewx/wxengine.py", line 163, in run
Feb 23 18:16:14 raspberrypi weewx[2511]: ****
self.dispatchEvent(weewx.Event(weewx.NEW_LOOP_PACKET, packet=packet))
Feb 23 18:16:14 raspberrypi weewx[2511]: **** File
"/usr/share/weewx/weewx/wxengine.py", line 192, in dispatchEvent
Feb 23 18:16:14 raspberrypi weewx[2511]: **** callback(event)
Feb 23 18:16:14 raspberrypi weewx[2511]: **** File
"/usr/share/weewx/weewx/wxengine.py", line 337, in new_loop_packet
Feb 23 18:16:14 raspberrypi weewx[2511]: ****
event.packet[obs_type] = eval(self.corrections[obs_type], None,
event.packet)
Feb 23 18:16:14 raspberrypi weewx[2511]: **** File "StdCalibrate",
line 1, in <module>
Feb 23 18:16:14 raspberrypi weewx[2511]: **** NameError: name
'extraTemp1' is not defined
Feb 23 18:16:14 raspberrypi weewx[2511]: **** Exiting.
any idea how I can replace the outTemp value with the value of the extra
sensor?
Do I need to connect the sensor firs or do I need to edit a different whew
file where sensor setups are don?
Appreciate any help :)
--
You received this message because you are subscribed to the Google Groups
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.