Re: [weewx-user] CRITICAL __main__: Caught WeeWxIOError: rtl_433 process is not running

2024-03-01 Thread Charlie T

Ok I will follow up on that. 
-CT

On Sunday, February 25, 2024 at 10:32:05 AM UTC-6 Pierre-Yves wrote:

> Hello Charlie,
>
> Don't you have in weewx.conf ,[sdr] section, a "sudo" at the beginning of 
> your rtl_433 command line ? If yes, try to remove it.
>
> That fixed the problem in my case
>
> Pierre-Yves
>
> Le dimanche 25 février 2024 à 16:20:30 UTC+1, Tom Keffer a écrit :
>
>> I'm not seeing the log. Just the status output from systemctl.
>>
>> There are many threads about this error in weewx-user. Here's one 
>> . 
>> Try the suggestions in that thread.
>>
>>
>>
>> On Sun, Feb 25, 2024 at 6:27 AM Charlie T  wrote:
>>
>>> *Here's the log...what am I doing wrong?*
>>>
>>> ● weewx.service - WeeWX
>>>  Loaded: loaded (/lib/systemd/system/weewx.service; enabled; vendor 
>>> preset: enabled)
>>>  Active: active (running) since Sun 2024-02-25 07:21:25 CST; 54min 
>>> ago
>>>Docs: https://weewx.com/docs
>>>Main PID: 505 (python3)
>>>   Tasks: 1 (limit: 1595)
>>> CPU: 3min 44.239s
>>>  CGroup: /system.slice/weewx.service
>>>  └─505 python3 /usr/share/weewx/weewxd.py 
>>> /etc/weewx/weewx.conf
>>>
>>> Feb 25 08:15:07 raspberrypi weewxd[505]: for line in 
>>> iter(self._fd.readline, ''):
>>> Feb 25 08:15:07 raspberrypi weewxd[505]: ValueError: 
>>> PyMemoryView_FromBuffer(): info->buf must not be NULL
>>> Feb 25 08:15:07 raspberrypi weewxd[505]:   File 
>>> "/usr/lib/python3.9/threading.py", line 954, in _bootstrap_inner
>>> Feb 25 08:15:07 raspberrypi weewxd[505]: self.run()
>>> Feb 25 08:15:07 raspberrypi weewxd[505]:   File 
>>> "/etc/weewx/bin/user/sdr.py", line 198, in run
>>> Feb 25 08:15:07 raspberrypi weewxd[505]: for line in 
>>> iter(self._fd.readline, ''):
>>> Feb 25 08:15:07 raspberrypi weewxd[505]: ValueError: 
>>> PyMemoryView_FromBuffer(): info->buf must not be NULL
>>> Feb 25 08:15:07 raspberrypi weewxd[505]: INFO user.sdr: shutdown complete
>>> Feb 25 08:15:07 raspberrypi weewxd[505]: CRITICAL __main__: Caught 
>>> WeeWxIOError: rtl_433 process is not running
>>> Feb 25 08:15:07 raspberrypi weewxd[505]: CRITICAL __main__:  
>>>  Waiting 60.0 seconds then retrying...
>>>
>>> -- 
>>> 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/435fd56e-0a1b-4c3d-a333-1eb108ef0432n%40googlegroups.com
>>>  
>>> 
>>> .
>>>
>>

-- 
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/713abb3e-9ead-4001-a3f8-5dee02f25340n%40googlegroups.com.


Re: [weewx-user] CRITICAL __main__: Caught WeeWxIOError: rtl_433 process is not running

2024-02-25 Thread Tom Keffer
Yes, you have a permissions problem. Try the suggestions in the thread I
linked to earlier.

Also, take a look at the wiki article Understanding permissions
, in
particular the section *Example: add the weewx user to group in a udev rule
*
.

On Sun, Feb 25, 2024 at 9:55 AM Charlie T  wrote:

