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 <https://github.com/matthewwall/weewx-sdr> (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

On Monday, 18 May 2020 14:16:57 UTC+10, Sean Jahnig wrote:
>
> 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
>

-- 
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 on the web visit 
https://groups.google.com/d/msgid/weewx-user/32b9fe61-bac4-4979-af68-751686a58a74%40googlegroups.com.

Reply via email to