It looks like you're new here. If you want to get involved, click one of these buttons!
I've been trying to get a processing sketch to run automatically when the pi starts up - Pi 3b.
Pi is booting into the GUI. I'm using a simple sketch with no dependancies for tester PenroseTile from examples. Can't get it to work. I'm not great with Linux so maybe missing something basic. I'm trying to get this command to execute in a systemd .service file (rc.local approach didn't work either)
--sketch=/home/pi/Desktop/PenroseTile/ --run > /home/pi/startup.log 2>&1 &
It works from command line with ssh from my computer. Boots up the sketch, but as
ExecStart= in the .service file I get nothing, not even the log file I'm trying to generate.
I've replaced the ExecStart string in the .service file to one that targets a python script and that works, so I think the .service file is setup correctly (
/usr/bin/python /home/pi/Desktop/enviroFields/enviro3.py works). I've noticed it doesn't seem to work if I try to execute a shell script from the .service file either ie
/bin/sh /home/pi/Desktop/enviro.sh won't run this way either.
I'm at a loss.
Is it that Processing sketch cannot be run by Pi at startup?
Should I Perhaps export as application? And how would I address it then?
Am I missing something in the command line construction?
Any pointers to existing documentation? I can't find anything that addresses this directly.
I just noted in forum post that Processing has a Jessie image. I'm not using that. I started with '2017-04-10-raspbian-jessie' set up with Kuman 5" display (HDMI). I installed Processing-3.3.3 directly.
Any help appreciated. Thanks
[Unit] Description=Start EnviroFields After=multi-user.target [Service] Type=idle ExecStart=DISPLAY=:0 /usr/local/bin/processing-3.3.3/processing-java --sketch=/home/pi/Desktop/PenroseTile --run > /home/pi/Desktop/enviroBoot.log 2>&1 [Install] WantedBy=multi-user.target