> *Here is the log file:*
>
> eb 25 11:39:09 raspberrypi weewxd[3688]: INFO weewx.engine: Starting main
> packet loop.
> Feb 25 11:39:12 raspberrypi weewxd[3688]: ERROR user.sdr: rtl_433 version
> unknown inputs file rtl_tcp RTL-SDR SoapySDR
> Feb 25 11:39:12 raspberrypi weewxd[3688]: ERROR user.sdr: Use -h for usage
> help and see https://triq.org/ for documentation.
> Feb 25 11:39:12 raspberrypi weewxd[3688]: ERROR user.sdr: Trying conf file
> at "rtl_433.conf"...
> Feb 25 11:39:12 raspberrypi weewxd[3688]: ERROR user.sdr: Trying conf file
> at "/var/lib/weewx/.config/rtl_433/rtl_433.conf"...
> Feb 25 11:39:12 raspberrypi weewxd[3688]: ERROR user.sdr: Trying conf file
> at "/usr/local/etc/rtl_433/rtl_433.conf"...
> Feb 25 11:39:12 raspberrypi weewxd[3688]: ERROR user.sdr: Trying conf file
> at "/etc/rtl_433/rtl_433.conf"...
> Feb 25 11:39:12 raspberrypi weewxd[3688]: ERROR user.sdr: Registered 145
> out of 175 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-161
> 163-168 170-175 ]
> Feb 25 11:39:12 raspberrypi weewxd[3688]: ERROR user.sdr: usb_open error -3
> Feb 25 11:39:12 raspberrypi weewxd[3688]: ERROR user.sdr: Please fix the
> device permissions, e.g. by installing the udev rules file rtl-sdr.rules
> Feb 25 11:39:12 raspberrypi weewxd[3688]: INFO weewx.engine: Main loop
> exiting. Shutting engine down.
> Feb 25 11:39:12 raspberrypi weewxd[3688]: INFO user.sdr: shutdown process
> rtl_433 -M utc -F json
> Feb 25 11:39:12 raspberrypi weewxd[3688]: Exception in thread
> stdout-thread:
> Feb 25 11:39:12 raspberrypi weewxd[3688]: Exception in thread
> stderr-thread:
> Feb 25 11:39:12 raspberrypi weewxd[3688]: Traceback (most recent call
> last):
> Feb 25 11:39:12 raspberrypi weewxd[3688]: Traceback (most recent call
> last):
> Feb 25 11:39:12 raspberrypi weewxd[3688]:   File
> "/usr/lib/python3.9/threading.py", line 954, in _bootstrap_inner
> Feb 25 11:39:12 raspberrypi weewxd[3688]:   File
> "/usr/lib/python3.9/threading.py", line 954, in _bootstrap_inner
> Feb 25 11:39:12 raspberrypi weewxd[3688]: self.run()
> Feb 25 11:39:12 raspberrypi weewxd[3688]:   File
> "/etc/weewx/bin/user/sdr.py", line 198, in run
> Feb 25 11:39:12 raspberrypi weewxd[3688]: self.run()
> Feb 25 11:39:12 raspberrypi weewxd[3688]:   File
> "/etc/weewx/bin/user/sdr.py", line 198, in run
> Feb 25 11:39:12 raspberrypi weewxd[3688]: for line in
> iter(self._fd.readline, ''):
> Feb 25 11:39:12 raspberrypi weewxd[3688]: for line in
> iter(self._fd.readline, ''):
> Feb 25 11:39:12 raspberrypi weewxd[3688]: ValueError:
> PyMemoryView_FromBuffer(): info->buf must not be NULL
> Feb 25 11:39:12 raspberrypi weewxd[3688]: ValueError:
> PyMemoryView_FromBuffer(): info->buf must not be NULL
> Feb 25 11:39:12 raspberrypi weewxd[3688]: INFO user.sdr: shutdown complete
> Feb 25 11:39:12 raspberrypi weewxd[3688]: CRITICAL __main__: Caught
> WeeWxIOError: rtl_433 process is not running
> Feb 25 11:39:12 raspberrypi weewxd[3688]: CRITICAL __main__: 
>  Waiting 60.0 seconds then retrying...
>
>
> On Sunday, February 25, 2024 at 9:20:30 AM UTC-6 Tom Keffer wrote:
>
>> I'm not seeing the log. Just the status output from systemctl.
>>
>> There are many threads about this error in weewx-user. Here's one
>> .
>> Try the suggestions in that thread.
>>
>>
>>
>> On Sun, Feb 25, 2024 at 6:27 AM Charlie T  wrote:
>>
>>> *Here's the log...what am I doing wrong?*
>>>
>>> ● weewx.service - WeeWX
>>>  Loaded: loaded (/lib/systemd/system/weewx.service; enabled; vendor
>>> preset: enabled)
>>>  Active: active (running) since Sun 2024-02-25 07:21:25 CST; 54min
>>> ago
>>>Docs: https://weewx.com/docs
>>>Main PID: 505 (python3)
>>>   Tasks: 1 (limit: 1595)
>>> CPU: 3min 44.239s
>>>  CGroup: /system.slice/weewx.service
>>>  └─505 python3 /usr/share/weewx/weewxd.py
>>> /etc/weewx/weewx.conf
>>>
>>> Feb 25 08:15:07 raspberrypi weewxd[505]: for line in
>>> iter(self._fd.readline, ''):
>>> Feb 25 08:15:07 raspberrypi weewxd[505]: ValueError:
>>> PyMemoryView_FromBuffer(): info->buf must not be NULL
>>> Feb 25 08:15:07 raspberrypi weewxd[505]:   File
>>> "/usr/lib/python3.9/threading.py", line 954, in _bootstrap_inner
>>> Feb 25 08:15:07 raspberrypi weewxd[505]: self.run()
>>> Feb 25 08:15:07 raspberrypi weewxd[505]:   File
>>> "/etc/weewx/bin/user/sdr.py", line 198, in run
>>> Feb 

