Lichtwerkstatt / XRTL_SPA

Single Page Application for XRTL Remote Lab
https://xrtl.uni-jena.de/
GNU Affero General Public License v3.0
2 stars 3 forks source link

Identify component #115

Closed Claralein closed 1 year ago

Claralein commented 1 year ago

With clicking on the i symbol in a component window sends a command to the selected component, whereupon the LED ring of the component lights up briefly.

doomke commented 1 year ago

For the implementation we should agree on a command for the identification process. Nothing is implemented on the hardware site yet, so I suggest something like the following:

[
    "command",
    {
        "controlId":"stepper",    <- controlId of the module to identify
        "identify":3000           <- duration (in ms) to light up the LED
    }
]

~Alternatively we could use "identify":true with a standard value for the duration, whatever is more convenient/feels appropriate.~

doomke commented 1 year ago

identify command has been implemented for stepper motors, servo motors and outputs. I tested it locally only, please test within the server environment.

Claralein commented 1 year ago

Works correctly!