yaq/traits/is-daemon


configuration

Daemons with the is-daemon trait expect the following configuration:

port (int)
TCP port for daemon to occupy.

serial (['null', 'string']) default: __null__
Serial number for the particular device represented by the daemon

make (['null', 'string']) default: __null__

model (['null', 'string']) default: __null__

messages

Daemons with the is-daemon trait expose the following public messages:

busy ➜ boolean
Returns true if daemon is currently busy.

id ➜ {'type': 'map', 'values': ['null', 'string']}
JSON object with information to identify the daemon, including name, kind, make, model, serial.

get_config_filepath ➜ string
String representing the absolute filepath of the configuration file on the host machine.

get_config ➜ string
Full configuration for the individual daemon as defined in the TOML file. This includes defaults and shared settings not directly specified in the daemon-specific TOML table.

shutdown
Cleanly shutdown (or restart) daemon.
parameters:

restart (boolean) default: False

get_state ➜ string
Get version of the running daemon

daemons

The following daemons implement the is-daemon trait:

acton-2150i
ads1115
fake-continuous-hardware
fake-discrete-hardware
fake-triggered-sensor
gdrive
gpio-digital-output
gpio-digital-sensor
lightcon-topas4-motor
lightcon-topas4-shutter
mcp3428
mcp9600
micro-hr
newport-connex-agp
newport-smc100
pmc
seabreeze
system-monitor
thorlabs-bsc201
thorlabs-k10cr1
thorlabs-kdc101
thorlabs-kst101
thorlabs-lts150
thorlabs-lts300
zaber-binary


built 2020-08-18 17:11:11                                      CC0: no copyright