Go to advanced search

by cliveflint
Thu Dec 08, 2016 11:45 pm
Forum: General discussion
Topic: Pi3 with a lightning bolt?
Replies: 48
Views: 194765

Re: Pi3 with a lightning bolt?

I just had some Anker cables delivered and the lightning symbol has disappeared.
Good quality cables make a difference.
by cliveflint
Tue Dec 30, 2014 5:50 pm
Forum: Python
Topic: DHT22 Python and Cron issue
Replies: 4
Views: 1495

Re: DHT22 Python and Cron issue

Well, it seems I've found the issue.

I added the following:

Code: Select all

os.chdir('/home/pi/Meteoros')
and it's now logging properly.
by cliveflint
Tue Dec 30, 2014 9:39 am
Forum: Python
Topic: DHT22 Python and Cron issue
Replies: 4
Views: 1495

Re: DHT22 Python and Cron issue

I had to add it myself to find out what was causing the issue. It's in the program at the top. while humidity == False: x += 1 dht.get_data() humidity = dht.humidity() logging.debug(str(x) + ' Attempting to get humidity') time.sleep(1) if x > 10: break I'm running as root when it runs manually and t...
by cliveflint
Tue Dec 30, 2014 8:37 am
Forum: Python
Topic: DHT22 Python and Cron issue
Replies: 4
Views: 1495

Re: DHT22 Python and Cron issue

My cron job in /etc/cron.d/datalogger is * * * * * root /usr/bin/python /home/pi/Meteoros/datalogger.py and my dir listing is [email protected]:/home/pi/Meteoros# ls -l total 36 drwxr-xr-x 21 pi pi 4096 Jan 26 2014 Adafruit-Raspberry-Pi-Python-Code -rwxr-xr-x 1 pi pi 1564 Dec 30 08:31 datalogger.py ...
by cliveflint
Tue Dec 30, 2014 1:53 am
Forum: Python
Topic: DHT22 Python and Cron issue
Replies: 4
Views: 1495

DHT22 Python and Cron issue

Hi, I have had to change my Xively feed to update from COSM. It's been a while and I've managed to get the new script to work when run from terminal. I can't get it to run from CRON though. It doesn't read the sensor. The sensor is read ok when running the file manually. I'm not sure what is wrong. ...

Go to advanced search