scheduler - bruno-beloff/scs_dev GitHub Wiki

docs > software repositories > scs_dev > commands > device control


DESCRIPTION

The scheduler utility is used to provide timing and synchronisation to the sampling processes: climate_sampler, gases_sampler, particulates_sampler, and status_sampler.

When started (typically as a background process) the scheduler utility launches one sub-process for each of the items in the schedule configuration. On the given interval for each item, the sub-process releases a Posix semaphore to the sampler, then regains it. The name of the semaphore is the name of the tag. By convention, the following names are used:

  • scs-climate
  • scs-gases
  • scs-particulates
  • scs-status

The schedule configuration is specified using the scs_mfr/schedule utility.

SYNOPSIS

scheduler.py [-v]

Options
--version show program's version number and exit
-h, --help show this help message and exit
-v, --verbose report narrative to stderr

EXAMPLES

scheduler.py

FILES

~/SCS/conf/schedule.json

DOCUMENT EXAMPLE

{"scs-climate": {"interval": 60.0, "tally": 1}, "scs-gases": {"interval": 5.0, "tally": 1}, "scs-particulates": {"interval": 10.0, "tally": 1}, "scs-status": {"interval": 60.0, "tally": 1}}

SEE ALSO

scs_dev/climate_sampler
scs_dev/gases_sampler
scs_dev/particulates_sampler
scs_dev/status_sampler

scs_mfr/schedule