@Brad-Buskey Thanks for the detailed help with Cron. Tried for hours, if not days, to try to get it setup in my Omega2+.
Best posts made by Vincent Campos
Latest posts made by Vincent Campos
RE: Issues Setting Up Cron in Onion Omega [Resolved]
crontab -eto edit crontab and removed the
^Mwhich were preventing it from running successfully. Think they were either inserting through a copy&past or through the console.
Now, it's time to get some rest.
Issues Setting Up Cron in Onion Omega [Resolved]
Trying to figure out the reason(s) a script is not running properly.
Set a shell to call a *.py file every minute with the following:
*/1 * * * * /root/job.sh
The job.sh runs a *.py file which checks an I2C temperature module and sends the results to Ubidots. It works fine manually. Tried restarting Cron and a few other variations such as adding sh to it.
The file has the following properties (also tried chmod a+x, u+x, 755, 666 and others):
-rwx------ 1 root root 62 Jul 21 15:07 job.sh
Checking logread indicates that cron it running:
Fri Jul 21 15:38:00 2017 cron.info crond: USER root pid 3491 cmd /root/job.sh
Fri Jul 21 15:39:00 2017 cron.info crond: USER root pid 3493 cmd /root/job.sh
Fri Jul 21 15:40:00 2017 cron.info crond: USER root pid 3495 cmd /root/job.sh
Fri Jul 21 15:41:00 2017 cron.info crond: USER root pid 3497 cmd /root/job.sh
Fri Jul 21 15:42:00 2017 cron.info crond: USER root pid 3499 cmd /root/job.sh
Fri Jul 21 15:43:00 2017 cron.info crond: USER root pid 3502 cmd /root/job.sh
Cron works fine on another Omega2+, so confused as to why it's not working or in this case generating any output.
Message in Test.log file:
-ash: crontab.txt: not found
The crontab.txt is listed in /etc/crontabs as root (file).
Any ideas on what to try next? Just don't won't to have a script running in an infinite loop after startup.
RE: Can't get my I2C LCD working
Any updates? Have the same issues trying duplicate the tutorials -
Thanks in advance.
RE: How to use 16x2 LCD screen
Trying the tutorial with an Omega2+, but the LCD does not show up in i2cdetect and the sample code from the tutorial is not generating any errors message when it runs.
Did you make any changes to any steps in the tutorial? (Double checked wiring, connections, and screen contrast).
Thanks in advance.
RE: What could be causing this error?
Revised the code to the following:
It runs without generating the previous errors, but the results show more trouble shooting is necessary:
There are *.jpg two files that are now in the directory after the program ran, and the new file(s) should be an *.mp4:
Now, working on to see what is causing it.
What could be causing this error?
Been working on the Time-lapse Webcam tutorial in the Onion Handbook. (Onion Team, thanks for the writing the book!). It help to reset our Omega2+ and start from scratch as now the code matches the tutorial's code.
Now receiving the following error(s):
For now, just focusing on the first one - "can't cd to /root/sd/timeplase/" (was previously /root/sd/timelapse).
Here is the code:
Tried many searches (stackoverflow, etc..) and variations to line 3, but no success. It seems like a simple, but elusive, resolution.
Any ideas! Thanks in advance.