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

Topics about the Software of Revolution Pi
Post Reply
Jow W.
Posts: 7
Joined: 11 Jun 2024, 10:09

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

Post 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!
Why do programmers prefer dark mode?

Because the light attracts bugs! :lol:
User avatar
dirk
KUNBUS
Posts: 2085
Joined: 15 Dec 2016, 13:19

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

Post by dirk »

Hey Jow W. take a look at the RevPiPyLoad project here:
https://revpimodio.org/en/revpipyplc-2/revpipyload/
Regards
Peter_Platzer
Posts: 12
Joined: 18 Feb 2024, 12:37

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

Post 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
u.biakoup
KUNBUS
Posts: 201
Joined: 14 Apr 2022, 13:04

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

Post 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
Post Reply