schedule - bruno-beloff/scs_mfr GitHub Wiki
docs > software repositories > scs_mfr > commands > scheduling
DESCRIPTION
The schedule utility is used to set timing and averaging specifications for environmental sampling and device status reporting.
The configuration file generated by the schedule utility contains fields that name Unix semaphores that will be used to communicate with each sampler process. By convention, these are:
- scs-climate
- scs-gases
- scs-particulates
- scs-status
The schedule interval is the period between sampling operations in seconds. The minimum is one second. The tally represents the number of samples between reporting operations. If the tally is greater than 1, reports contain averaged data.
Note that the ssc_dev_/scheduler process must be restarted for changes to take effect.
SYNOPSIS
schedule.py [{-s NAME INTERVAL TALLY | -r NAME }] [-v]
Options | |
---|---|
--version | show program's version number and exit |
-h, --help | show this help message and exit |
-s SET, --set=SET | set schedule NAME, INTERVAL (seconds) and TALLY (count) |
-r REMOVE, --remove=REMOVE | remove the named schedule |
-v, --verbose | report narrative to stderr |
EXAMPLES
./schedule.py -s scs-climate 10.0 1
DOCUMENT EXAMPLE
{"scs-climate": {"interval": 60.0, "tally": 1}, "scs-gases": {"interval": 10.0, "tally": 1}, "scs-particulates": {"interval": 10.0, "tally": 1}, "scs-status": {"interval": 60.0, "tally": 1}}
FILES
~/SCS/conf/schedule.json
SEE ALSO
BUGS
Currently, averaging is not available. The tally should therefore be set to 1.