Closed Skipper-is closed 3 years ago
@Skipper-is interesting, yea I would say trying to run it a few seconds after boot. But even then you might need a try/catch loop.. hmm..
Maybe you could have a loop in a bash script that waits for network availability (using some command to ask the OS) and run your python script afterwards?
@Skipper-is I'm going to close this but feel free to open again if you think it is an issue with farmOS.py.
Curious what the solution was if you found one!
Just trying to run FarmOS.py from a Raspberry Pi. If I call the script to run at boot, I get a NewConnectionError thrown, assuming that it is being called before the network adapter is available. Does it need a try/catch? Or maybe I should just run it a few seconds after boot....