Tested on:RPi3; Raspbian Stretch
Prerequisites:Raspberry Pi with Raspbian Jessie(see steps 1-5 in the Introduction)

Start a script automatically with SystemD: Google AIY voice

Autostarting Python scripts with cron or .bashrc doesn’t work as required in many cases. Starting programs like a custom Google AIY voice assistant automatically with systemd requires a little effort, but is more robust.

SystemD entry
Create a systemd entry with the name of the file that should be started on boot (here /home/pi/main.py)

Write into the file

LXDE autostart
Now, open the LXDE autostart file

and add at the end of the file:

Finally, enter in the terminal:

Special thanks to DougieLawson.

DougieLawson RPi forum: https://www.raspberrypi.org/forums/memberlist.php?mode=viewprofile&u=73731
Google AIY Youtube player: http://www.knight-of-pi.org/a-voice-controlled-boombox-with-the-google-aiy-voice-hat/

Knight of Pi

Johannes Bergs aka Knight of Pi. Diploma in Bioinformatics, some Webdesign and Python coding then. Living in the beautiful city of Vienna.


Time limit is exhausted. Please reload CAPTCHA.