# lifx-auto-curve

> Automatically adjust your LIFX lights to a preset curve.

Latest version **1.0.4** (published 2018-12-07) · ISC license · 0 weekly downloads

## Install

```sh
npm install lifx-auto-curve
pnpm add lifx-auto-curve
yarn add lifx-auto-curve
bun add lifx-auto-curve
```

## 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.0.4 |
| Published | 2018-12-07 |
| First published | 2018-12-07 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 8.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Rob Epler |
| Maintainers | repler |

## Links

- npm: https://www.npmjs.com/package/lifx-auto-curve
- npm.io page: https://npm.io/package/lifx-auto-curve

## Dependencies (2)

- [suncalc](https://npm.io/package/suncalc.md) ~1.8.0
- [node-lifx](https://npm.io/package/node-lifx.md) ~0.8.0

## Recent versions

- 1.0.4 (latest) — 2018-12-07
- 1.0.3 — 2018-12-07
- 1.0.2 — 2018-12-07
- 1.0.1 — 2018-12-07
- 1.0.0 — 2018-12-07

## README

# lifx-auto-curve

lifx-auto-curve will automatically adjust brightness and temperature of your LIFX lights according to a curve you set against the position of the sun for your longitude and latitude.

## Installation

Use npm to install

```bash
npm install lifx-auto-curve
```

## Usage

Adjust these variables at the top of lifx-auto-curve.js to your liking.

```python
var MY_LATITUDE = 39.952778;
var MY_LONGITUDE = -75.163611;
// Philadelphia = 39.952778, -75.163611

var EXTEND_NIGHT = true;
var EXTEND_NIGHT_BY_MINUTES = 106;

// set your brightness and color presets here
var Presets = {};
Presets.Dawn = { kelvin: 2500, brightness: 75 };
Presets.Sunrise = { kelvin: 3500, brightness: 100 };
Presets.SunsetStart = { kelvin: 3000, brightness: 100 };
Presets.Dusk = { kelvin: 2500, brightness: 100 };
Presets.Night = { kelvin: 2500, brightness: 85 };
Presets.Nadir = { kelvin: 2000, brightness: 10 };
```

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