Skip to content

Instantly share code, notes, and snippets.

@fffonion
fffonion / setup-dashbutton.py
Created September 28, 2019 22:32
Setting up dash button without Amazon App
import requests
import re
import sys
# Initial work from: https://mpetroff.net/2016/07/new-amazon-dash-button-teardown-jk29lp/
h = requests.Session()
BASE_URL = "http://192.168.0.1"
@martinlroth
martinlroth / relay.py
Last active February 4, 2025 18:26
Simple relay control for the Denkovi USB Relay Module 4 Channels, for Home Automation - v2
#!/usr/bin/python
#
# Simple relay control for the Denkovi USB Relay Module 4 Channels, for Home Automation - v2
# http://denkovi.com/usb-relay-board-four-channels-for-home-automation-v2
#
# Better tools are offered on http://denkovi.com but they need an internet
# connection, and are not open source.
#
__author__ = "Martin Roth"