New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

dashed

Package Overview
Dependencies
Maintainers
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dashed

  • 0.3.0
  • Rubygems
  • Socket score

Version published
Maintainers
2
Created
Source

Dashed

Dashed is a Ruby library for interacting with Amazon Dash button presses.

Installation

Just add dashed to your Gemfile and then run bundle install.

Dashed has to be run with root permissions in order to listen to your network devices to pick up your dash button.

Usage

Dashed includes the find_dash executable which looks for Amazon Dash buttons based on their mac address. Once you've found your Dash buttons Mac Address you can get started.

ex: sudo find_dash dummylan0 where dummylan0 is the wifi interface to listen on. Ensure your Amazon Dash button is connected to the same network.

Here is an example implementation:

Dashed::Button.new("ff:ff:ff:ff:ff", "dummylan0").on_press do
  puts "I was pressed!"
end

Please be aware that on_press blocks the execution of the current thread. If you don't want it to block please create the button in its own thread.

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/kenyonj/dashed.

FAQs

Package last updated on 02 Oct 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc