klein0r / ioBroker.awtrix-light

Integrate your Awtrix Light device (e.g. Ulanzi TC001) via HTTP
https://haus-automatisierung.com
MIT License
62 stars 4 forks source link

Feature Request: Option "hold" im blockly Modul #13

Closed marlan99 closed 6 months ago

marlan99 commented 1 year ago

The problem

Feature: Könnte man bitte die Option "hold" im blockly Modul verfügbar machen?

Version of nodejs

16.19.1

Version of ioBroker js-controller

4.0.24

Version of Adapter

0.0.8

Operating system running ioBroker

Raspberry

Checklist of files to include below

Additional information & file uploads

Wollte es als Feature Request erstellen. Habe irgendwie nur "bug" auswählen können

klein0r commented 1 year ago

Ich möchte den Blockly-Baustein nicht unnötig aufblähen. Am besten einfach per JS-Funktion mit sendTo realisieren. Dort sind alle Parameter verfügbar, welche unter https://blueforcer.github.io/awtrix-light/#/api?id=json-properties dokumentiert sind.

marlan99 commented 1 year ago

Als Idee: Eine Option wäre evtl. "hold" zu aktivieren, wenn man die Dauer auf 0 setzt ?

Sonst gerne dieses feature request einfach schliessen

klein0r commented 1 year ago

Als Idee: Eine Option wäre evtl. "hold" zu aktivieren, wenn man die Dauer auf 0 setzt ?

Aktuell wird 1:1 das an Optionen durchgereicht, was man als JSON reingibt. Möchte da ungern etwas Magie zwischen packen, welche dann Optionen austauscht (z.B. duration durch hold ersetzt).

Du kannst das ja ohne Blockly direkt im JavaScript mit sendTo alles selbst umsetzen mit allen verfügbaren Optionen.

haahne commented 10 months ago

Fände diese "Hold" Funktion auch ganz sinnvoll.

klein0r commented 6 months ago

Added in >= 0.13.1