Security News
RubyGems.org Adds New Maintainer Role
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
tessel-toggle-power
Advanced tools
@ https://github.com/gdibble/tessel-toggle-power @ https://www.npmjs.com/package/tessel-toggle-power
pin
or relay
then try this example:var togglePowerConfig = { use:'pin', pin:pin, pinNum:7 };
var togglePower = require('tessel-toggle-power').bind(togglePowerConfig);
togglePower(); // Toggle power on a pin or relay
togglePower(1); // or togglePower(true) // Manually set power On
togglePower(0); // or togglePower(false) // Manually set power Off
{
use: 'relay', // pass: 'relay' or 'pin', defaults to 'relay'
pin: pin, // pass defined pin or relay, which ever you want used
relay: relay, // ^
relayChn: 1, // pass: 1 or 2
debug: false // pass: true or false
}
debug:true
From running togglePower(1)
or togglePower(true)
:
togglePower:
* Setting pin to 1
* Pin set to 1 2016-05-23T04:17:26.259Z
From running togglePower(0)
or togglePower(false)
:
togglePower:
* Setting pin to 0
* Pin set to 0 2016-05-23T04:17:26.674Z
From running togglePower()
:
togglePower:
* Toggling relay
* Relay toggled
FAQs
Toggle a Tessel Relay module or Pin power On / Off
We found that tessel-toggle-power 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
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.
Security News
Research
Socket's threat research team has detected five malicious npm packages targeting Roblox developers, deploying malware to steal credentials and personal data.