Page 1 of 1

How to automatically start Python script on Revolution Pi after reboot?

Posted: 02 Aug 2024, 13:50
by Jow W.
Hey everyone,
I'm working on a vertical farm project using a Revolution Pi. The issue is that power cuts force the PLC to reboot, but my Python control script doesn't restart automatically. How can I set up something to launch my Python program every time the RevPi boots up? Any tips on scripts or similar solutions would be greatly appreciated!

Re: How to automatically start Python script on Revolution Pi after reboot?

Posted: 02 Aug 2024, 15:29
by dirk
Hey Jow W. take a look at the RevPiPyLoad project here:
https://revpimodio.org/en/revpipyplc-2/revpipyload/
Regards

Re: How to automatically start Python script on Revolution Pi after reboot?

Posted: 03 Aug 2024, 19:43
by Peter_Platzer
I also use revpipyload and it works really fine.

Do not forget to add it to the autostart with:

Code: Select all

sudo systemctl enable revpipyload
This was not so clear for me in the documentation.

If you use the commander there is an issue with the log files which does not hurt too much as you can still transfer the files using e.g. Filezilla

Re: How to automatically start Python script on Revolution Pi after reboot?

Posted: 12 Aug 2024, 12:04
by u.biakoup
Hello,
I am happy to hear, that thing is going well for you now.

Best Regards

Ulrich Kouatang Biakoup | field application engineer