0

Think Ink weather station
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Think Ink weather station

by lostcity on Mon Jun 27, 2022 12:24 pm

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

lostcity
 
Posts: 35
Joined: Mon Dec 07, 2009 7:02 pm

Re: Think Ink weather station

by Franklin97355 on Mon Jun 27, 2022 9:38 pm

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.

Franklin97355
 
Posts: 22747
Joined: Mon Apr 21, 2008 2:33 pm
Location: Lacomb, OR.

Please be positive and constructive with your questions and comments.