Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 5145

Advanced users • Re: KEEP autostart terminal open like in UI

$
0
0
You're making an assumption in that because the address and port cannot be bound your script is already running. It might not be. It's possible for a program to crash and not have the port released.
Well,
that is NOT the case, this had simply been the beginning of the journey cause in that moment I had assumed it was running AND I HAD CHECKED IT, too.
I had switched over to Homeassistant and listened on the mqtt integration for the mqtt messages only this script could send .

The pi 3 running grott is reacting as a proxy and forwarding messages from the growatt solar inverter to the growatt cloud and to my mqtt broker. And therefore I had written before
the result is pretty much the same which means that the script is running the code cause in case I open a terminal and run

Code:

python3 /home/pi/Desktop/grott/grott.py -v
manually then I get this error which you get if you start the py script a second time - so it is running and I also get the mqtt messages.
And it is still running all the time without a visible terminal cause every minute the mqtt message arrives or rather 2 or 3 times a minute.

That being said I will try out your suggestions this evening when I am back step by step.

Thanks for your in depth support and help.

Statistics: Posted by typxxi — Wed Mar 20, 2024 2:48 am



Viewing all articles
Browse latest Browse all 5145

Trending Articles