https://github.com/minodisk/dashen
Listen the Amazon Dash Button is pressed in the intranet.
https://github.com/minodisk/dashen
dash-button dashbutton
Last synced: 11 months ago
JSON representation
Listen the Amazon Dash Button is pressed in the intranet.
- Host: GitHub
- URL: https://github.com/minodisk/dashen
- Owner: minodisk
- License: mit
- Created: 2017-03-16T15:58:34.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-03-18T07:18:19.000Z (almost 9 years ago)
- Last Synced: 2025-02-10T22:48:00.477Z (about 1 year ago)
- Topics: dash-button, dashbutton
- Language: Go
- Homepage:
- Size: 17.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# dashen [](https://app.codeship.com/projects/208467) [](https://goreportcard.com/report/github.com/minodisk/dashen) [](https://codecov.io/gh/minodisk/dashen) [](https://godoc.org/github.com/minodisk/dashen) [](LICENSE)
Listen the Amazon Dash Button is pressed in the intranet.
## Usage
```sh
go get -u github.com/minodisk/dashen
```
```go
package main
import (
"log"
"github.com/minodisk/dashen"
)
func main() {
d := dashen.New()
d.Subscribe("00:00:00:00:00:00", func() {
log.Println("detected")
})
if err := d.Listen(); err != nil {
panic(err)
}
}
```