Dashhandler is a webservice, written in Go, and utilizing gin for route handling, intended to be used as a target endpoint for a router running dnsmasq. Dnsmasq can be configured, using the --dhcp-script
switch, to run a script on DHCP events passing along information about the event type, assigned IP address, MAC address, and hostname (if available) of any devices that request DHCP addresses. Dashhandler can then be accessed via a GET request, passing along that information, where it can be processed for arbitrary actions. In this case, dashhandler is specifically intended to handle Amazon Dash button presses.
-
Notifications
You must be signed in to change notification settings - Fork 0
A webservice in Go, using gin-gonic for routing, to handle dnsmasq-generated DHCP events, primarily targeting the Amazon Dash button, but extensible to any IP-based devices on your network. This is intended as a locally-hosted LAN endpoint reachable by a router running dnsmasq configured with a custom event script for DHCP events.
License
albeec13/dashhandler
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
A webservice in Go, using gin-gonic for routing, to handle dnsmasq-generated DHCP events, primarily targeting the Amazon Dash button, but extensible to any IP-based devices on your network. This is intended as a locally-hosted LAN endpoint reachable by a router running dnsmasq configured with a custom event script for DHCP events.
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published