Need help with chron job for Weather34

53 views
Skip to first unread message

Bill Arthur

unread,
Mar 13, 2020, 9:34:14 PM3/13/20
to weewx-user
I'm trying to find a way to execute a function 15 minutes after the RasPi boots up.

I've managed to move Weather34 to a ramdisk, so none of the directories or files exist until the first loop.   In order for Weather34 to work I need to chown the jsondata directory just after it has been created.

I'm not expereinced at setting up chron jobs and I can't find online info on how to create a one time event that occurs 15 minutes after boot up.

Can someone point me in the right direction?

Thanks !!

Greg from Oz

unread,
Mar 13, 2020, 11:11:41 PM3/13/20
to weewx-user
I just typed into google cron 10 minutes after boot and found heaps of examples.

@reboot /bin/sleep 600 ; /path/to/your/your_program

This will suspend execution of the shell for 600 seconds, and then run /path/to/your/your_program. Depending on your SHELL used for cron commands, the command syntax might be different.

Bill Arthur

unread,
Mar 13, 2020, 11:16:00 PM3/13/20
to weewx-user


Thanks!  I should have trusted Google more. I was foolishly going through long tutorials that never had what I wanted.

Bill Arthur

unread,
Mar 14, 2020, 2:27:45 AM3/14/20
to weewx-user

Thanks !!
My WeeWx is working perfectly on the ramdisk. This should keep my SD card healthy. 
Now I'm going to copy & backup the card before I screw it up.
Reply all
Reply to author
Forward
0 new messages