minodisk / dashen

Listen the Amazon Dash Button is pressed in the intranet.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

dashen Codeship Status for minodisk/dashen Go Report Card codecov GoDoc MIT License

Listen the Amazon Dash Button is pressed in the intranet.

Usage

go get -u github.com/minodisk/dashen
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)
	}
}

About

Listen the Amazon Dash Button is pressed in the intranet.

License:MIT License


Languages

Language:Go 96.8%Language:Shell 3.2%