Sailcron

Rating: 
5
Your rating: None Average: 5 (13 votes)

Warning regarding SailfishOS upgrades:

to prevent any misbehavior of the cron daemon, please stop the daemon before starting any OS upgrade

 

Frontend for the cron scheduler. Makes it easy to view your schedules in a more friendly way.

Also gives the opportunity to fully manage crontabs of nemo and root. The usual warning: always be careful with root permissions. Disabling is achieved by adding a specific comment string in the cron entry.

Displayed commands can be replaced by a more meaningful text.

Using cron-descriptor for the conversion of cron expressions into human readable strings.

Using python-crontab for the cron timestring syntax check.

Needs vixie-cron or cronie as cron daemon, which can be found in my repo.

Loading a large crontab can cause some unresponsiveness.

If you want to play more with the crontab syntax, you can have a try here: http://www.corntab.com/pages/crontab-gui

Why use cron as a scheduler?

  • Stable, simple and well known
  • Low on resources and a wakelock only every minute does not really effect battery usage
  • Systemd timers are not accurate, because they are effected by sleep states
  • Timed-qt5 (the "native" scheduling) would have been another option. I worked with something similar on Maemo, which I liked, but was missing documentation and implemented features

 

Swedish translation: eson

Sources can be found on github

 

Screenshots: 

Keywords:

Application versions: 
AttachmentSizeDate
File harbour-sailcron-0.1-16.armv7hl.rpm126.49 KB20/02/2017 - 23:04
File harbour-sailcron-0.1-16.i486.rpm128.3 KB20/02/2017 - 23:04
File harbour-sailcron-0.1-17.i486.rpm131.93 KB29/04/2017 - 23:58
File harbour-sailcron-0.1-17.armv7hl.rpm129.91 KB29/04/2017 - 23:58
File harbour-sailcron-0.1-18.i486.rpm132.16 KB16/07/2017 - 19:27
File harbour-sailcron-0.1-18.armv7hl.rpm130.22 KB16/07/2017 - 19:27
File harbour-sailcron-0.1-20.armv7hl.rpm159.28 KB14/02/2019 - 00:22
File harbour-sailcron-0.1-20.i486.rpm161.13 KB14/02/2019 - 00:22
File harbour-sailcron-0.1-21.armv7hl.rpm161.07 KB16/08/2019 - 22:24
File harbour-sailcron-0.1-21.i486.rpm163.29 KB16/08/2019 - 22:24
File harbour-sailcron-0.2-1.armv7hl.rpm161.2 KB11/01/2020 - 00:02
File harbour-sailcron-0.2-1.i486.rpm163.43 KB11/01/2020 - 00:02
File harbour-sailcron-0.3-1.i486.rpm164.38 KB18/01/2020 - 23:48
File harbour-sailcron-0.3-1.armv7hl.rpm162.4 KB18/01/2020 - 23:48
Changelog: 
  • 0.3-1
    • Load custom texts async for faster loading
    • Minor layout changes
  • 0.2-1
    • updated python-crontab and cron-descriptor
    • No longer require vixie-cron as a dependency
  • 0.1-21
    • Added button to cleanup orphaned custom texts
    • Upgraded python-crontab to 2.3.7
    • Latest changes from cron-descriptor
  • 0.1-20
    • Now support @reboot,@weekly etc.
    • Updated python-crontab and cron descriptor to latest version
  • 0.1-18
    • Cron descriptor updated to 1.2.9
    • Python-crontab updated to 2.2.3
  • 0.1-17
    • Increased max length cron line
    • Cron descriptor updated to 1.2.8
    • Python-crontab updated to 2.2.1
  • 0.1-16 Implemented python call_sync workaround (credits otsaloma) due to bug in 2.1.0.x
  • 0.1-15 Updated swedish translation
  • 0.1-14
    • Edit menu selectable directly from detailspage
    • Synced python-crontab to upstream 2.1.1
    • Cron syntax checker will now fail if cron range is backwards
  • 0.1-13 Settingspage no longer a dialog page (with cancel/accept)
  • 0.1-12 fixed introduced bug that would insert invalid cron entry
  • 0.1-11
    • The input "*/number" was not correctly passed
    • Limit accepted input characters
    • Added new python module for actual cron string checking
  • 0.1-10
    • Increased max length of input fields
    • Included upstream fix for cron-descriptor
  • 0.1-9
    • Updated Swedish
    • Added Dutch language
  • 0.1-8
    • No auto capitalisation in command field
    • Create custom names for execution string
  • 0.1-7 Fixed not showing cron entries with '=' sign
  • 0.1-6 Fixed weekday numbers explanation
  • 0.1-5 Fix: pipe symbol was not handled correctly
  • 0.1-4
    • Included cron-descriptor upstream change for week/month localizations
    • Swedish translation updated
  • 0.1-3
    • Fix: ignoring settings in crontab led to corruption
    • Manage crontab daemon from settings page
  • 0.1-2 Fix: try to ignore settings done in crontab
  • 0.1-1
    • Added Swedish translation
    • Localized days of week in cron-descriptor part
  • 0.1-0 Initial version

Comments

ade's picture

Afaik it gets a wakeup every minute (also the minimum time to schedule). No noticable extra power consumption (been using it from the beginning).

The memory footprint, including shared memory, is about 390.0 KiB.

My experience with timedclient-qt5 is not that it is buggy, but a lot of parameters are not implemented (for example hide snooze for an alarm). I don't want to hack in the event files afterwards. I was hoping for clearly documented API calls to talk to timed (as I was used to on the N900), but it looks Jolla still has a lot to do on this matter.

So in the mean time I am perfectly happy with cron to do the job scheduling for me.

objectifnul's picture

Looking for CLI options for "harbour-sailwave" and/or "harbour-quickradio" terminal commands allowing to launch playback of a selected station and to convert Sailcron into a radio alarm clock.

ade's picture

The question is not really related to Sailcron, but anyway :-)

A typical command line for this would be:

bash -l -c "/usr/bin/gst-launch-0.10 -v playbin2 uri=http://download.banshee-project.org/misc/http-test.ogg"

This plays the short test file over http at the given cron time. But gst-launch does not seem to support radio streams well.

Harbour-sailwave does not support parameters, but LLs Video Player does.

The command
bash -l -c "/usr/bin/harbour-videoPlayer -p http://icecast.omroep.nl/3fm-live-mp3"

will start Video Player and play the stream.

Note that I use "bash -l -c" because cron is not aware of environment variables. You could also source /etc/profile for this.

objectifnul's picture

LLs trick (harbour-videoPlayer) is perfect!

Pages