Skip to content

An Adafruit Huzzah ESP8266-based pushbutton for OctoPrint

License

Notifications You must be signed in to change notification settings

OutsourcedGuru/IFTTT-Dash-Button

 
 

Repository files navigation

IFTTT Dash Button

An Adafruit Huzzah ESP8266-based pushbutton for OctoPrint

Overview

Push a big red button (BRB), pause running print job in OctoPrint. A low-power, portable BRB as a panic switch to quickly pause a job without having to open a browser, connect to the OctoPrint web application and then press that virtual button.

Part List

In order to program the ESP8266, it will be necessary to solder a six-pin section of the included header to the short end and a small four-pin header beginning on the GND/BAT+ long end. This should make it over to GPIO 13, the config pin for this project.

When running, only the smaller header is in use with two pins going to the Velleman VMA321 charging board. The leads from the battery are soldered to this charging board as well. Make sure to get the polarity correct: connectors marked with "+" are the powered side.

img_0049

Building and Flashing

I'll write up these instructions soon. They're a bit involved and I'll need to do some screencaps to make this easy.

Original Project Info, Before Conversion

More documentation on Instructables.

Features

  • GET Requests
    • Trigger Action
    • Monitor Battery
  • Power Saving
  • Reconfigurable

About

Inspired by Bitluni's Lab. This is a tiny dashbutton. That connects to IFTTT, and saves battery. The code has been extended to make it easy to use and universally configurable without the need for re-programming. Just flash the .bin file from the releases page and the SPIFFS data, enter configuration mode, set it up and you are ready to go.

GET Requests

When the button is pushed a GET request is made to a webpage.

Triggering Actions

Depending on the webpage, many different actions can be triggered by the button. I suggest hooking it up to the IFTTT Maker WebHooks.

Monitoring Battery

When a request is made, if the setting is set, the button will also pass on the battery voltage with your web request. This way you can monitor the battery's charge. The server will recieve:

yoururl.com/yourrequest/?VCC_Param.=VCC_Voltage

Power Saving

To keep the button down to a small size, a small battery needs to be used. To maintain a decent battery life, the ESP is almost always in deep-sleep mode. Pressing the button resets the ESP. The ESP reboots, makes a GET request and goes back to deep-sleep.

Configuration

You dont need to take apart your button to re-program the url or action. If you connect GPIO_13 to GND during startup the button will enter configuration mode. Then you can

  1. Connect to 'BRB-IFTTT' WiFi Access Point, with the password '123987654'
  2. Visit http://192.168.4.1 to open the configuration page
  3. After setting your values, click on the 'Save' button then the 'Restart' Configuration Interface
Description Version Author (Fork) Last Update
IFTTT-Dash-Button v1.0.1 OutsourcedGuru July 12, 2018
Donate Cryptocurrency
eth-receive btc-receive
Ethereum Bitcoin