Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Autorun #55

Open
Amirluq123 opened this issue Sep 29, 2021 · 1 comment
Open

Autorun #55

Amirluq123 opened this issue Sep 29, 2021 · 1 comment

Comments

@Amirluq123
Copy link

is it possible to make this program to autorun after booting up the pi?

@naztronaut
Copy link
Owner

If you're using the regular version with the mic, you can auto run it with a cron job. I posted the solution in another comment, pasting it here too:

You can run the script on startup with crontab. Here's some documentation on crontab: https://www.raspberrypi.org/documentation/linux/usage/cron.md

At the very bottom, there's an example of how to use the @reboot command. This will start something whenever the pi is started.

So in your case, it would be something like:

sudo crontab -e

That will run crontab as root, then add this line:

@reboot python3 /home/pi/dancyPi-script-location/python/visualization.py scroll &

Substitute "scroll" for whichever visual you want as default.

I use crontab for my more permanent setups and it works pretty well. Good luck!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants