Go to advanced search

by Cognac
Fri Mar 18, 2016 7:11 am
Forum: Troubleshooting
Topic: Script doesn't run via crontab -e but works fine standalone
Replies: 10
Views: 3435

Re: Script doesn't run via crontab -e but works fine standal

Thank you Moses! I just added "pi" to the crontab: */5 * * * * pi /home/pi/domoticz/scripts/dht22.sh And changed the line: sudo nice -20 /home/pi/Adafruit_Python_DHT/examples/AdafruitDHT.py 22 $DHTPIN > $TMPFILE Standalone the script still works fine. Via the crontab the script do not seem to work....
by Cognac
Fri Mar 18, 2016 6:24 am
Forum: Troubleshooting
Topic: Script doesn't run via crontab -e but works fine standalone
Replies: 10
Views: 3435

Re: Script doesn't run via crontab -e but works fine standal

Thank you Moses! I just added "pi" to the crontab: */5 * * * * pi /home/pi/domoticz/scripts/dht22.sh And changed the line: sudo nice -20 /home/pi/Adafruit_Python_DHT/examples/AdafruitDHT.py 22 $DHTPIN > $TMPFILE Standalone the script still works fine. Via the crontab the script do not seem to work. ...
by Cognac
Fri Mar 18, 2016 5:33 am
Forum: Troubleshooting
Topic: Script doesn't run via crontab -e but works fine standalone
Replies: 10
Views: 3435

Re: Script doesn't run via crontab -e but works fine standal

I have tried all options mentioned above. Thank you. Unfortunately the scipt is still not running. :cry: I really don't get it. The strange thing is that I have this script and the script it uses installed on another Raspberry Pi. On the other Rpi it works like a charm. Same scripts, same file locat...
by Cognac
Thu Mar 17, 2016 12:09 pm
Forum: Troubleshooting
Topic: Script doesn't run via crontab -e but works fine standalone
Replies: 10
Views: 3435

Re: Script doesn't run via crontab -e but works fine standal

RaTTuS wrote: also if you need to run it as sudo then put it in the root crontab
sudo crontab -e
don't have the sudo in the script
or more properly, remove the need to run it as sudo
Thank you! Will also try this! I tested the added line in the root crontab but also under the /etc/crontab -e without succes.
by Cognac
Thu Mar 17, 2016 12:05 pm
Forum: Troubleshooting
Topic: Script doesn't run via crontab -e but works fine standalone
Replies: 10
Views: 3435

Re: Script doesn't run via crontab -e but works fine standal

Hi DirkS, Thank you for your quick reply. You are right, I do not know if the script is started by cron. Fact is that I receive output when executing the script standalone. Using the Cron no output (every 5 minutes) is received. I also tested: sudo nice -20 ./Adafruit_Python_DHT/examples/AdafruitDHT...
by Cognac
Thu Mar 17, 2016 11:38 am
Forum: Troubleshooting
Topic: Script doesn't run via crontab -e but works fine standalone
Replies: 10
Views: 3435

Script doesn't run via crontab -e but works fine standalone

Hi Raspberry friends, My script (for temperature reporting to my Domoticz server) doesn't run via crontab -e but works fine standalone. All files used for this script (temper.txt, AdafruitDHT.py and dht22.sh) are chmodded to 777. Could you guys maybe help me? I already tried adding "sudo" before the...
by Cognac
Tue Mar 15, 2016 12:45 pm
Forum: Beginners
Topic: Raspberry Pi 3
Replies: 29
Views: 5519

Re: Raspberry Pi 3

Rainbow screen is the result of not enough power.

Buy a 2,5A power adaptor for your Pi3.
by Cognac
Tue Mar 15, 2016 11:48 am
Forum: Troubleshooting
Topic: STICKY: WiFi Dongle Issues ? Start here !
Replies: 581
Views: 644751

Re: WiFi Issues ? Start here !

Hi Raspberry Pi fans! I got two Raspberry's a Pi2 and a Pi Zero, both running on Jessie for Domoticz. Unfortunately the Wifi on both devices drop very often, which is a pain as both are remote devices. There are many scripts online available for securing the connection (no connection --> reboot of t...

Go to advanced search