zocalo
Posts: 4
Joined: Sat Jul 19, 2014 4:30 pm

Launch a python program when power on

Sat Mar 07, 2015 10:52 pm

Hi,

I have made a simple program (water.py) to water my plants when I am away from home.

Currently, to launch it I need to type in the terminal:
python water.py

It works very well, but I would like to launch the program automatically when I power on the raspberry pi.

Can anyone give me a simple solution? I imagine I should add the command to a file that launches at start up...
:?

Thanks,

Zócalo

ps- (I have managed to remove any login at start up)


zocalo
Posts: 4
Joined: Sat Jul 19, 2014 4:30 pm

Re: Launch a python program when power on

Sun Mar 08, 2015 2:38 pm

oups... I had made a google search before, but I did not found the 2nd option in your post...
http://www.raspberrypi.org/documentatio ... c-local.md

It worked perfectly fine ! Thanks !!
:D

Return to “Beginners”