Your error is in sdr.py, nothing to do with your hardware or rtl_433. Try 
editing /usr/share/weewx/user/sdr.py, goto line 2690, it should be:

pkt = Packet.add_identifiers(pkt, sensor_id, PrologueTHPacket.name)

change it to read:

pkt = Packet.add_identifiers(pkt, sensor_id, PrologueTHPacket.__name__)

(that is a double underscore before and after name). Save the file and 
restart WeeWX.

Monitor the log and see how that goes.

Gary

On Wednesday, 6 September 2023 at 23:59:13 UTC+10 Elie R wrote:

> Have been happily churning along with no issues on 4.10.2 
>
> Using SDR to capture from an Atlas sensor array, and a BME280 for pressure.
>
> Just out of the blue, WeeWx stopped reporting a few days ago. Tried 
> rebooting and watching the log output. It starts off ok with the parsing of 
> the BME280 pressure data, but then it suddenly throws the following error 
> and exits:
>
> Sep  6 09:19:33 atlas weewx[2139] INFO weewx.engine: Main loop exiting. 
> Shutting engine down.
> Sep  6 09:19:33 atlas weewx[2139] INFO user.sdr: shutdown process 
> /usr/local/bin/rtl_433 -M utc -F json
> Sep  6 09:19:45 atlas weewx[2139] INFO user.sdr: timed out waiting for 
> stderr-thread
> Sep  6 09:19:45 atlas weewx[2139] CRITICAL __main__: Caught unrecoverable 
> exception:
> Sep  6 09:19:45 atlas weewx[2139] CRITICAL __main__:     ****  class 
> PrologueTHPacket has no attribute 'name'
> Sep  6 09:19:46 atlas weewx[2139] CRITICAL __main__:     ****  Traceback 
> (most recent call last):
> Sep  6 09:19:46 atlas weewx[2139] CRITICAL __main__:     ****    File 
> "/usr/share/weewx/weewxd", line 154, in main
> Sep  6 09:19:46 atlas weewx[2139] CRITICAL __main__:     ****     
>  engine.run()
> Sep  6 09:19:46 atlas weewx[2139] CRITICAL __main__:     ****    File 
> "/usr/share/weewx/weewx/engine.py", line 208, in run
> Sep  6 09:19:46 atlas weewx[2139] CRITICAL __main__:     ****      for 
> packet in self.console.genLoopPackets():
> Sep  6 09:19:46 atlas weewx[2139] CRITICAL __main__:     ****    File 
> "/usr/share/weewx/user/sdr.py", line 3155, in genLoopPackets
> Sep  6 09:19:46 atlas weewx[2139] CRITICAL __main__:     ****      for 
> packet in PacketFactory.create(lines):
> Sep  6 09:19:46 atlas weewx[2139] CRITICAL __main__:     ****    File 
> "/usr/share/weewx/user/sdr.py", line 3026, in create
> Sep  6 09:19:46 atlas weewx[2139] CRITICAL __main__:     ****      pkt = 
> PacketFactory.parse_json(lines)
> Sep  6 09:19:46 atlas weewx[2139] CRITICAL __main__:     ****    File 
> "/usr/share/weewx/user/sdr.py", line 3042, in parse_json
> Sep  6 09:19:46 atlas weewx[2139] CRITICAL __main__:     ****      return 
> parser.parse_json(obj)
> Sep  6 09:19:46 atlas weewx[2139] CRITICAL __main__:     ****    File 
> "/usr/share/weewx/user/sdr.py", line 2690, in parse_json
> Sep  6 09:19:46 atlas weewx[2139] CRITICAL __main__:     ****      pkt = 
> Packet.add_identifiers(pkt, sensor_id, PrologueTHPacket.name)
> Sep  6 09:19:46 atlas weewx[2139] CRITICAL __main__:     **** 
>  AttributeError: class PrologueTHPacket has no attribute 'name'
> Sep  6 09:19:46 atlas weewx[2139] CRITICAL __main__:     ****  Exiting.
>
> Any thoughts? I'm thinking my SDR dongle might have decided to give up the 
> ghost?
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/958ae432-54a9-42ae-a608-a9e4d6a46e8dn%40googlegroups.com.

Reply via email to