I noticed that the section where Meteohub writes in the crontab uses many sleep commands which delay the running of these jobs.
I've asked Meteohub to created and upload graphs at certain times throughout the hour and day, but Meteohub is delaying the job by 1-4 minutes from when I schedule them.
The FTP upload command is set to run every 5 minutes, but Meteohub adds another 240 seconds to the job and delay's getting my graphs posted by 4 minutes.
Can these sleep commands be turned off in a future version so the user can better control when jobs take place? I understand this is to protect Meteohub from getting overloaded by jobs at once, but maybe there could be a check box to turn this \"overload protection\" off and on.
It's just frustrating to find that my FTP uploads aren't going out when they should and my graphs aren't being generated when expected.
Thanks.
crontab and sleep commands ** solved **
Moderator: Mattk
crontab and sleep commands ** solved **
Station: Davis Vantage Pro2 Plus
Hardware: Raspberry Pi 2 (Meteohub status)
Hardware: Raspberry Pi 2 (Meteohub status)
Re:crontab and sleep commands
you are right, the sleeps are intended to cascade the graph generation requests into a sequential mode for protecting system stability.
I am not planning to change this, as starting 10 graph generating jobs at the same time (for example) will bring overall performance onto the knees. Please keep in mind that a NSLU2 has just 32 MB of RAM - so many jobs like gnuplot in parallel will be a big problem.
I am not planning to change this, as starting 10 graph generating jobs at the same time (for example) will bring overall performance onto the knees. Please keep in mind that a NSLU2 has just 32 MB of RAM - so many jobs like gnuplot in parallel will be a big problem.
Re:crontab and sleep commands
After using and understanding it a bit more this makes sense. I agree that it should not be changed. Thanks.
Station: Davis Vantage Pro2 Plus
Hardware: Raspberry Pi 2 (Meteohub status)
Hardware: Raspberry Pi 2 (Meteohub status)

