# node-x10-comm

> Communicate with x10 modules via a CM17A interface

Latest version **1.2.1** (published 2017-12-04) · ISC license · 0 weekly downloads

## Install

```sh
npm install node-x10-comm
pnpm add node-x10-comm
yarn add node-x10-comm
bun add node-x10-comm
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.2.1 |
| Published | 2017-12-04 |
| First published | 2015-12-15 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 0.10.0 |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Carl Irving |
| Maintainers | teledemic |
| Keywords | x10, automation, firecracker, cm17a |

## Links

- npm: https://www.npmjs.com/package/node-x10-comm
- Repository: https://github.com/teledemic/node-x10-comm
- Homepage: https://github.com/teledemic/node-x10-comm#readme
- Issues: https://github.com/teledemic/node-x10-comm/issues
- npm.io page: https://npm.io/package/node-x10-comm

## Dependencies (1)

- [serialport](https://npm.io/package/serialport.md) 4.0.6

## Recent versions

- 1.2.1 (latest) — 2017-12-04
- 1.2.0 — 2017-06-19
- 1.1.1 — 2016-12-02
- 1.1.0 — 2016-12-02
- 1.0.7 — 2016-01-20
- 1.0.6 — 2016-01-19
- 1.0.5 — 2016-01-12
- 1.0.4 — 2015-12-17
- 1.0.3 — 2015-12-16
- 1.0.2 — 2015-12-15
- 1.0.1 — 2015-12-15
- 1.0.0 — 2015-12-15

## README

[![Dependency Status](https://david-dm.org/teledemic/node-x10-comm.svg)](https://david-dm.org/teledemic/node-x10-comm)

# node-x10-comm
Communicate with X10 modules via a CM17A FireCracker interface
## Usage
```js
var x10 = require('node-x10-comm');
var comm_name = "COM3";
var house_code = 2; //C
var module_code = 0; //01

x10.listPorts(function (ports) {
  console.log("Available ports:");
  console.log(ports);
}, function (err) {
  console.log("Unable to enumerate available ports");
});

var device = x10.device();
device.open(comm_name, function () {
  device.sendCommand(house_code, module_code, 1, function () {
    console.log("Turned on device C01");
  }, function (err) {
    console.log("Unable to send to device");
  });
}, function (err) {
  console.log(err);
});
```

Or use promises or async/await:
```js
await device.open(comm_name);
await device.sendCommand(2, 0);
```

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