weewx has been working for months but it's suddely offline

75 views
Skip to first unread message

Sean Jahnig

unread,
May 17, 2020, 8:14:30 AM5/17/20
to weewx-user
Hi,

I have a weewx installation running on a RPi and connected to an acurite 5 in 1 using SDR. It has been working well for a long time but suddenly now it is offline and i can't figure out why. I hadn't updated the RPi for a long time so i ran apt-get update and apt-get upgrade but no difference. The RPi is online and it can successfully ping google.com so there is internet connectivity.

I have run the below which manually runs the SDR driver and i do get a response from the sensor which proves it is working. The identifier is 0A0A which is correct in the weewx.conf file.

sudo PYTHONPATH=/usr/share/weewx python /usr/share/weewx/user/sdr.py --cmd="rtl_433 -M utc -F json -G"


You can see the log here with debug set to 1. https://www.dropbox.com/s/my6xu6wraba9u7c/weewx.log?dl=0

This is the link to the station which is now offline: https://www.windguru.cz/station/2146

When i run sudo service weewx status the below is what i get. It seems like everything is working except for the part where weewx 'generates a report' / 'added a record', that doesn't seem to be happening.

weewx.service - LSB: weewx weather system

   Loaded: loaded (/etc/init.d/weewx; generated)

   Active: active (running) since Sun 2020-05-17 15:59:38 +04; 10min ago

     Docs: man:systemd-sysv-generator(8)

  Process: 1784 ExecStart=/etc/init.d/weewx start (code=exited, status=0/SUCCESS)

    Tasks: 9 (limit: 1599)

   Memory: 13.8M

   CGroup: /system.slice/weewx.service

           ├─1802 python2 /usr/share/weewx/weewxd --daemon --pidfile=/var/run/weewx.pid /etc/weewx/weewx.conf

           ├─1806 sudo rtl_433 -M utc -F json

           └─1813 rtl_433 -M utc -F json


May 17 15:59:39 raspberrypi python2[1802]: weewx[1802] INFO weewx.restx: PWSweather: Posting not enabled.

May 17 15:59:39 raspberrypi python2[1802]: weewx[1802] INFO weewx.restx: CWOP: Posting not enabled.

May 17 15:59:39 raspberrypi python2[1802]: weewx[1802] INFO weewx.restx: WOW: Posting not enabled.

May 17 15:59:39 raspberrypi python2[1802]: weewx[1802] INFO weewx.restx: AWEKAS: Posting not enabled.

May 17 15:59:39 raspberrypi weewxd[1802]: restx: WindGuru: service version is 0.1

May 17 15:59:39 raspberrypi weewxd[1802]: restx: WindGuru: Data will be uploaded for 10002

May 17 15:59:39 raspberrypi python2[1802]: weewx[1802] INFO __main__: Starting up weewx version 4.0.0

May 17 15:59:39 raspberrypi python2[1802]: weewx[1802] INFO weewx.engine: Using binding 'wx_binding' to database 'weewx.sdb'

May 17 15:59:39 raspberrypi python2[1802]: weewx[1802] INFO weewx.manager: Starting backfill of daily summaries

May 17 15:59:39 raspberrypi python2[1802]: weewx[1802] INFO weewx.engine: Starting main packet loop.


Does anyone have any suggestions?


Thanks,

Sean.

Sean Jahnig

unread,
May 17, 2020, 4:06:17 PM5/17/20
to weewx-user
After hours of fiddling, it is still not working.

When i change 'station_type' to Simulator, it starts publishing 0 to windGuru. So that element is working. https://www.windguru.cz/station/2146

As soon as i change 'station_type' back to SDR it stops publishing.

When i run sudo rtl_433 -M utc -F json from terminal, it works and i see the sensor being read. But this same code inside weewx does not seem to be performing properly because it obviously doesn't publish.

Before i go ahead and format the SD and start again, can anyone help me with the process to completely remove rtl_433 and rtl_sdr so that i can do a fresh install. Perhaps something has gone wrong with these 2 elements and they are not performing correctly.

BTW, i added  log_unknown_sensors = True and log_unmapped_sensors = True  to the [SDR] section of the weewx.conf and this is the output - https://www.dropbox.com/s/n2gwwslqcbwchlj/weewx_03.log?dl=0

Thanks,
Sean.

gjr80

unread,
May 17, 2020, 4:26:57 PM5/17/20
to weewx-user
Sean,