Re: [weewx-user] CRITICAL __main__: Caught WeeWxIOError: rtl_433 process is not running

2024-02-25 Thread Charlie T
*Here is the log file:*

eb 25 11:39:09 raspberrypi weewxd[3688]: INFO weewx.engine: Starting main 
packet loop.
Feb 25 11:39:12 raspberrypi weewxd[3688]: ERROR user.sdr: rtl_433 version 
unknown inputs file rtl_tcp RTL-SDR SoapySDR
Feb 25 11:39:12 raspberrypi weewxd[3688]: ERROR user.sdr: Use -h for usage 
help and see https://triq.org/ for documentation.
Feb 25 11:39:12 raspberrypi weewxd[3688]: ERROR user.sdr: Trying conf file 
at "rtl_433.conf"...
Feb 25 11:39:12 raspberrypi weewxd[3688]: ERROR user.sdr: Trying conf file 
at "/var/lib/weewx/.config/rtl_433/rtl_433.conf"...
Feb 25 11:39:12 raspberrypi weewxd[3688]: ERROR user.sdr: Trying conf file 
at "/usr/local/etc/rtl_433/rtl_433.conf"...
Feb 25 11:39:12 raspberrypi weewxd[3688]: ERROR user.sdr: Trying conf file 
at "/etc/rtl_433/rtl_433.conf"...
Feb 25 11:39:12 raspberrypi weewxd[3688]: ERROR user.sdr: Registered 145 
out of 175 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-161 
163-168 170-175 ]
Feb 25 11:39:12 raspberrypi weewxd[3688]: ERROR user.sdr: usb_open error -3
Feb 25 11:39:12 raspberrypi weewxd[3688]: ERROR user.sdr: Please fix the 
device permissions, e.g. by installing the udev rules file rtl-sdr.rules
Feb 25 11:39:12 raspberrypi weewxd[3688]: INFO weewx.engine: Main loop 
exiting. Shutting engine down.
Feb 25 11:39:12 raspberrypi weewxd[3688]: INFO user.sdr: shutdown process 
rtl_433 -M utc -F json
Feb 25 11:39:12 raspberrypi weewxd[3688]: Exception in thread stdout-thread:
Feb 25 11:39:12 raspberrypi weewxd[3688]: Exception in thread stderr-thread:
Feb 25 11:39:12 raspberrypi weewxd[3688]: Traceback (most recent call last):
Feb 25 11:39:12 raspberrypi weewxd[3688]: Traceback (most recent call last):
Feb 25 11:39:12 raspberrypi weewxd[3688]:   File 
"/usr/lib/python3.9/threading.py", line 954, in _bootstrap_inner
Feb 25 11:39:12 raspberrypi weewxd[3688]:   File 
"/usr/lib/python3.9/threading.py", line 954, in _bootstrap_inner
Feb 25 11:39:12 raspberrypi weewxd[3688]: self.run()
Feb 25 11:39:12 raspberrypi weewxd[3688]:   File 
"/etc/weewx/bin/user/sdr.py", line 198, in run
Feb 25 11:39:12 raspberrypi weewxd[3688]: self.run()
Feb 25 11:39:12 raspberrypi weewxd[3688]:   File 
"/etc/weewx/bin/user/sdr.py", line 198, in run
Feb 25 11:39:12 raspberrypi weewxd[3688]: for line in 
iter(self._fd.readline, ''):
Feb 25 11:39:12 raspberrypi weewxd[3688]: for line in 
iter(self._fd.readline, ''):
Feb 25 11:39:12 raspberrypi weewxd[3688]: ValueError: 
PyMemoryView_FromBuffer(): info->buf must not be NULL
Feb 25 11:39:12 raspberrypi weewxd[3688]: ValueError: 
PyMemoryView_FromBuffer(): info->buf must not be NULL
Feb 25 11:39:12 raspberrypi weewxd[3688]: INFO user.sdr: shutdown complete
Feb 25 11:39:12 raspberrypi weewxd[3688]: CRITICAL __main__: Caught 
WeeWxIOError: rtl_433 process is not running
Feb 25 11:39:12 raspberrypi weewxd[3688]: CRITICAL __main__:  
 Waiting 60.0 seconds then retrying...


