![]() After that, you should set execute permission to that script. Raspistill -w 1280 -h 960 -o /home/pi/fotos/$FECHA.jpg Open an empty file and write the following: ![]() You could write a shell script and save it in the same folder that you create for the pictures. You can use this way instead write a Python code and configure the autostart execution. I will show you how do it using a shell script and the crontab tool. There is another way to take pictures every certain time. Reboot the Raspberry and when it is up, open a terminal and write the following command: To save the changes use ctrl + o and ctrl + x to exit. Now you should write the following inside that file:Įxec=/usr/bin/python3 /home/pi/yournamescript.pyĬhange yournamescript with the name that you put to your script. Open a terminal a write the following commands: For that activity, we will create a file with that instruction. We need our script to start when the Raspberry turns on. You can change that time if you want.Īfter that paste the code and save it. You should wait for 60 seconds after that time checks the folder where you store the pictures. You can test the code click on the play bottom. You should replace the path where your pictures will be saved. If it asks for the language you should choose Python. Open the MU application locate it in the programming section in the main menu.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |