My collection of scripts for ioBroker.
You need to install the following dependencies in your ioBroker.javascript instances:
rxjs@7got@13
Syntax help may be added for the following npm modules:
rxjsrxjs/operatorsgot
Most of the scripts require the option Enable command "setObject" to be
enabled since they create channels, devices and states.
If Update_Notification.ts is used along with the Telegram adapter and you want
to trigger adapter updates straight from the Telegram notification, the
Enable command "exec" option also needs to be enabled.
Instead of coding locally (e.g. with VS Code) and always copy/pasting the script contents to ioBroker's script directory, you can develop locally with type checking, formatting etc. but work directly on the ioBroker host.
Assuming you run ioBroker on docker:
- In your docker setup, mount a directory from the ioBroker host to the
container. E.g.
--volume /data/iobroker/scripts:/opt/iobroker/mirrored-scriptswhere/data/iobroker/scriptsis the directory on the host. - In the iobroker.javascript instance settings, specify to "Mirror scripts to
file path"
/opt/iobroker/mirrored-scripts/0(I include the javascript instance number at the end). The contents of this directory will then be made available on the host via the mount created in step 1. - There is a
mountscript that will connect to ioBroker's host via SSH and mount the remote directory to thehostsubdirectory. You can work normally. When you save files, these will be saved to the ioBroker host and the JavaScript adapter will reload the script accordingly. To specify a specific host runMOUNT=your-host ./mount.