On Sunday, February 25, 2024 at 9:20:30 AM UTC-6 Tom Keffer wrote:

> I'm not seeing the log. Just the status output from systemctl.
>
> There are many threads about this error in weewx-user. Here's one 
> . 
> Try the suggestions in that thread.
>
>
>
> On Sun, Feb 25, 2024 at 6:27 AM Charlie T  wrote:
>
>> *Here's the log...what am I doing wrong?*
>>
>> ● weewx.service - WeeWX
>>  Loaded: loaded (/lib/systemd/system/weewx.service; enabled; vendor 
>> preset: enabled)
>>  Active: active (running) since Sun 2024-02-25 07:21:25 CST; 54min ago
>>Docs: https://weewx.com/docs
>>Main PID: 505 (python3)
>>   Tasks: 1 (limit: 1595)
>> CPU: 3min 44.239s
>>  CGroup: /system.slice/weewx.service
>>  └─505 python3 /usr/share/weewx/weewxd.py 
>> /etc/weewx/weewx.conf
>>
>> Feb 25 08:15:07 raspberrypi weewxd[505]: for line in 
>> iter(self._fd.readline, ''):
>> Feb 25 08:15:07 raspberrypi weewxd[505]: ValueError: 
>> PyMemoryView_FromBuffer(): info->buf must not be NULL
>> Feb 25 08:15:07 raspberrypi weewxd[505]:   File 
>> "/usr/lib/python3.9/threading.py", line 954, in _bootstrap_inner
>> Feb 25 08:15:07 raspberrypi weewxd[505]: self.run()
>> Feb 25 08:15:07 raspberrypi weewxd[505]:   File 
>> "/etc/weewx/bin/user/sdr.py", line 198, in run
>> Feb 25 08:15:07 raspberrypi weewxd[505]: for line in 
>> iter(self._fd.readline, ''):
>> Feb 25 08:15:07 raspberrypi weewxd[505]: ValueError: 
>> PyMemoryView_FromBuffer(): info->buf must not be NULL
>> Feb 25 08:15:07 raspberrypi weewxd[505]: INFO user.sdr: shutdown complete
>> Feb 25 08:15:07 raspberrypi weewxd[505]: CRITICAL __main__: Caught 
>> WeeWxIOError: rtl_433 process is not running
>> Feb 25 08:15:07 raspberrypi weewxd[505]: CRITICAL __main__:  
>>  Waiting 60.0 seconds then retrying...
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 

Re: [weewx-user] CRITICAL __main__: Caught WeeWxIOError: rtl_433 process is not running

2024-02-25 Thread Pierre-Yves
Hello Charlie,

Don't you have in weewx.conf ,[sdr] section, a "sudo" at the beginning of 
your rtl_433 command line ? If yes, try to remove it.

That fixed the problem in my case

Pierre-Yves

Le dimanche 25 février 2024 à 16:20:30 UTC+1, Tom Keffer a écrit :

