# pinoccio-bridge

> use a field scout with pinoccio hq over serial

Latest version **0.1.0** (published 2015-02-24) · 0 weekly downloads

## Install

```sh
npm install pinoccio-bridge
pnpm add pinoccio-bridge
yarn add pinoccio-bridge
bun add pinoccio-bridge
```

## 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.1.0 |
| Published | 2015-02-24 |
| First published | 2014-06-17 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Author | Ryan Day |
| Maintainers | soldair |

## Links

- npm: https://www.npmjs.com/package/pinoccio-bridge
- Repository: https://github.com/soldair/pinoccio-bridge
- Issues: https://github.com/soldair/pinoccio-bridge/issues
- npm.io page: https://npm.io/package/pinoccio-bridge

## Dependencies (4)

- [split](https://npm.io/package/split.md) ~0.3.0
- [through](https://npm.io/package/through.md) ~2.3.4
- [pinoccio-serial](https://npm.io/package/pinoccio-serial.md) ~0.1.6
- [pinoccio-server](https://npm.io/package/pinoccio-server.md) ~0.0.2

## Recent versions

- 0.1.0 (latest) — 2015-02-24
- 0.0.7 — 2014-09-03
- 0.0.6 — 2014-09-02
- 0.0.5 — 2014-08-30
- 0.0.4 — 2014-08-30
- 0.0.3 — 2014-07-01
- 0.0.2 — 2014-06-22
- 0.0.1 — 2014-06-20
- 0.0.0 — 2014-06-17

## README

pinoccio-bridge
===============

use a field scout with pinoccio hq. 

plug on scout into your computer and control your whole troop without a wifi backpack


```js

var bridge = require('pinoccio-bridge');

// bridge: 
// args
//   the com port
//   optional options to pass through to https://github.com/soldair/pinoccio-server/blob/master/bridge.js#L12
//   ready callback

bridge('/dev/ttyACM0',{host:'localhost'},function(err,b){


  if(err) console.error(err);
  if(!b) throw new Error("could not connect to scout for some reason. is something else connecting via serial? or is it a different com port?")

  console.log('bridge online');

  // turn the light blue every time someone connects
  // bridgeCommand runs copmmand on the scout that is the bridge.
  b.bridgeCommand('led.blue;',function(err,data){
    if(err) throw err;
    console.log('BRIDGE SCOUT READY!');
  });

  // run commands on any scouts in this mesh.
  b.command(3,'led.red',function(err,data){
    // set the led to red on scout 3 in this troop.
  })

});


```

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