I have checked everything but nothing shows up. Have stripped everything 
back to the bare minimum and only have the sds011 driver running. Only one 
instance of WeeWX running and nothing else connected but still it locks up. 
The device works fine outside of WeeWX using aqi.py from here: - 
https://github.com/zefanja/aqi/blob/master/python/aqi.py

On Wednesday, August 28, 2019 at 2:46:09 PM UTC+1, Leon Shaner wrote:
>
> What about:
>
> pi@DietPi:~ $ sudo fuser -v /dev/ttyUSB0
>                      USER        PID ACCESS COMMAND
> /dev/tty/USB0:
>                      pi          400 F.... weewxd
>
> In any case, maybe weewx is running more than once?
> Try stopping it and then:
>
> $ ps -ef | grep weewx
>
> And see if there is another weewxd process still running and kill it 
> (simple kill {pid} first, then kill -9 {pid} if it doesn't go away on the 
> simple kill).
>
> Regards,
> \Leon
> --
> Leon Shaner :: Dearborn, Michigan (iPad)
>
> On Aug 28, 2019, at 9:35 AM, steeple ian <[email protected] <javascript:>> 
> wrote:
>
> 
> *lsof /dev/ttyUSB0 shows nothing at all.*
>
> On Wednesday, August 28, 2019 at 1:51:27 PM UTC+1, Tom Keffer wrote:
>>
>> I doubt this has anything to do with V4, but I could be wrong. Check to 
>> see which process has the port open:
>>
>> *lsof /dev/ttyUSB0*
>>
>> I'm betting there's another process holding on to the port.
>>
>> -tk
>>
>> On Wed, Aug 28, 2019 at 4:19 AM steeple ian <[email protected]> wrote:
>>
>>> Tom,
>>>
>>> I am testing WeeWX 4.0.0.a7 with the SDS011 driver.
>>>
>>> I am getting the following error: -
>>>
>>> weewx.service - LSB: weewx weather system
>>>    Loaded: loaded (/etc/init.d/weewx; generated)
>>>    Active: active (exited) since Wed 2019-08-28 12:07:31 BST; 5s ago
>>>      Docs: man:systemd-sysv-generator(8)
>>>   Process: 1449 ExecStart=/etc/init.d/weewx start (code=exited, 
>>> status=0/SUCCESS)
>>>
>>> Aug 28 12:07:31 DietPi weewxd[1463]: weewx[1463]/DEBUG weewx.engine: Debug 
>>> is 1
>>> Aug 28 12:07:31 DietPi weewxd[1463]: weewx[1463]/DEBUG weewx.engine: 
>>> Initializing engine
>>> Aug 28 12:07:31 DietPi weewxd[1463]: weewx[1463]/INFO weewx.engine: Loading 
>>> station type SDS011 (user.sds011)
>>> Aug 28 12:07:31 DietPi weewxd[1463]: SDS011: driver version is 0.2
>>> Aug 28 12:07:31 DietPi weewxd[1463]: SDS011: model is NovaPM
>>> Aug 28 12:07:31 DietPi weewxd[1463]: SDS011: port is /dev/ttyUSB0
>>> Aug 28 12:07:31 DietPi weewxd[1463]: SDS011: poll interval is 10
>>> Aug 28 12:07:31 DietPi weewxd[1463]: weewx[1463]/ERROR weewx.engine: Import 
>>> of driver failed: Port is already open. (<class 
>>> 'serial.serialutil.SerialException'>)
>>> Aug 28 12:07:31 DietPi weewxd[1463]: weewx[1463]/CRITICAL weewx.engine: 
>>> Unable to load driver: Port is already open.
>>> Aug 28 12:07:31 DietPi weewxd[1463]: weewx[1463]/CRITICAL weewx.engine:     
>>> ****  Exiting...
>>>
>>>
>>> RaspberryPi 3, running DietPi Buster (Debian 10).
>>>
>>>
>>> Nothing else connected to the USB ports.
>>>
>>>
>>> The driver works fine with 3.9.2
>>>
>>>
>>> Thanks,
>>>
>>> Ian
>>>
>>> -- 
>>> You received this message because you are subscribed to the Google 
>>> Groups "weewx-development" 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-development/7e25db58-909c-4ca3-a5bb-0beda4cd2458%40googlegroups.com
>>>  
>>> <https://groups.google.com/d/msgid/weewx-development/7e25db58-909c-4ca3-a5bb-0beda4cd2458%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>> -- 
> You received this message because you are subscribed to the Google Groups 
> "weewx-development" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected] <javascript:>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/weewx-development/584076e2-278f-45b8-9d2b-d94306ecc9d3%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/weewx-development/584076e2-278f-45b8-9d2b-d94306ecc9d3%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-development" 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-development/439d0a36-97be-44a9-aeef-be69a3ea2a8e%40googlegroups.com.

Reply via email to