# piglow-clock

> visualize a binary clock via the pimoroni piglow

Latest version **1.1.0** (published 2016-09-13) · MIT license · 0 weekly downloads

## Install

```sh
npm install piglow-clock
pnpm add piglow-clock
yarn add piglow-clock
bun add piglow-clock
```

Provides the command `piglow-clock`.

## 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.1.0 |
| Published | 2016-09-13 |
| First published | 2013-10-22 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Manuel Ernst |
| Maintainers | zaphod1984 |
| Keywords | pimoroni, piglow, raspberry pi, led, i2c, binary clock, clock |

## Links

- npm: https://www.npmjs.com/package/piglow-clock
- Repository: https://github.com/seriousManual/node-piglow-clock
- Homepage: https://github.com/seriousManual/node-piglow-clock#readme
- Issues: https://github.com/seriousManual/node-piglow-clock/issues
- npm.io page: https://npm.io/package/piglow-clock

## Dependencies (4)

- [ptic](https://npm.io/package/ptic.md) ~0.2.0
- [piglow](https://npm.io/package/piglow.md) ^3
- [depugger](https://npm.io/package/depugger.md) ~0.1.3
- [optimist](https://npm.io/package/optimist.md) ~0.6.0

## Recent versions

- 1.1.0 (latest) — 2016-09-13
- 1.0.3 — 2016-08-29
- 0.5.3 — 2014-03-30
- 0.5.2 — 2013-12-05
- 0.5.1 — 2013-11-12
- 0.5.0 — 2013-11-11
- 0.4.1 — 2013-11-11
- 0.4.0 — 2013-11-10
- 0.3.2 — 2013-11-05
- 0.3.1 — 2013-10-22
- 0.3.0 — 2013-10-22

## README

# node-piglow-clock

[![Build Status](https://travis-ci.org/seriousManual/node-piglow-clock.png)](https://travis-ci.org/seriousManual/node-piglow-clock)

[![NPM](https://nodei.co/npm/piglow-clock.png)](https://nodei.co/npm/piglow-clock/)

[![NPM](https://nodei.co/npm-dl/piglow-clock.png?months=3)](https://nodei.co/npm/piglow-clock/)


node-piglow-clock uses your piglow to show a binary clock. one leg is used for the seconds, one leg for the minutes, one arm for the hours.
details for setting up your system can be found on the [node-piglow](https://github.com/seriousManual/node-piglow) page.

In action timelapse video: http://www.youtube.com/watch?v=FgzkyBT-Zkw

## Installation

```
$ npm install piglow-clock -g
```

## Run

### Command Line
```
$ piglow-clock [-b brightness] [-d debug]
```

Parameter:

- `brightness`: specifies how bright the LED should shine. range: 0-255, default: 10
- `debug`: on each tick the time is written to the console

#### End

End the `piglow-clock` process via `ctr+c` or via sending a `SIGINT` signal, it will reset the piglow LEDs then.

### From your program:

```javascript
var piglowClock = require('piglow-clock');

var options = {
  brightness: 255 //the maximum brightness, defaults to 10
};

piglowClock.start(options);

process.on('SIGINT', end);

function end() {
    //resets all leds
    piglowClock.stop(function() {
        process.exit();
    });
}
```

## made with
- **node-piglow** https://github.com/zaphod1984/node-piglow
- **optimist** https://github.com/substack/node-optimist

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