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

pimatic-dash-button

v0.2.1

Published

Amazon dash button plugin for pimatic

Downloads

6

Readme

Build Status Version downloads

pimatic-dash-button

pimatic-dash-button is a pimatic plugin that enables Amazon's dash button to be used as push button device.

Installation

Since this plugin uses node-pcap, libpcap-dev must be installed on a raspberry pi:

sudo apt-get install libpcap-dev

To install the plugin just add the plugin to the config.json of pimatic:

{
  "plugin": "dash-button"   
}

This will fetch the most recent version from npm-registry on the next pimatic start and install the plugin.

Dash Button installation

Follow the instructions in the Amazon app to configure your button, to connect to your wifi but don't select a product in the last step. Just exit the app. Optionally disable the internet access for your dash button in your router configuration, otherwise the Amazon app might complain the incomplete setup of your dash button, every time you press it.

Configuration

pimatic-dash-button supports the device discovery feature of pimatic (as of version 0.9.x). To create a new dash button device, just click on "Discover devices" in the Devices section of pimatic. Once the discovery mode is on, press the dash button and it should show up as a new discovered device. If you have any issues discovering your dash button please report here.

To manually add a dash button to your configuration just add it to the devices section including the mac address:

"devices": [
  {
    "id": "dash_button",
    "class": "DashButtonDevice",
    "name": "Dash Button",
    "address": "aa:bb:cc:dd:ee:ff"
  }
]

If you have multiple network interfaces on your hardware and pimatic has issues finding your dash button, then configure the plugin to explicitly to use a defined interface.

{
  "plugin": "dash-button",
  "interface": "eth0"   
}

Sponsoring

Do you like this plugin? Then consider a donation to support development.

Flattr pimatic-dash-button

Changelog

0.2.0

  • #7 Normalize MAC address
  • #6 Extend vendor mac ids

0.1.0

  • #2 Dash button device acts like a ButtonsDevice now, fixes issues with pimatic-mobile-frontend. Device can now be used in UI, too.
  • #3 Decreased buffer size of pcap to 1 MB
  • #4 Filtering for mac addresses directly in libpcap on kernel level

0.0.2

  • bugfix for mac address filtering

0.0.1

  • initial release

Credit

Most of the dash button discovery code was inspired by node-dash-button and node-pcap.