npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

lifx-client

v2.0.3

Published

A cli application for talking to the official lifx api

Downloads

16

Readme

lifx-icon

lifx client

npm version Build Status Dependency Status Known Vulnerabilities

Control your lifx system through the command line.

Install

npm install -g lifx-client

Usage

turn all lights on;

lifx -1

turn all lights off:

lifx -0

turn group:Room on:

lifx -g 'Room' -1

turn group:Room to the color blue:

lifx -g 'Room' -C blue

turn group:Room to the color limegreen with a brightness of 20% and saturation of 42%:

lifx -g 'Room' -C limegreen -B 20 -S 42

pulse group:Room to the color limegreen from the color red with a brightness of 20% and saturation of 42%:

lifx -g 'Room' -p -C limegreen -f red -B 20 -S 42

Try using aliases:

alias room="lifxcli -g 'Room'"

Configuration

This client uses rc-yaml to grab config options. you can use rc files for specifying default cli arguments. rc will look for rc files with the name .lifxrc, so for instance you can store your lifx config in ~/.lifxrc.

More info on where rc looks is available here.

( I'd suggest saving your token here )

token: [LIFX_API_TOKEN]
duration: 2 // default the duration to 2 seconds  

command line args

Usage: node lifx

  -k, --token=STRING      the token in plainText
  -T, --toggle            toggle the power of the bulbs
  -1, --on                turn on the lights
  -0, --off               turn off the lights
  -C, --color=STRING      set color (blue, red, pink...)
  -H, --hue=FLOAT         set color using hue (0-360)
  -K, --kelvin=FLOAT      set kelvin (0-100)
  -B, --brightness=FLOAT  set brightness (0-100)
  -S, --saturation=FLOAT  set saturation (0-100)
  -I, --infrared=FLOAT    set infrared (0-100)
  -i, --id=STRING         select bulb(s) by id
  -l, --label=STRING      select bulb(s) by label
  -g, --group=STRING      select bulb(s) by group name
  -L, --location=STRING   select bulb(s) by location name
  -b, --breathe           make the lights do a breathe effect
  -p, --pulse             make the lights do a pulse effect
  -d, --duration=FLOAT    duration/period of time for transitions
  -P, --persist           If true leave the last effect color. (breathe, pulse)
  -f, --from=STRING       The color to start the effect from. defaults to current color (breathe, pulse)
  -y, --cycles=FLOAT      The number of times to repeat the effect. (breathe, pulse)
  -e, --peak=FLOAT        Defines where in a period the target color is at its maximum. (breathe)
  -c, --scene=UUID        activate the scene via uuid
      --listScenes        show the currently known set of scenes
  -a, --status            show the status of the lights
  -h, --help              display this help
  -n, --notify            provide a system notification with details about the changes
  -v, --verbose           Log out verbose messages to the screen
  -V, --version           show the current version