DEV Community

Cover image for Add a "physical" Smart Button To Your Next Project

Add a "physical" Smart Button To Your Next Project

Wassim Chegham on July 19, 2019

Recently I had an idea that I wanted to explore: what if I could build a real button and make it trigger ANYTHING using simply an URL (webhook)? I...
Collapse
 
isaacdlyman profile image
Isaac Lyman

I've always wanted to build a big red lever that would run "git push".

I mean big. Like, I'd have to mount it on the wall and the hinge would squeal and hiss when you pull it. That would make my job so epic.

This post looks like a great place to get started.

Collapse
 
megazear7 profile image
megazear7

While I worked at a certain consulting agency, every time we did a production deployment we played The Imperial March from Star Wars. Epic stress is better than mundane stress haha.

Collapse
 
jsn1nj4 profile image
Elliot Derhay

First shell script line supposed to be #!/bin/bash or #!/bin/sh?

Anyway, this looks like a really fun gadget. Wish I could make one myself (don't have the parts and, quite frankly, afraid I'll break them during assembly).

Thanks for sharing!

Collapse
 
tpenguinltg profile image
tPenguinLTG

I'm inclined to believe that #!/bin/ash is correct. ash is the Almquist shell, which is often used in embedded systems because it's small and fast.

Collapse
 
jsn1nj4 profile image
Elliot Derhay

Ah didn't know that! Thanks! And that does make sense for this application.

Collapse
 
ben profile image
Ben Halpern

Your turn...

This is such a great post and I promise to give it a try! My whole life in tech is finding stuff like this super cool and never following through. But this time will be different, I swear!

Collapse
 
wassimchegham profile image
Wassim Chegham

Oh wow! I'm so excited to hear that! Please let me know if you need any more details about the setup. I did skip some parts on purpose to keep this post as short as possible. But I am happy to provide even more details if needed.

Looking forward to seeing what you are gonna build 😍

Collapse
 
sjsentme profile image
dan f

Great little project, thanks for sharing !

Is there a way to connect it using ethernet instead of wifi ? Other than the ethernet board which isn't available right now in my country.

Or maybe another solution is more appropriate ? Not the onion ?

Basically I want a button just like that but connected over ethernet instead of wifi. I saw the module WT32-ETH01 might do the trick ?

Thanks for reading me !

Collapse
 
xowap profile image
Rémy 🤖

I need those. Lots and lots of those. It's fucking awesome.

Collapse
 
tonyorozcor profile image
Tony Orozco

Wow! I really need to know more from this Omega2 things... where to buy how to get started? what is the basic setup needed to get this running?

Collapse
 
ahmadawais profile image
Ahmad Awais ⚡️

Nicely done! 👏

Collapse
 
stenbaek profile image
Simon Stenbæk Madsen • Edited

Thats a great Idea! I'm gonna make one for each app I have, and hook it up with a script to put it into maintenance mode in a hurry.

Collapse
 
wassimchegham profile image
Wassim Chegham

Oh! Nice idea. I haven't thought about the maintaince mode.