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

pwinstatusblinkstick

v0.0.10

Published

Program to show CPU usage and network connectivity status through blinkstick

Downloads

9

Readme

pWinStatusBlinkStick

Show CPU usage and network connectivity status through BlinkStick.


Getting Started

This will only work with a patched version of the BlinkStick node module. See this pull request for details.

  1. Install pWinStatusBlinkStick via NPM.

npm install pwinstatusblinkstick

Optionally: rename pwinstatusblinkstick to pWinStatusBlinkStick: npm is unable to handle the complexity of uppercase characters in a module name. Node.js on Windows does not have this problem, so renaming the folder is not required for you to use the module.

  1. Run pWinStatusBlinkStick.

node pWinStatusBlinkStick


Help

Usage:
    pWinStatusBlinkStick.js [serial-number [serial-number [...] ] ] [options and switches]

Parameters:
    serial-number (string)
        Serial numbers of BlinkSticks to use
Options:
    --cpu-average=uint
        Interval over which CPU usage is averaged in ms
        default: 2000
    --cpu-heartbeat=uint-uint
        Interval of the "heartbeat" for idle and 100% CPU usage in ms
        default: [3000,1000]
    --cpu-polling=uint
        Interval between CPU usage checks in ms
        default: 40
    --frame-rate=uint
        Interval between BlinkStick color updates in ms
        default: 41
    --net-average=uint
        Interval over which net latency is averaged in ms
        default: 5000
    --net-polling=uint
        Interval between net connection checks in ms
        default: 100
    --net-timeout=uint
        Timeout for net connections in ms
        default: 500
    --net-url=string
        URL to request for net connection tests
        default: "http://clients3.google.com/generate_204"
    --night-time-brightness=float01
        Night time brightness as compared to day time brightness
        default: 0.25
Switches:
    --dual-led
        Show CPU usage and Network latency on alternating LEDs (requires WS2812 mode)
    --mode-inverse
        Use inverse mode for IKEA dioder attached to BlinkStick Pro
    --mode-multi-led
        Use WS2812 mode for multiple LEDs attached to a BlinkStick Pro
    --mode-normal
        Use normal mode for single LED attached to BlinkStick/BlinkStick Pro
    --show-blinksticks
        Output the serial numbers and modes of all selected BlinkSticks

Notes

You may be interested in pBackground, which will allow you to run a Node.js script such as pWinStatusBlinkStick in the background, without a console.

C:\>npm install pbackground -g
...
C:\>node-bkg pWinStatusBlinkStick

You can add a link to node-bkg pWinStatusBlinkStick to the Startup folder in the start menu to run the script in the background as soon as you log into your computer.


License

This code is licensed under CC0 v1.0 Universal.