
Company News
Socket Named Top Sales Organization by RepVue
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.
sensortag-shake
Advanced tools
Simple shake detection library for the TI SensorTag based on the popular SensorTag package.
npm install --save sensortag-shake
var SensorTagShake = require('sensortag-shake');
var sensortagshake = new SensorTagShake('+x');
sensortagshake.on('shake', function(data){
console.log("Shook with ", data.value, "at", data.time);
});
eg : var sensortagshake = new SensorTagShake(direction, {sensorTag : sensorTagObj});
direction: String - The direction of shake to detect. This is a string with sign (+,-) and a coordinate (x,y,z). For eg. '+x'.options : Object - An options object with the folloing optional properties.
sensorTag : Object - A SensorTag object, which has already discovered and connected to a SensorTag hardware. This allows a SensorTag object to be used with multiple libraries. If this optional value is not specified, this constructor will re-discover and re-connect to the SensorTag.eg : sensortagshake.on('shake', function(data){}
shake event, which contains a data object as defined below.data : Object - Has the following properties.
value : Number - Number indicating the final accelerometer value when the shake was detected.time : Number - Timestamp (msec) of the detection of the shake. This has (based on the SensorTag HW) minimum granularity of 200msec.FAQs
Simple Shake Detector for the TI SensorTag
We found that sensortag-shake 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.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.