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

node-red-node-piliter

v0.0.17

Published

A Node-RED node to drive a Raspberry Pi Pi-LITEr 8 LED board.

Downloads

10

Readme

node-red-node-piliter

A Node-RED node to control a Pimorini Pi-LITEr 8 LED add-on board for a Raspberry-Pi.

Install

Run the following command in your Node-RED user directory - typically ~/.node-red

npm install node-red-node-piliter

Pre-reqs

Requires the python RPi.GPIO library v0.58 (or better) to be installed in order to work. See the RPi.GPIO site for details on how to do this.

This is built into most recent Raspbian versions so no install should be necessary - but if necessary

$ sudo apt-get update
$ sudo apt-get install python-rpi.gpio python3-rpi.gpio

Usage

Raspberry Pi-LITEr output node. The Pi-LITEr must be fitted.

Operates in one of 5 different modes :

  • Byte Mode - expects a value between 0 and 255, and each of the LEDs represent 1 bit.
  • Meter Mode - expects a value between 0 and 8, the led lit corresponds to the input value - like a meter needle.
  • Bar Mode - expects a value between 0 and 8, similar to meter - but all the leds up to the value are turned on - like a mini bar chart.
  • All LEDs Mode - expects a 1 or 0 - turns on and off ALL the LEDs
  • Object Mode - expects a object specifying the LED and state eg. {led:3,state:0} to set LED3 off.

Requires the RPi.GPIO library installed in order to work.

In order to access the GPIO the nrgpio.py command (installed as part of this package) must be run as root (sudo). The default Pi user can do this so it "should just work" - however if you are running Node-RED as not the Pi user then you may need to give your user sudo rights - or specifically sudo rights to python.