1.0.0 • Published 5 years ago

huelog v1.0.0

Weekly downloads
1
License
ISC
Repository
github
Last release
5 years ago

huelog

Tiny CLI utility that transforms Phillips Hue API lights status responses to CSV logs, keeping only state information.

See test/example-transformed.csv for an example output.

Setup

npm install huelog -g

Usage

FlagShortcutTypeDescription
--header-HboolForce column headers to be printed in output
--output-ofileWrite to FILE rather than stdout
--skip-sboolSkip logging of duplicated status responses
--time-tdatePass a time to be logged instead of current time

huelog doesn't collect data by itself, it gets feed with data from other sources:

Log to stdout with column headers

$ hueadm lights --json | huelog --header

Log to file

$ hueadm lights --json | huelog --output ./huelog.csv

Data will be appended if the output file exists.

Note

In the examples above I'm piping in data using hueadm, a CLI to phillips hue that allows for easy management of your lights and much more.

You can however use any tool you want to collect the lights data, input just has to be a valid Phillips Hue API response in JSON for the /lights endpoint, e.g.:

1.0.0

5 years ago

0.1.0

7 years ago