--
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 weewx-user+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Per, it may seem that this fix was made to drive you crazy, but there was a reason. See issue #164. Read that before passing judgment.I admit that it does cause a change in where values go in the database. If that is causing you problems, let's fix that rather than having your own private version of the driver.
this is still subject to change! in particular, i would like to make it possible to specify only the *change* to the default map instead of having to specify an entirely new sensor map if you just want to change one or two sensors.
With the implementation now in place a new sensor on channel 1 on WMR200 will be "extraTemp0" or channel 1 is left unsuable. Was that the intention?
Byte 02: (H) [1... ....] = [#80]
[.1.. ....] = [#40]
[..1. ....] = [#20]
[...1 ....] = [#10]
(L) [.... 1...] = [#08]
[.... .1..] = [#04]
[.... ..1.] = [#02] Sensor fault: Sensor 1 (temp/hum outdoor) # Correct
[.... ...1] = [#01] Sensor fault: Wind (---) # Correct
Byte 03: (H) [1... ....] = [#80]
[.1.. ....] = [#40]
[..1. ....] = [#20] Sensor fault: UV (--) # Correct
[...1 ....] = [#10] Sensor fault: Rain (---) #Correct
(L) [.... 1...] = [#08]
[.... .1..] = [#04]
[.... ..1.] = [#02]
[.... ...1] = [#01]
Byte 04: (H) [1... ....] = [#80] RF Signal Weak: Console Clock (time not synchronized) #This is true. The signal from Frankfurt is too week for my station..
[.1.. ....] = [#40] # This should mean something as it is = 1
[..1. ....] = [#20]
[...1 ....] = [#10] # This should mean something as it is = 1
(L) [.... 1...] = [#08]
[.... .1..] = [#04] # This should mean something as it is = 1
[.... ..1.] = [#02] Battery Low: Sensor 1 (temp/hum outdoor)
[.... ...1] = [#01] Battery Low: Wind ... to be confirmed)
Byte 05: (H) [1... ....] = [#80]
[.1.. ....] = [#40]
[..1. ....] = [#20] Battery Low: UV ..... (below 2.4v out of 3.0v)
[...1 ....] = [#10] Battery Low: Rain ... to be confirmed)
(L) [.... 1...] = [#08]
[.... .1..] = [#04]
[.... ..1.] = [#02]
[.... ...1] = [#01]
The changes made earlier means that there will be a mismatch beween the nameing in Weewx and the channel displayed on the sensor. extraTemp3 will not be channel 3 as picture above. That will complicate location of correct sensor. On a stock WMR200 is will not be possible to have an extra sensor och channel 1 as that one is used by the outdoor sensor (which is hard coded to channel 1). However, if the standard outdoor sensor is broken/not used then channel 1 can be used by an extra sensor.
Where these sensors are placed in available in skin.conf:
[[Generic]]
# Generic labels, keyed by an observation type.
#barometer = Lufttryck
pressure = Lufttryck
dewpoint = Daggpunkt
heatindex = Varmeindex
inHumidity = Luftfuktighet inomhus
inTemp = Inomhustemperatur
outHumidity = Luftfuktighet utomhus
outTemp = Utomhustemperatur
radiation = Radiation
rain = Regn
rainRate = Regnintensitet
rxCheckPercent = ISS Signal Quality
UV = UV-index
windSpeed = Vindhastighet
windDir = Vindriktning
windGust = Vindbyar
windGustDir = Vindbyar
windchill = Koldeffekt
windvec = Vindvektor
windgustvec = Vindbyar
# Egna sensorer
#extraTemp1 =
#extraHumid1 =
extraTemp2 = Temperatur - Kallare (5E)
extraHumid2 = Luftfuktighet - Kallare (5E)
extraTemp3 = Temperatur - Vind (5E)
extraHumid3 = Luftfuktighet - Vind (5E)
extraTemp4 = Temperatur - Vind (5F)
extraHumid4 = Luftfuktighet - Vind (5F)
extraTemp5 = Temperatur - Skyddsrum (L5)
extraHumid5 = Luftfuktighet - Skyddsrum (L5)
extraTemp6 = Temperatur - Kanal6 (L5)
extraHumid6 = Luftfuktighet - Kanal6 (L5)
Therefor I have made a different DEFAULT_MAP in driver wmr200.py and I think that this should be the new standard for WMR200. Other weather stations can have another default mapping suitable for that station.
DEFAULT_MAP = {
'altimeter': 'altimeter',
'pressure': 'pressure',
'windSpeed': 'wind_speed',
'windDir': 'wind_dir',
'windGust': 'wind_gust',
'windBatteryStatus': 'battery_status_wind',
'inTemp': 'temperature_0',
# PEED =>
'outTemp': 'temperature_1', # 'extraTemp1': 'temperature_1',
'extraTemp2': 'temperature_2', # Ch.2
'extraTemp3': 'temperature_3',
'extraTemp4': 'temperature_4',
'extraTemp5': 'temperature_5',
'extraTemp6': 'temperature_6',
'extraTemp7': 'temperature_7',
'extraTemp8': 'temperature_8',
'extraTemp9': 'temperature_9',
'extraTemp10': 'temperature_10', # Ch.10
'inHumidity': 'humidity_0',
'outHumidity': 'humidity_1', # 'extraHumid1': 'humidity_1',
'extraHumid2': 'humidity_2', # Ch.2
'extraHumid3': 'humidity_3',
'extraHumid4': 'humidity_4',
'extraHumid5': 'humidity_5',
'extraHumid6': 'humidity_6',
'extraHumid7': 'humidity_7',
'extraHumid8': 'humidity_8',
'extraHumid9': 'humidity_9',
'extraHumid10': 'humidity_10', # CH.10
'inHeatindex': 'heatindex_0',
'heatindex': 'heatindex_1',
'heatindex2': 'heatindex_2',
'heatindex3': 'heatindex_3',
'heatindex4': 'heatindex_4',
'heatindex5': 'heatindex_5',
'heatindex6': 'heatindex_6',
'heatindex7': 'heatindex_7',
'heatindex8': 'heatindex_8',
'heatindex9': 'heatindex_9',
'heatindex10': 'heatindex_10',
# => PEED
'outTempBatteryStatus': 'battery_status_out',
'rain': 'rain',
'rainTotal': 'rain_total',
'rainRate': 'rain_rate',
'hourRain': 'rain_hour',
'rain24': 'rain_24',
'rainBatteryStatus': 'battery_status_rain',
'UV': 'uv',
'uvBatteryStatus': 'battery_status_uv',
'windchill': 'windchill',
'forecastIcon': 'forecast_icon',
'outTempFault': 'out_fault',
'windFault': 'wind_fault',
'uvFault': 'uv_fault',
'rainFault': 'rain_fault',
'clockUnsynchronized': 'clock_unsynchronized'}