yaq/daemons/lightcon-topas4-shutter


Expose a single light conversion shutter as a yaq daemon.

bugtracker
manufacturer
source

installation

The lightcon-topas4-shutter daemon can be installed using the following package managers:

PyPI

traits

The lightcon-topas4-shutter daemon is composed of the following traits:

is-discrete
is-daemon
has-position

configuration

identifiers ({'type': 'map', 'values': 'float'}) default: {'closed': 0, 'open': 1}
Position identifiers

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

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

port (int)
TCP port for daemon to occupy.

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

addendum by lightcon-topas4-shutter:
Topas4 motor daemons MUST specify the serial number

topas4_host (string) default: 127.0.0.1
Host/IP of the wintopas4 server

topas4_port (int) default: 8000
IP port of the wintopas4 server

state

The lightcon-topas4-shutter daemon will provide the following state information:

destination (float)

position (float)

position_identifier (['null', 'string'])
Current position identifier.

messages

The lightcon-topas4-shutter daemon will expose the following public messages:

busy ➜ boolean
Returns true if daemon is currently busy.

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_destination ➜ float
Get current daemon destination.

get_identifier ➜ ['null', 'string']
Get current identifier string. Current identifier may be None.

get_position ➜ float
Get current daemon position.

get_position_identifiers ➜ {'type': 'map', 'values': 'float'}
Get position identifiers. Identifiers may not change at runtime.

get_state ➜ string
Get version of the running daemon

get_units ➜ ['null', 'string']
Get units of daemon. These units apply to the position and destination fields.

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

set_identifier ➜ float
Set using an identifier. Returns new destination.
parameters:

identifier (string)

set_position ➜ null
Give the daemon a new destination, and begin motion towards that destination.
parameters:

position (float)

set_relative ➜ float
Give the daemon a new destination relative to its current position. Daemon will immediately begin motion towards new destination. Returns new destination.
parameters:

distance (float)

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

restart (boolean) default: False


built 2020-10-27 13:47:08                                      CC0: no copyright