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

raspberrypi-piwebradio

v1.27.0

Published

Control and monitor your PiWebRadio DIY device

Downloads

35

Readme

raspberrypi-piwebradio

The PiWebRadio raspberry core app

Run dev

npm run dev

Run prod

npm start

API

  • constructor(config={})

    • config : Object - (optional) {
      • volumeKnobClkPin : int - The volume knob clock pin. default = 11
      • volumeKnobDataPin : int - The volume knob data pin. default = 13
      • volumeKnobSwitchPin : int - The volume knob switch pin. default = 15
      • channelKnobClkPin : int - The channel selector knob clock pin. default = 16
      • channelKnobDataPin : int - The channel selector knob data pin. default = 18
      • channelKnobSwitchPin : int - The channel selector knob switch pin. default = 22
      • lcdWidth : int The width resolution of your lcd screen. default = 128,
      • lcdHeight : int The height resolution of your lcd screen. default = 64,
      • lcdAddress : hex The address used by your lcd screen. default = 0x3C,
      • lcdI2CBus : int The i2c bus used by your lcd screen. default = 1,
      • startingVolume : int [0-100] The volume set when you plug your radio. default = 50,
      • volumeLimiter : int [0-100] Set a maximum volume. If you have power issues or just want to limit the volume, this will adjust and create a scale so the knob user still deals with a 0-100 range. default = 80
      • radios : array[{name, url}] - The starting radios object arrays. (radio object example : {name:'MyRadio', url:'http://myradio.fr/stream'}). Default is an empty array. }
  • refreshRadios(radios) Will replace the radios array with the one given in parameter.

    • radios : []string An array of radio object.

Default wiring

  • Volume knob + : 1
  • Volume knob - : 9
  • Volume knob CLOCK : 11
  • Volume knob DATA : 13
  • Volume knob SWITCH : 15
  • Select knob + : 17
  • Select knob - : 14
  • Select knob CLOCK : 16
  • Select knob DATA : 18
  • Select knob SWITCH : 22
  • Screen + : 4
  • Screen - : 6
  • Screen SDA : 3
  • Screen SCL : 5