I have a Model B with an Adafruit TFT attached. It's going to be a heating controller in a church (if I ever manage to jump all the hurdles).
I've got code that runs on the display, but I'm having trouble getting it to autorun. I added to /etc/rc.local:
which seems to start the code, but it promptly aborts, leaving the x screen running and showing an error in the (hdmi) text terminal:
Code: Select all
_tkinter.TclError: No display name and no $DISPLAY environment variable
I've used Linux for some time, but still have no idea how to set the name and/or env var in an appropriate place -- or how to find what the correct value should be. Any hints?