1.0.4 • Published 5 years ago

lifx-auto-curve v1.0.4

Weekly downloads
-
License
ISC
Repository
-
Last release
5 years ago

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

npm install lifx-auto-curve

Usage

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

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 };
1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago