Skip to content

mgeitz/npstat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NPStat

NCurses Neopixel Status Indicator

Capture events to process as a neopixel color sequence.

NPStat

A new local session event, shown as a blue color wipe

NPStat

NCurses Console

NPStat

NCurses Console Help

Dependencies

Debian

Install dependencies

$ apt-get install build-essential python-dev git scons swig python-yaml

Install rpi_ws281x

$ git clone https://github.com/jgarff/rpi_ws281x.git
$ cd rpi_ws281x
$ scons
$ cd python
$ sudo python setup.py install

Getting Started

Clone NPStat

$ git clone https://github.com/mgeitz/npstat.git $HOME/.npstat

Run NPStat

NPStat must be run as root

$ sudo python npstat.py  -i [input_pin] -b [brightness 1-255] -l [led_count]

All arguments are optional, defaults are sourced from config.yml

Examples

$ sudo python npstat.py -i 18 -b 200 -l 12
$ sudo python npstat.py
$ sudo python npstat.py --help

Arguments

Argument Description
-i or --input Neopixel input pin
-b or --brightness Starting brightness
-l or --leds Neopixel LED count
-h or --help Display usage

Commands

Command Description
F2 Set light profile to Status Indicator - wipe
F3 Toggle breath
PgUp Increase brightness
PgDn Decrease brightness
F11 Refresh screen
F12 Toggle help display

Contributing

View the section on how to contribute