albeec13 / dashhandler

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.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

dashhandler

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.

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.

License:MIT License


Languages

Language:Go 100.0%