>
> /home/house/weewx-data/bin/user/sdr.py:237: SyntaxWarning: invalid escape
> sequence '\d'
>   TS = re.compile('^\d\d\d\d-\d\d-\d\d \d\d:\d\d:\d\d[\s]+')
>

There is problems with the regular expressions used.

My knowledge of regular expressions is limited so I can't give much advice
other than the usual about using the latest stable versions of libraries
and skins.


On Mon, 2 Mar 2026 at 08:45, Dan Hinckley <[email protected]> wrote:

> I am working through Vince's How-To
> <https://github.com/vinceskahan/weewx/blob/main/weewx-sdr-howto/howto.txt> and
> all goes well until I run a station reconfigure and it throws an error I do
> not understand.
>
> WeeWx 5.2 in a venv
> Ubuntu VM in Parallels
> Mac mini M1
> ===============
> RTL_433 is properly installed a runs `rtl_433 -M utc -F json -f 915M -R
> 297 -C customary` just fine:
>
> rtl_433 version 25.12-29-g0efbda9a branch master at 202602251314 inputs
> file rtl_tcp RTL-SDR with TLS
>
> New defaults active, use "-Y classic -s 250k" if you need the old defaults
>
> Use "-F log" if you want any messages, warnings, and errors in the console.
> Detached kernel driver
> Found Rafael Micro R828D tuner
> RTL-SDR Blog V4 Detected
> Exact sample rate is: 1000000.026491 Hz
> Allocating 15 zero-copy buffers
> {"time" : "2026-03-01 19:16:17", "model" : "ThermoPro-TP211B", "id" :
> 6874, "temperature_F" : 84.380, "mic" : "CHECKSUM"}
> ---------------------
> Reconfigure output:
> =================
> weectl station reconfigure --config=/home/house/weewx-data/sdr.conf
>  --driver=user.sdr
> Using configuration file /home/house/weewx-data/sdr.conf
> Processing configuration file /home/house/weewx-data/sdr.conf
>
> Give a description of the station. This will be used for the title of
> reports.
> description [Dinkins Bayou Water Temps]:
>
> Specify altitude, with units 'foot' or 'meter'.  For example:
>   35, foot
>   12, meter
> altitude [20, foot]:
>
> Specify latitude in decimal degrees, negative for south.
> latitude [26.479936]:
> Specify longitude in decimal degrees, negative for west.
> longitude [-82.174106]:
>
> Choose a unit system for the reports. Later, you can modify
> your choice, or choose a combination of units. Unit systems
> include:
>   us         (ºF, inHg, in, mph)
>   metricwx   (ºC, mbar, mm, m/s)
>   metric     (ºC, mbar, cm, km/h)
> unit system [us]:
> /home/house/weewx-data/bin/user/sdr.py:237: SyntaxWarning: invalid escape
> sequence '\d'
>   TS = re.compile('^\d\d\d\d-\d\d-\d\d \d\d:\d\d:\d\d[\s]+')
> /home/house/weewx-data/bin/user/sdr.py:335: SyntaxWarning: invalid escape
> sequence '\d'
>   TS_PATTERN = re.compile('(\d\d\d\d-\d\d-\d\d \d\d:\d\d:\d\d)')
> /home/house/weewx-data/bin/user/sdr.py:556: SyntaxWarning: invalid escape
> sequence '\d'
>   RAIN = re.compile('Total rain fall since last reset: ([\d.]+)')
> /home/house/weewx-data/bin/user/sdr.py:557: SyntaxWarning: invalid escape
> sequence '\d'
>   MSG = re.compile('Msg (\d+), (.*)')
> /home/house/weewx-data/bin/user/sdr.py:558: SyntaxWarning: invalid escape
> sequence '\d'
>   MSG31 = re.compile('Wind ([\d.]+) kmph / ([\d.]+) mph ([\d.]+).*rain
> gauge ([\d.]+) in')
> /home/house/weewx-data/bin/user/sdr.py:559: SyntaxWarning: invalid escape
> sequence '\d'
>   MSG38 = re.compile('Wind ([\d.]+) kmph / ([\d.]+) mph, ([\d.-]+) C
> ([\d.-]+) F ([\d.]+) % RH')
> /home/house/weewx-data/bin/user/sdr.py:735: SyntaxWarning: invalid escape
> sequence '\d'
>   PATTERN = re.compile('0x([0-9a-fA-F]+) Ch ([A-C]): ([\d.-]+) C ([\d.-]+)
> F ([\d]+) % RH')
> /home/house/weewx-data/bin/user/sdr.py:895: SyntaxWarning: invalid escape
> sequence '\d'
>   PATTERN = re.compile('0x([0-9a-fA-F]+) - (1R|2F): ([\d.-]+) C ([\d.-]+)
> F')
> /home/house/weewx-data/bin/user/sdr.py:947: SyntaxWarning: invalid escape
> sequence '\d'
>   PATTERN = re.compile('0x([0-9a-fA-F]+) Ch (.) Msg Type 0x([0-9a-fA-F]+):
> ([\d.-]+) ([CF]) ([\d.]+) % RH Strikes ([\d]+) Distance ([\d.]+)')
> /home/house/weewx-data/bin/user/sdr.py:1130: SyntaxWarning: invalid escape
> sequence '\d'
>   'temperature', re.compile('([\d.-]+) F'), lambda x: float(x)],
> /home/house/weewx-data/bin/user/sdr.py:1131: SyntaxWarning: invalid escape
> sequence '\d'
>   'Humidity': ['humidity', re.compile('([\d.]+) %'), lambda x: float(x)]}
> /home/house/weewx-data/bin/user/sdr.py:1442: SyntaxWarning: invalid escape
> sequence '\d'
>   'temperature', re.compile('([\d.-]+) C'), lambda x: float(x)],
> /home/house/weewx-data/bin/user/sdr.py:1443: SyntaxWarning: invalid escape
> sequence '\d'
>   'Humidity': ['humidity', re.compile('([\d.]+) %'), lambda x: float(x)]}
> /home/house/weewx-data/bin/user/sdr.py:1616: SyntaxWarning: invalid escape
> sequence '\d'
>   'temperature', re.compile('([\d.-]+) C'), lambda x: float(x)],
> /home/house/weewx-data/bin/user/sdr.py:1618: SyntaxWarning: invalid escape
> sequence '\d'
>   'humidity', re.compile('([\d.]+) %'), lambda x: float(x)],
> /home/house/weewx-data/bin/user/sdr.py:1780: SyntaxWarning: invalid escape
> sequence '\d'
>   ['temperature', re.compile('([\d.-]+) C'), lambda x: float(x)]
> /home/house/weewx-data/bin/user/sdr.py:1812: SyntaxWarning: invalid escape
> sequence '\d'
>   'Temperature': ['temperature', re.compile('([\d.-]+) C'), lambda x:
> float(x)]
> /home/house/weewx-data/bin/user/sdr.py:1919: SyntaxWarning: invalid escape
> sequence '\d'
>   ['temperature', re.compile('([\d.-]+) C'), lambda x: float(x)],
> /home/house/weewx-data/bin/user/sdr.py:1920: SyntaxWarning: invalid escape
> sequence '\d'
>   'Humidity': ['humidity', re.compile('([\d.]+) %'), lambda x: float(x)],
> /home/house/weewx-data/bin/user/sdr.py:1922: SyntaxWarning: invalid escape
> sequence '\d'
>   ['pressure', re.compile('([\d.-]+) hPa'), lambda x: float(x)]}
> /home/house/weewx-data/bin/user/sdr.py:2294: SyntaxWarning: invalid escape
> sequence '\d'
>   'temperature', re.compile('([\d.-]+) C'), lambda x: float(x)],
> /home/house/weewx-data/bin/user/sdr.py:2295: SyntaxWarning: invalid escape
> sequence '\d'
>   'Humidity': ['humidity', re.compile('([\d.]+) %'), lambda x: float(x)]}
> /home/house/weewx-data/bin/user/sdr.py:2339: SyntaxWarning: invalid escape
> sequence '\d'
>   'temperature', re.compile('([\d.-]+) C'), lambda x: float(x)],
> /home/house/weewx-data/bin/user/sdr.py:2340: SyntaxWarning: invalid escape
> sequence '\d'
>   'Wind Strength': ['wind_speed', re.compile('([\d.]+) km/h'), lambda x:
> float(x)],
> /home/house/weewx-data/bin/user/sdr.py:2341: SyntaxWarning: invalid escape
> sequence '\d'
>   'Direction': ['wind_dir', re.compile('([\d.]+) '), lambda x: float(x)]}
> /home/house/weewx-data/bin/user/sdr.py:2410: SyntaxWarning: invalid escape
> sequence '\d'
>   'Rain': ['rain_total', re.compile('([\d.]+) '), lambda x: float(x)]}
> /home/house/weewx-data/bin/user/sdr.py:2534: SyntaxWarning: invalid escape
> sequence '\d'
>   'wind_speed', re.compile('([\d.]+) m/s'), lambda x: float(x)],
> /home/house/weewx-data/bin/user/sdr.py:2537: SyntaxWarning: invalid escape
> sequence '\d'
>   'temperature', re.compile('([\d.-]+) C'), lambda x: float(x)],
> /home/house/weewx-data/bin/user/sdr.py:2540: SyntaxWarning: invalid escape
> sequence '\d'
>   'rain_total', re.compile('([\d.]+) mm'), lambda x: float(x)]}
> /home/house/weewx-data/bin/user/sdr.py:2689: SyntaxWarning: invalid escape
> sequence '\d'
>   'Temperature': ['temperature', re.compile('([\d.-]+) C'), lambda x:
> float(x)]}
> /home/house/weewx-data/bin/user/sdr.py:2759: SyntaxWarning: invalid escape
> sequence '\d'
>   ['rain_rate', re.compile('([\d.]+) in'), lambda x: float(x)],
> /home/house/weewx-data/bin/user/sdr.py:2761: SyntaxWarning: invalid escape
> sequence '\d'
>   ['rain_total', re.compile('([\d.]+) in'), lambda x: float(x)]}
> /home/house/weewx-data/bin/user/sdr.py:2792: SyntaxWarning: invalid escape
> sequence '\d'
>   'Temperature': ['temperature', re.compile('([\d.-]+) C'), lambda x:
> float(x)],
> /home/house/weewx-data/bin/user/sdr.py:2793: SyntaxWarning: invalid escape
> sequence '\d'
>   'Humidity': ['humidity', re.compile('([\d.]+) %'), lambda x: float(x)],
> /home/house/weewx-data/bin/user/sdr.py:2794: SyntaxWarning: invalid escape
> sequence '\d'
>   'Pressure': ['pressure', re.compile('([\d.]+) mbar'), lambda x:
> float(x)]}
> /home/house/weewx-data/bin/user/sdr.py:2840: SyntaxWarning: invalid escape
> sequence '\d'
>   'Temperature': ['temperature', re.compile('([\d.-]+) C'), lambda x:
> float(x)],
> /home/house/weewx-data/bin/user/sdr.py:2841: SyntaxWarning: invalid escape
> sequence '\d'
>   'Humidity': ['humidity', re.compile('([\d.]+) %'), lambda x: float(x)],
> /home/house/weewx-data/bin/user/sdr.py:2842: SyntaxWarning: invalid escape
> sequence '\d'
>   'Pressure': ['pressure', re.compile('([\d.]+) mbar'), lambda x:
> float(x)]}
> /home/house/weewx-data/bin/user/sdr.py:2890: SyntaxWarning: invalid escape
> sequence '\d'
>   'temperature', re.compile('([\d.-]+) C'), lambda x: float(x)],
> /home/house/weewx-data/bin/user/sdr.py:2891: SyntaxWarning: invalid escape
> sequence '\d'
>   'Humidity': ['humidity', re.compile('([\d.]+) %'), lambda x: float(x)]}
> /home/house/weewx-data/bin/user/sdr.py:2941: SyntaxWarning: invalid escape
> sequence '\d'
>   'temperature', re.compile('([\d.-]+) C'), lambda x: float(x)],
> /home/house/weewx-data/bin/user/sdr.py:2943: SyntaxWarning: invalid escape
> sequence '\d'
>   'temperature_F', re.compile('([\d.-]+) F'), lambda x: float(x)],
> /home/house/weewx-data/bin/user/sdr.py:2944: SyntaxWarning: invalid escape
> sequence '\d'
>   'Humidity': ['humidity', re.compile('([\d.]+) %'), lambda x: float(x)]}
> /home/house/weewx-data/bin/user/sdr.py:2982: SyntaxWarning: invalid escape
> sequence '\d'
>   ['temperature', re.compile('([\d.-]+) C'), lambda x : float(x)]}
> /home/house/weewx-data/bin/user/sdr.py:3018: SyntaxWarning: invalid escape
> sequence '\d'
>   ['temperature', re.compile('([\d.-]+) C'), lambda x : float(x)]}
> /home/house/weewx-data/bin/user/sdr.py:3053: SyntaxWarning: invalid escape
> sequence '\d'
>   ['uv_index', re.compile('([\d.-]+) C'), lambda x : float(x)]}
> /home/house/weewx-data/bin/user/sdr.py:3088: SyntaxWarning: invalid escape
> sequence '\d'
>   'UV Index': ['uv_index', re.compile('([\d.-]+) C'), lambda x: float(x)],
> /home/house/weewx-data/bin/user/sdr.py:3128: SyntaxWarning: invalid escape
> sequence '\d'
>   'wind_gust', re.compile('([\d.]+) m'), lambda x: float(x)],
> /home/house/weewx-data/bin/user/sdr.py:3130: SyntaxWarning: invalid escape
> sequence '\d'
>   'wind_speed', re.compile('([\d.]+) m'), lambda x: float(x)],
> /home/house/weewx-data/bin/user/sdr.py:3132: SyntaxWarning: invalid escape
> sequence '\d'
>   'wind_dir', re.compile('([\d.]+) degrees'), lambda x: float(x)]}
> /home/house/weewx-data/bin/user/sdr.py:3169: SyntaxWarning: invalid escape
> sequence '\d'
>   'Celcius': ['temperature', re.compile('([\d.-]+) C'), lambda x:
> float(x)]}
> /home/house/weewx-data/bin/user/sdr.py:3207: SyntaxWarning: invalid escape
> sequence '\d'
>   'Celcius': ['temperature', re.compile('([\d.-]+) C'), lambda x:
> float(x)],
> /home/house/weewx-data/bin/user/sdr.py:3208: SyntaxWarning: invalid escape
> sequence '\d'
>   'Humidity': ['humidity', re.compile('([\d.]+) %'), lambda x: float(x)],
> /home/house/weewx-data/bin/user/sdr.py:3209: SyntaxWarning: invalid escape
> sequence '\d'
>   'Pressure': ['pressure', re.compile('([\d.]+) mPa'), lambda x: float(x)]}
> /home/house/weewx-data/bin/user/sdr.py:3333: SyntaxWarning: invalid escape
> sequence '\d'
>   ['temperature', re.compile('([\d.-]+) C'), lambda x : float(x)],
> /home/house/weewx-data/bin/user/sdr.py:3335: SyntaxWarning: invalid escape
> sequence '\d'
>   ['humidity', re.compile('([\d.-]+) %'), lambda x : float(x)]}
> /home/house/weewx-data/bin/user/sdr.py:3412: SyntaxWarning: invalid escape
> sequence '\d'
>   'temperature', re.compile('([\d.-]+) C'), lambda x: float(x)],
> /home/house/weewx-data/bin/user/sdr.py:3413: SyntaxWarning: invalid escape
> sequence '\d'
>   'Humidity': ['humidity', re.compile('([\d.]+) %'), lambda x: float(x)]}
> /home/house/weewx-data/bin/user/sdr.py:3584: SyntaxWarning: invalid escape
> sequence '\d'
>   TS_PATTERN = re.compile('(\d\d\d\d-\d\d-\d\d \d\d:\d\d:\d\d)[\s]+:*(.*)')
>
> You can register the station on weewx.com, where it will be included in a
> map. If you choose to register, you will also need a unique URL to
> identify
> the station (such as a website, or a WeatherUnderground link).
> register this station (y/n)? [n]
> Saving configuration file /home/house/weewx-data/sdr.conf
> Saved old configuration file as
> /home/house/weewx-data/sdr.conf.20260301143214
>
> --
> 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].
> To view this discussion visit
> https://groups.google.com/d/msgid/weewx-user/EABED6D0-6697-491B-9F15-67677285E25B%40suiattle.org
> <https://groups.google.com/d/msgid/weewx-user/EABED6D0-6697-491B-9F15-67677285E25B%40suiattle.org?utm_medium=email&utm_source=footer>
> .
>

-- 
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].
To view this discussion visit 
https://groups.google.com/d/msgid/weewx-user/CAGTinV72L3ACb_msnzeKnyizNB0ux%3DLZpbw9O2cJuUZXsHRp2w%40mail.gmail.com.

Reply via email to