Feature Request: Shell Script Toggle & outputs via API Call #362
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I have a 4 relay hat on my pi and have 8 outputs configured using shell script (eg:
Relay 1 on: ic2set -y 1 0x10 0x01 0xff
Relay 1 off: ic2set -y 1 0x10 0x01 0x00
Relay 2 on: ....
)
I can't seem to get the API web calls to trigger these outputs.
http://{ip}/plugin/enclosure/setIO?apikey={mykey}&index_id=1&status=TRUE
returns a {"success":true} json, but the process isn't actually triggered.
Feature requests:
A way to define both the ON and OFF for shell scripts for a single ID so that I would only have to define 4 outputs that could be toggled. For example:
Label: Relay 1 {required}
ID: 1 {required}
Script ON/TRUE: {required} - works like current implementation. - UI has a "execute script" button
Script OFF/FALSE: {optional} - if defined, UI would have ON/OFF buttons for this output instead of an "execute Script" button.
A way to be able to call these shell script outputs via the API. Now the STATUS=TRUE/FALSE would make sense for shell scripts.