yaq/daemons/fake-triggered-sensor


bugtracker
source

installation

The fake-triggered-sensor daemon can be installed using the following package managers:

PyPI
conda-forge

traits

The fake-triggered-sensor daemon is composed of the following traits:

has-measure-trigger
is-sensor
is-daemon

configuration

channels (map) default: {'random_walk': {'kind': 'random-walk', 'max': 1, 'min': -1}}

loop_at_startup (boolean)
If set to true, the daemon will begin to loop measure as soon as it starts.
from has-measure-trigger

make (['null', 'string']) default: __null__
from is-daemon

model (['null', 'string']) default: __null__
from is-daemon

port (int)
TCP port for daemon to occupy.
from is-daemon

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

messages

Daemons with the fake-triggered-sensor trait expose the following public messages:

busy ➜ boolean
Returns true if daemon is currently busy.

get_channel_names ➜ {'items': 'string', 'type': 'array'}
Get current channel names.

get_channel_shapes ➜ {'type': 'map', 'values': {'items': 'int', 'type': 'array'}}
Get current channel shapes. If list is empty, channel is scalar.

get_channel_units ➜ {'type': 'map', 'values': ['null', 'string']}
Get current channel units.

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.

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

get_measured ➜ {'type': 'map', 'values': ['float', 'ndarray']}
Get most recent measured value.

get_state ➜ string
Get version of the running daemon

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

measure ➜ int
Initiate a measurement. Returns integer, measurement ID.
parameters:

loop (boolean) default: False

shutdown ➜ null
Cleanly shutdown (or restart) daemon.
parameters:

restart (boolean) default: False

stop_looping ➜ null
Stop looping measurement.


built 2020-07-31 16:06:40                                      CC0: no copyright