I have the 2.13 Think Ink hat on a Pi A+ on my home network. The code works as I have it plugged into my monitor and HDMI cable. I want to have it run at start up without have a display and keyboard plugged in. I have tried to crontab -e and added @reboot python3 /home/pi/weather/code.py
Where code.py is the python script that runs the weather station.
The script is not working. So is there a way to fix my coding or another way to get the program to run at start up
Thanks in advance
Think Ink weather station
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- Franklin97355
- Posts: 23912
- Joined: Mon Apr 21, 2008 2:33 pm
Re: Think Ink weather station
Do you have permissions?
Running a program on startup requires you to have an execute permission with the application and file. You can check using ls -l. Otherwise, to add the permission, enter sudo chmod a+x FILENAME.
Running a program on startup requires you to have an execute permission with the application and file. You can check using ls -l. Otherwise, to add the permission, enter sudo chmod a+x FILENAME.
Please be positive and constructive with your questions and comments.