I have made a change to the code. I added
import psutil
and
for proc in psutil.process_iter():
if any(procstr in proc.name() for procstr in ['rtl_433']):
loginf("Killing rtl_433")
proc.kill()
in the class procmanager() in the function startup.
It works.
--
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/bde7521b-6d93-48e2-80b6-0643be9721d9%40googlegroups.com.