commandsjob schedule (sunrise/sunset)

Add/delete a sunrise/sunset job schedule.

Usage

job schedule (add|delete) name [n unit] [(before|after)] \
    [(astronomical|civil|nautical|official)] (sunrise|sunset) in city

where
add add the specified schedule.
delete delete the specified schedule.
name of job whose schedule to add/delete.
n Offset from sunrise/sunset. Default = 0.
unit of repeat interval. Where unit is one of second[s], minute[s] or hour[s].
before|after run job n units before or after sunrise/sunset. Default = before.
astronomical Center of sun is 18° below the horizon.
civil Center of sun is 6° below the horizon. Default.
nautical Center of sun is 12° below the horizon.
official Center of sun is 50’ below the horizon.
city whose sunrise/sunset to calculate. Default = largest city in your timezone.

write on name

Examples

Schedule a job to run 15 minutes before (civil) sunset

BeyondCron % job schedule add /store/lights-on 30 minutes before sunset in Tokyo
BeyondCron % job show $$

-------------- ---------------------------------------------- Name /store/lights-on Description Turn store lights on ... Schedules 30 minutes before civil sunset in Tokyo, Japan ...

Delete a job schedule

BeyondCron % job schedule delete /store/lights-on 30 minutes before sunset in Tokyo
BeyondCron % job show $$

-------------- -------------------- Name /store/lights-on Description Turn store lights on ... Schedules ...

See also