# electron-shimmer

> Electron library to access the Shimmer data from the official C# API

Latest version **0.0.5** (published 2016-01-28) · 0 weekly downloads

## Install

```sh
npm install electron-shimmer
pnpm add electron-shimmer
yarn add electron-shimmer
bun add electron-shimmer
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.5 |
| Published | 2016-01-28 |
| First published | 2016-01-02 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 (+5 in 1 direct dependencies) |
| Install scripts | no |
| Author | jwynveen |
| Maintainers | jwynveen |
| Keywords | electron, shimmer |

## Links

- npm: https://www.npmjs.com/package/electron-shimmer
- Repository: https://github.com/mpirik/shimmer
- Homepage: https://github.com/mpirik/shimmer#readme
- Issues: https://github.com/mpirik/shimmer/issues
- npm.io page: https://npm.io/package/electron-shimmer

## Dependencies (2)

- [lodash](https://npm.io/package/lodash.md) ^3.10.1
- [edge-atom-shell](https://npm.io/package/edge-atom-shell.md) ^5.0.0

## Recent versions

- 0.0.5 (latest) — 2016-01-28
- 0.0.4 — 2016-01-27
- 0.0.3 — 2016-01-27
- 0.0.2 — 2016-01-26
- 0.0.1 — 2016-01-02

## README

# shimmer
Nodejs library to access the Shimmer data from the official C# API

Still very early / experimental.

```
var Shimmer = require('electron-shimmer');

var shimmer = new Shimmer({measurementTypes: ["ACCELEROMETER", "GYROSCOPE", "QUATERNION"]});

//listen for device found event and connect
shimmer.on('found', (devices) => {
  devices.forEach((device) => {
    shimmer.connect(device.id, device.name, device.port);
  });
});

//listen for connection and start streaming
shimmer.on('connect', (device) => {
  console.log("Shimmer connected");
  shimmer.startStream();
});

//listen for data
shimmer.on('data', (data) => {
  console.log(data);
});

//look for devices to connect to
shimmer.detect();

//close the connection after 5 seconds
setTimeout(function(){
    shimmer.disconnect();
    console.log("Shimmer disconnected");
}, 5000);
```

---
_Source: https://npm.io/package/electron-shimmer · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