A few suggestions. First, don’t reformat and reinstall. From the log it is pretty clear that something is causing rtl_433 to fail when run under WeeWX. Let’s work through the sdr setup process again to make sure sdr is (still) setup correctly. You said when run from the command line thee rtl_433 works, can you do that again and post the command entered and the output to the console.

Oh, and a couple of things about log extracts, we always say don’t be afraid to post more when posting a log extract. Well there is a limit, when I have been viewing your log extract it takes five minutes of a scrolling on my iPad to get to the latest log (midway though you change from WeeWX 3.9.2 to 4.0.0 so it is almost pointless looking at the 3.9.2 entries) by that time I’ve almost lost interest. When posting a log extract can you just post a few cycles. This wiki entry (https://github.com/weewx/weewx/wiki/Help!-Posting-to-weewx-user) outlines the process to get a good log extract. And please don’t append log extracts to one another. Not complaints just trying to make remote debugging a little easier where possible, remote debugging is difficult enough as it is.

Gary

p q

unread,
May 17, 2020, 4:27:06 PM5/17/20
to weewx...@googlegroups.com
Do you get any useful error messages from the driver if you run weewx from the command line?

This smells like a data error and I don't know if reinstalling is the best path forward.

--
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+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/eeaa29fd-e02b-4057-a1d9-b07285ce9245%40googlegroups.com.


--
Peter Quinn
(415)794-2264

Sean Jahnig

unread,
May 18, 2020, 12:14:59 AM5/18/20
to weewx...@googlegroups.com
Thanks for the replies,

When i stop weewx using 'sudo service weewx stop' and then i run 'sudo rtl_433 -M utc -F json' this is what i get:

rtl_433 version 20.02-55-gc1d1f9f branch master at 202005162227 inputs file rtl_tcp RTL-SDR
Use -h for usage help and see https://triq.org/ for documentation.
Trying conf file at "rtl_433.conf"...
Trying conf file at "/root/.config/rtl_433/rtl_433.conf"...
Trying conf file at "/usr/local/etc/rtl_433/rtl_433.conf"...
Trying conf file at "/etc/rtl_433/rtl_433.conf"...
Registered 124 out of 152 device decoding protocols [ 1-4 8 11-12 15-17 19-21 23 25-26 29-36 38-60 63 67-71 73-100 102-105 108-116 119 121 124-128 130-149 151-152 ]
Found Rafael Micro R820T tuner
Exact sample rate is: 250000.000414 Hz
[R82XX] PLL not locked!
Sample rate set to 250000 S/s.
Tuner gain set to Auto.
Tuned to 433.920MHz.
{"time" : "2020-05-18 03:47:35", "model" : "Acurite-5n1", "subtype" : 49, "id" : 2570, "channel" : "A", "sequence_num" : 0, "battery_ok" : 1, "wind_avg_km_h" : 3.483, "wind_dir_deg" : 112.500, "rain_in" : 2.700, "mic" : "CHECKSUM"}
{"time" : "2020-05-18 03:47:35", "model" : "Acurite-5n1", "subtype" : 49, "id" : 2570, "channel" : "A", "sequence_num" : 1, "battery_ok" : 1, "wind_avg_km_h" : 3.483, "wind_dir_deg" : 112.500, "rain_in" : 2.700, "mic" : "CHECKSUM"}
{"time" : "2020-05-18 03:47:35", "model" : "Acurite-5n1", "subtype" : 49, "id" : 2570, "channel" : "A", "sequence_num" : 2, "battery_ok" : 1, "wind_avg_km_h" : 3.483, "wind_dir_deg" : 112.500, "rain_in" : 2.700, "mic" : "CHECKSUM"}
{"time" : "2020-05-18 03:47:53", "model" : "Acurite-5n1", "subtype" : 56, "id" : 2570, "channel" : "A", "sequence_num" : 0, "battery_ok" : 1, "wind_avg_km_h" : 3.483, "temperature_F" : 91.400, "humidity" : 40, "mic" : "CHECKSUM"}
{"time" : "2020-05-18 03:47:53", "model" : "Acurite-5n1", "subtype" : 56, "id" : 2570, "channel" : "A", "sequence_num" : 1, "battery_ok" : 1, "wind_avg_km_h" : 3.483, "temperature_F" : 91.400, "humidity" : 40, "mic" : "CHECKSUM"}
{"time" : "2020-05-18 03:47:53", "model" : "Acurite-5n1", "subtype" : 56, "id" : 2570, "channel" : "A", "sequence_num" : 2, "battery_ok" : 1, "wind_avg_km_h" : 3.483, "temperature_F" : 91.400, "humidity" : 40, "mic" : "CHECKSUM"}
(this just continues)
***

Then i ctrl-C that process and run 'sudo service weewx start' and i get:


● weewx.service - LSB: weewx weather system
   Loaded: loaded (/etc/init.d/weewx; generated)
   Active: active (running) since Mon 2020-05-18 07:56:45 +04; 7s ago
     Docs: man:systemd-sysv-generator(8)
  Process: 5891 ExecStart=/etc/init.d/weewx start (code=exited, status=0/SUCCESS)
    Tasks: 9 (limit: 1599)
   Memory: 13.5M
   CGroup: /system.slice/weewx.service
           ├─5908 python2 /usr/share/weewx/weewxd --daemon --pidfile=/var/run/weewx.pid /etc/weewx/weewx.conf
           ├─5912 sudo rtl_433 -M utc -F json
           └─5919 rtl_433 -M utc -F json

May 18 07:56:45 raspberrypi python2[5904]: weewx[5904] INFO __main__: Platform Linux-4.19.97-v7l+-armv7l-with-debian-10.4
May 18 07:56:45 raspberrypi python2[5904]: weewx[5904] INFO __main__: Locale is 'en_US.UTF-8'
May 18 07:56:45 raspberrypi python2[5904]: weewx[5904] INFO __main__: PID file is /var/run/weewx.pid
May 18 07:56:45 raspberrypi python2[5908]: weewx[5908] INFO __main__: Using configuration file /etc/weewx/weewx.conf
May 18 07:56:45 raspberrypi weewx[5891]: Starting weewx weather system: weewx.
May 18 07:56:45 raspberrypi systemd[1]: Started LSB: weewx weather system.
May 18 07:56:45 raspberrypi sudo[5912]:     root : TTY=unknown ; PWD=/ ; USER=root ; COMMAND=/usr/local/bin/rtl_433 -M utc -F
May 18 07:56:45 raspberrypi sudo[5912]: pam_unix(sudo:session): session opened for user root by (uid=0)
May 18 07:56:45 raspberrypi weewxd[5908]: restx: WindGuru: service version is 0.1
May 18 07:56:45 raspberrypi weewxd[5908]: restx: WindGuru: Data will be uploaded for 10002
(this is where it ends, even 10min later, nothing new here)
***

again i stopped weewx and i ran it directly from the command line using '/usr/share/weewx/weewxd /etc/weewx/weewx.conf'
i don't know what should happen, but when i do it, this is how the terminal window looks: https://www.dropbox.com/s/8bmfm45snnbsxut/screenshot_01.png?dl=0

You can see a much shorter log below (sorry about before). You will notice at the beginning of the log when it is publishing, that was when it was in 'Simulator' mode. Then i changed it back to 'SDR' mode.
https://www.dropbox.com/s/kjcprl1vounl7og/weewx_04.log?dl=0

Sean Jahnig

unread,
May 18, 2020, 12:16:57 AM5/18/20
to weewx-user
Thanks for the replies,

When i stop weewx using 'sudo service weewx stop' and then i run 'sudo rtl_433 -M utc -F json' this is what i get:

rtl_433 version 20.02-55-gc1d1f9f branch master at 202005162227 inputs file rtl_tcp RTL-SDR
Use -h for usage help and see https://triq.org/ for documentation.
Trying conf file at "rtl_433.conf"...
Trying conf file at "/root/.config/rtl_433/rtl_433.conf"...
Trying conf file at "/usr/local/etc/rtl_433/rtl_433.conf"...
Trying conf file at "/etc/rtl_433/rtl_433.conf"...
Registered 124 out of 152 device decoding protocols [ 1-4 8 11-12 15-17 19-21 23 25-26 29-36 38-60 63 67-71 73-100 102-105 108-116 119 121 124-128 130-149 151-152 ]
Found Rafael Micro R820T tuner
Exact sample rate is: 250000.000414 Hz
[R82XX] PLL not locked!
Sample rate set to 250000 S/s.
Tuner gain set to Auto.
Tuned to 433.920MHz.
{"time" : "2020-05-18 03:47:35", "model" : "Acurite-5n1", "subtype" : 49, "id" : 2570, "channel" : "A", "sequence_num" : 0, "battery_ok" : 1, "wind_avg_km_h" : 3.483, "wind_dir_deg" : 112.500, "rain_in" : 2.700, "mic" : "CHECKSUM"}
{"time" : "2020-05-18 03:47:35", "model" : "Acurite-5n1", "subtype" : 49, "id" : 2570, "channel" : "A", "sequence_num" : 1, "battery_ok" : 1, "wind_avg_km_h" : 3.483, "wind_dir_deg" : 112.500, "rain_in" : 2.700, "mic" : "CHECKSUM"}
{"time" : "2020-05-18 03:47:35", "model" : "Acurite-5n1", "subtype" : 49, "id" : 2570, "channel" : "A", "sequence_num" : 2, "battery_ok" : 1, "wind_avg_km_h" : 3.483, "wind_dir_deg" : 112.500, "rain_in" : 2.700, "mic" : "CHECKSUM"}
{"time" : "2020-05-18 03:47:53", "model" : "Acurite-5n1", "subtype" : 56, "id" : 2570, "channel" : "A", "sequence_num" : 0, "battery_ok" : 1, "wind_avg_km_h" : 3.483, "temperature_F" : 91.400, "humidity" : 40, "mic" : "CHECKSUM"}
{"time" : "2020-05-18 03:47:53", "model" : "Acurite-5n1", "subtype" : 56, "id" : 2570, "channel" : "A", "sequence_num" : 1, "battery_ok" : 1, "wind_avg_km_h" : 3.483, "temperature_F" : 91.400, "humidity" : 40, "mic" : "CHECKSUM"}
{"time" : "2020-05-18 03:47:53", "model" : "Acurite-5n1", "subtype" : 56, "id" : 2570, "channel" : "A", "sequence_num" : 2, "battery_ok" : 1, "wind_avg_km_h" : 3.483, "temperature_F" : 91.400, "humidity" : 40, "mic" : "CHECKSUM"}
(this just continues)
***

Then i ctrl-C that process and run 'sudo service weewx start' and i get:

● weewx.service - LSB: weewx weather system
   Loaded: loaded (/etc/init.d/weewx; generated)
   Active: active (running) since Mon 2020-05-18 07:56:45 +04; 7s ago
     Docs: man:systemd-sysv-generator(8)
  Process: 5891 ExecStart=/etc/init.d/weewx start (code=exited, status=0/SUCCESS)
    Tasks: 9 (limit: 1599)

gjr80

unread,
May 18, 2020, 12:45:38 AM5/18/20
to weewx-user
OK. So when run directly rtl_433 runs as expected. I appreciate that running WeeWX directly resulted in no output, I suspect that is due to the sdr driver (for one reason or another) not providing WeeWX with any loop packets (the only console output you will get when running WeeWX is loop packets and archive records and if WeeWX is not receiving any loop packets then you will see nothing). However, the last portion of the log you attached showed the sdr driver picking up data from your station:

weewx[6158] DEBUG __main__: Initializing engine
weewx
[6158] INFO weewx.engine: Loading station type SDR (user.sdr)
weewx
[6158] INFO user.sdr: driver version is 0.77
weewx
[6158] INFO user.sdr: sensor map is {}
weewx
[6158] INFO user.sdr: deltas is {'strikes': 'strikes_total', 'rain': 'rain_total'}
weewx
[6158] INFO user.sdr: startup process 'sudo rtl_433 -M utc -F json'
weewx
[6158] DEBUG user.sdr: start async reader for stdout-thread
weewx
[6158] DEBUG user.sdr: start async reader for stderr-thread
weewx
[6158] DEBUG weewx.engine: Loading service weewx.engine.StdTimeSynch
weewx
[6158] DEBUG weewx.engine: Finished loading service weewx.engine.StdTimeSynch
weewx
[6158] DEBUG weewx.engine: Loading service weewx.engine.StdConvert
weewx
[6158] INFO weewx.engine: StdConvert target unit is 0x1
weewx
[6158] DEBUG weewx.engine: Finished loading service weewx.engine.StdConvert
weewx
[6158] DEBUG weewx.engine: Loading service weewx.engine.StdCalibrate
weewx
[6158] DEBUG weewx.engine: Finished loading service weewx.engine.StdCalibrate
weewx
[6158] DEBUG weewx.engine: Loading service weewx.engine.StdQC
weewx
[6158] DEBUG weewx.engine: Finished loading service weewx.engine.StdQC
weewx
[6158] DEBUG weewx.engine: Loading service weewx.wxservices.StdWXCalculate
weewx
[6158] DEBUG weewx.manager: Daily summary version is 2.0
weewx
[6158] INFO weewx.wxservices: The following values will be calculated: pressure=prefer_hardware, altimeter=prefer_hardware, appTemp=prefer_hardware, barometer=prefer_hardware, beaufort=prefer_hardware, cloudbase=prefer_hardware, dewpoint=prefer_hardware, ET=prefer_hardware, heatindex=prefer_hardware, humidex=prefer_hardware, inDewpoint=prefer_hardware, maxSolarRad=prefer_hardware, rainRate=prefer_hardware, windchill=prefer_hardware, windrun=prefer_hardware
weewx
[6158] INFO weewx.wxservices: The following algorithms will be used for calculations: altimeter=aaASOS, maxSolarRad=RS
weewx
[6158] DEBUG weewx.engine: Finished loading service weewx.wxservices.StdWXCalculate
weewx
[6158] DEBUG weewx.engine: Loading service weewx.engine.StdArchive
weewx
[6158] INFO weewx.engine: Archive will use data binding wx_binding
weewx
[6158] INFO weewx.engine: Record generation will be attempted in 'hardware'
weewx
[6158] INFO weewx.engine: Using archive interval of 300 seconds (specified in weewx configuration)
weewx
[6158] DEBUG weewx.engine: Use LOOP data in hi/low calculations: 1
weewx
[6158] DEBUG weewx.engine: Finished loading service weewx.engine.StdArchive
weewx
[6158] DEBUG weewx.engine: Loading service weewx.restx.StdStationRegistry
weewx
[6158] INFO weewx.restx: StationRegistry: Station will be registered.
weewx
[6158] DEBUG weewx.engine: Finished loading service weewx.restx.StdStationRegistry
weewx
[6158] DEBUG weewx.engine: Loading service weewx.restx.StdWunderground
weewx
[6158] DEBUG weewx.restx: WU essentials: {}
weewx
[6158] INFO weewx.restx: Wunderground-PWS: Data for station IUMMAL1 will be posted
weewx
[6158] DEBUG weewx.engine: Finished loading service weewx.restx.StdWunderground
weewx
[6158] DEBUG weewx.engine: Loading service weewx.restx.StdPWSweather
weewx
[6158] INFO weewx.restx: PWSweather: Posting not enabled.
weewx
[6158] DEBUG weewx.engine: Finished loading service weewx.restx.StdPWSweather
weewx
[6158] DEBUG weewx.engine: Loading service weewx.restx.StdCWOP
weewx
[6158] INFO weewx.restx: CWOP: Posting not enabled.
weewx
[6158] DEBUG weewx.engine: Finished loading service weewx.restx.StdCWOP
weewx
[6158] DEBUG weewx.engine: Loading service weewx.restx.StdWOW
weewx
[6158] INFO weewx.restx: WOW: Posting not enabled.
weewx
[6158] DEBUG weewx.engine: Finished loading service weewx.restx.StdWOW
weewx
[6158] DEBUG weewx.engine: Loading service weewx.restx.StdAWEKAS
weewx
[6158] INFO weewx.restx: AWEKAS: Posting not enabled.
weewx
[6158] DEBUG weewx.engine: Finished loading service weewx.restx.StdAWEKAS
weewx
[6158] DEBUG weewx.engine: Loading service user.windguru.WindGuru
weewx
[6158] DEBUG weewx.engine: Finished loading service user.windguru.WindGuru
weewx
[6158] DEBUG weewx.engine: Loading service weewx.engine.StdPrint
weewx
[6158] DEBUG weewx.engine: Finished loading service weewx.engine.StdPrint
weewx
[6158] DEBUG weewx.engine: Loading service weewx.engine.StdReport
weewx
[6158] DEBUG weewx.engine: Finished loading service weewx.engine.StdReport
weewx
[6158] INFO __main__: Starting up weewx version 4.0.0
weewx
[6158] DEBUG weewx.engine: Station does not support reading the time
weewx
[6158] INFO weewx.engine: Using binding 'wx_binding' to database 'weewx.sdb'
weewx
[6158] INFO weewx.manager: Starting backfill of daily summaries
weewx
[6158] INFO weewx.engine: Starting main packet loop.
weewx
[6158] DEBUG weewx.manager: Daily summary version is 2.0
weewx
[6158] DEBUG weewx.manager: Daily summary version is 2.0
weewx
[6158] DEBUG user.sdr: lines=[]
weewx
[6158] DEBUG user.sdr: lines=[]
weewx
[6158] DEBUG user.sdr: lines=[u'{"time" : "2020-05-18 04:04:41", "model" : "Acurite-5n1", "subtype" : 56, "id" : 2570, "channel" : "A", "sequence_num" : 0, "battery_ok" : 1, "wind_avg_km_h" : 5.967, "temperature_F" : 91.600, "humidity" : 39, "mic" : "CHECKSUM"}\n', u'{"time" : "2020-05-18 04:04:41", "model" : "Acurite-5n1", "subtype" : 56, "id" : 2570, "channel" : "A", "sequence_num" : 1, "battery_ok" : 1, "wind_avg_km_h" : 5.967, "temperature_F" : 91.600, "humidity" : 39, "mic" : "CHECKSUM"}\n', u'{"time" : "2020-05-18 04:04:41", "model" : "Acurite-5n1", "subtype" : 56, "id" : 2570, "channel" : "A", "sequence_num" : 2, "battery_ok" : 1, "wind_avg_km_h" : 5.967, "temperature_F" : 91.600, "humidity" : 39, "mic" : "CHECKSUM"}\n']
weewx
[6158] DEBUG user.sdr: lines=[]
weewx
[6158] DEBUG user.sdr: lines=[]
weewx
[6158] DEBUG user.sdr: lines=[]
weewx
[6158] DEBUG user.sdr: lines=[]
weewx
[6158] DEBUG user.sdr: lines=[]
weewx
[6158] DEBUG user.sdr: lines=[u'{"time" : "2020-05-18 04:04:59", "model" : "Acurite-5n1", "subtype" : 49, "id" : 2570, "channel" : "A", "sequence_num" : 0, "battery_ok" : 1, "wind_avg_km_h" : 6.795, "wind_dir_deg" : 202.500, "rain_in" : 2.700, "mic" : "CHECKSUM"}\n', u'{"time" : "2020-05-18 04:04:59", "model" : "Acurite-5n1", "subtype" : 49, "id" : 2570, "channel" : "A", "sequence_num" : 1, "battery_ok" : 1, "wind_avg_km_h" : 6.795, "wind_dir_deg" : 202.500, "rain_in" : 2.700, "mic" : "CHECKSUM"}\n', u'{"time" : "2020-05-18 04:04:59", "model" : "Acurite-5n1", "subtype" : 49, "id" : 2570, "channel" : "A", "sequence_num" : 2, "battery_ok" : 1, "wind_avg_km_h" : 6.795, "wind_dir_deg" : 202.500, "rain_in" : 2.700, "mic" : "CHECKSUM"}\n']
weewx
[6158] DEBUG user.sdr: lines=[]
weewx
[6158] DEBUG user.sdr: lines=[]
weewx
[6158] DEBUG user.sdr: lines=[]
weewx
[6158] DEBUG user.sdr: lines=[]

Sure, no data is passed to WeeWX via loop packets but that is likely because you have no sensor map defined:

weewx[6158] INFO user.sdr: sensor map is {}

you can confirm the lack of a sensor map by looking at the [SDR] stanza in /etc/weewx/weewx.conf, is there a [[sensor_map]] stanza and if so what are its contents. I am betting there either is no [[sensor_map]] stanza or it is empty. I would follow the 'How to diagnose problems' steps in the SDR driver readme (but you can jump down to running the driver directly (as distinct from running WeeWX directly) as you have already proved rtl_433). Note that since you have a package install you wil use the following command to run the driver directly:

$ sudo PYTHONPATH=/usr/share/weewx python /usr/share/weewx/user/sdr.py

Assuming this works you should be able to determine the sensor map from this output and once put into weewx.conf things shoudl be back to normal.

Gary

Sean Jahnig

unread,
May 18, 2020, 1:25:45 AM5/18/20
to weewx-user
Hi Gary,

Thanks for that. You are indeed right. The sensor details were there in weewx.conf, but the header [[sensor_map]]was missing. I have added it in now and restarted weewx and it is working. https://www.windguru.cz/station/2146

This is a very interesting situation and now that i think back on it, i understand what went wrong. Yesterday when the station stopped working, i started fiddling and during the process the [[sensor_map]] header got removed without me knowing which then created a second problem. Meanwhile, throughout the troubleshooting process i picked up and fixed the first problem, that the unique acurite identifier has changed from: wind_speed.0A0A.Acurite5n1Packet to: wind_speed.0A0A.Acurite5n1PacketV2 so that problem got fixed but the other one that you've just solved was preventing it from going online.

BTW, this is the 2nd time in 6 months the unique acurite identifier has changed.

Thanks again for the help, very much appreciated.

Reply all
Reply to author
Forward
0 new messages