> I'm not seeing the log. Just the status output from systemctl.
>
> There are many threads about this error in weewx-user. Here's one 
> . 
> Try the suggestions in that thread.
>
>
>
> On Sun, Feb 25, 2024 at 6:27 AM Charlie T  wrote:
>
>> *Here's the log...what am I doing wrong?*
>>
>> ● weewx.service - WeeWX
>>  Loaded: loaded (/lib/systemd/system/weewx.service; enabled; vendor 
>> preset: enabled)
>>  Active: active (running) since Sun 2024-02-25 07:21:25 CST; 54min ago
>>Docs: https://weewx.com/docs
>>Main PID: 505 (python3)
>>   Tasks: 1 (limit: 1595)
>> CPU: 3min 44.239s
>>  CGroup: /system.slice/weewx.service
>>  └─505 python3 /usr/share/weewx/weewxd.py 
>> /etc/weewx/weewx.conf
>>
>> Feb 25 08:15:07 raspberrypi weewxd[505]: for line in 
>> iter(self._fd.readline, ''):
>> Feb 25 08:15:07 raspberrypi weewxd[505]: ValueError: 
>> PyMemoryView_FromBuffer(): info->buf must not be NULL
>> Feb 25 08:15:07 raspberrypi weewxd[505]:   File 
>> "/usr/lib/python3.9/threading.py", line 954, in _bootstrap_inner
>> Feb 25 08:15:07 raspberrypi weewxd[505]: self.run()
>> Feb 25 08:15:07 raspberrypi weewxd[505]:   File 
>> "/etc/weewx/bin/user/sdr.py", line 198, in run
>> Feb 25 08:15:07 raspberrypi weewxd[505]: for line in 
>> iter(self._fd.readline, ''):
>> Feb 25 08:15:07 raspberrypi weewxd[505]: ValueError: 
>> PyMemoryView_FromBuffer(): info->buf must not be NULL
>> Feb 25 08:15:07 raspberrypi weewxd[505]: INFO user.sdr: shutdown complete
>> Feb 25 08:15:07 raspberrypi weewxd[505]: CRITICAL __main__: Caught 
>> WeeWxIOError: rtl_433 process is not running
>> Feb 25 08:15:07 raspberrypi weewxd[505]: CRITICAL __main__:  
>>  Waiting 60.0 seconds then retrying...
>>
>> -- 
>> 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/435fd56e-0a1b-4c3d-a333-1eb108ef0432n%40googlegroups.com
>>  
>> 
>> .
>>
>

-- 
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/81561729-c5b1-4e11-a01d-e9d5a87dafd5n%40googlegroups.com.


Re: [weewx-user] CRITICAL __main__: Caught WeeWxIOError: rtl_433 process is not running

2024-02-25 Thread Tom Keffer
I'm not seeing the log. Just the status output from systemctl.

There are many threads about this error in weewx-user. Here's one
. Try
the suggestions in that thread.



On Sun, Feb 25, 2024 at 6:27 AM Charlie T  wrote:

> *Here's the log...what am I doing wrong?*
>
> ● weewx.service - WeeWX
>  Loaded: loaded (/lib/systemd/system/weewx.service; enabled; vendor
> preset: enabled)
>  Active: active (running) since Sun 2024-02-25 07:21:25 CST; 54min ago
>Docs: https://weewx.com/docs
>Main PID: 505 (python3)
>   Tasks: 1 (limit: 1595)
> CPU: 3min 44.239s
>  CGroup: /system.slice/weewx.service
>  └─505 python3 /usr/share/weewx/weewxd.py /etc/weewx/weewx.conf
>
> Feb 25 08:15:07 raspberrypi weewxd[505]: for line in
> iter(self._fd.readline, ''):
> Feb 25 08:15:07 raspberrypi weewxd[505]: ValueError:
> PyMemoryView_FromBuffer(): info->buf must not be NULL
> Feb 25 08:15:07 raspberrypi weewxd[505]:   File
> "/usr/lib/python3.9/threading.py", line 954, in _bootstrap_inner
> Feb 25 08:15:07 raspberrypi weewxd[505]: self.run()
> Feb 25 08:15:07 raspberrypi weewxd[505]:   File
> "/etc/weewx/bin/user/sdr.py", line 198, in run
> Feb 25 08:15:07 raspberrypi weewxd[505]: for line in
> iter(self._fd.readline, ''):
> Feb 25 08:15:07 raspberrypi weewxd[505]: ValueError:
> PyMemoryView_FromBuffer(): info->buf must not be NULL
> Feb 25 08:15:07 raspberrypi weewxd[505]: INFO user.sdr: shutdown complete
> Feb 25 08:15:07 raspberrypi weewxd[505]: CRITICAL __main__: Caught
> WeeWxIOError: rtl_433 process is not running
> Feb 25 08:15:07 raspberrypi weewxd[505]: CRITICAL __main__: 
>  Waiting 60.0 seconds then retrying...
>
> --
> 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/435fd56e-0a1b-4c3d-a333-1eb108ef0432n%40googlegroups.com
> 
> .
>

-- 
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/CAPq0zED%2BBG72T3%3DxMYXA3orTnuj67xtemDXR23O0npaTiTix3w%40mail.gmail.com.