Giving up on trying to run Python program at startup

The Raspberry Pi is a series of credit card-sized single-board computers developed in the United Kingdom by the Raspberry Pi Foundation to promote the teaching of basic computer science in schools and developing countries.

Post Reply
User avatar
/RaspberryPi
Corporate
Posts: 2449
Joined: Wed Jun 05, 2019 1:29 am

Giving up on trying to run Python program at startup

Post by /RaspberryPi »

I made a dashboard to display statuses of my IoT devices and to display settings from Homebridge. Everything works during testing. If I'm logged into the Pi, I can run the dashboard.sh and bring up the dashboard. However, no matter which method I try (all from Google searches) of using /etc/init.d, /etc/init, crontab, whatever... nothing works at reboot. The only thing that does *anything* is the crontab entry which then fails due to TKinter: Can't connect to DISPLAY "0.0". I have a 5" LCD connected via HDMI to the Pi (the Pi is piggy-backed on it).
For now, I leave the mouse dongle connected and manually start the shell script. Starting to get annoyed only because every solution does nothing.

submitted by /u/lmolter
[link] [comments]

More...
Post Reply

Return to “Raspberry Pi Forum”