
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
homebridge-script2-denko
Advanced tools
script plugin for homebridge: https://github.com/denkomanceski/homebridge
Execute custom scripts via homekit apps.
Core of the code written by @xxcombat. Great plugin that has served me well. Original plugin homebridge-script.
Because it appears that the original homebridge-script plugin has stopped being maintained and supported and PR's are also not being accepted. I've updated it to allow for executing a state script or work by checking for the existance of a file. Thanks to @ybizeul for the code snipet that allows for state.sh to execute. This plugin also works with the latest file-exists that broke the original plugin. While this fork depends on file-exists there is no need to install it seperately for this fork, as i've included it as a dependency.
(Requires node >=6.0.0)
npm install -g homebridge
npm install -g homebridge-script2
For autostart homebridge with OSX copy com.homebridge.startup.plist to /Library/LaunchDaemons
Homebridge-script configuration parameters
Name | Value | Required | Notes |
---|---|---|---|
accessory | "Script2" | yes | Must be set to "Script2" and is required |
name | (custom) | yes | Name of accessory that will appear in homekit app and is required |
on | (custom) | yes | Location of script to execute the on action and is required |
off | (custom) | yes | Location of script to execute the off action and is required |
fileState | (custom) | fileState or state is required (see note) | Location of file that flags on or off current state. If this is configured the plugin will use the existence of this file to determine the current on or off state. If file exists, accessory is determined to be on. If file does not exist, accessory is determined to be off. This is not required. But if set, it will override using the state script. fileState or state must be configured. |
state | (custom) | fileState or state is required (see note) | Location of script to execute the current state check. It must output to stdout the current state. It is not required if fileState is being used instead. fileState or state must be configured. |
on_value | (custom) | no* (see note, default set to "true") | Used in conjunction with the state script. If using the state script this is the value that will be used to match against the state script output. If this value matches the output, then the accessory will be determined to be on. Required if using state script. |
"accessories": [
{
"accessory": "Script2",
"name": "RPC3 Socket 1",
"on": "/var/homebridge/rpc3control/on.sh 1",
"off": "/var/homebridge/rpc3control/off.sh 1",
"state": "/var/homebridge/rpc3control/state.sh 1",
"fileState": "/var/homebridge/rpc3control/script1.flag",
"on_value" : "true"
}
]
"accessories": [
{
"accessory": "Script2",
"name": "Alarm of bike",
"on": "~/on.sh",
"off": "~/off.sh",
"state": "~/state.sh",
"on_value" : "true"
}
]
FAQs
script plugin for homebridge: https://github.com/denkomanceski/homebridge
The npm package homebridge-script2-denko receives a total of 1 weekly downloads. As such, homebridge-script2-denko popularity was classified as not popular.
We found that homebridge-script2-denko demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.