Skip to content

caseprince/git-gong

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#Git Gong ###GitHub Webhooks + Spark Core + Heroku

This project was inspired by the presence of Spark Cores in our office and the fact that GitHub has webhooks. Heroku proved to be the perfect glue to bring everything together.

###Instructions:

  1. Get a Spark Core or Photon. Register, claim-your-device, & flash HelloWorld via wifi.
  2. Connect your servo and calibrate - Play with angles to determine min/max - write down your angle setting when you encounter “servo-growling” so you can avoid that high-voltage state. Choose a generous angle range > 90° that has plenty of buffer between min and max. (eg: 30° - 160°) Here’s our quick-n-dirty spark code: https://github.com/caseprince/git-gong/blob/master/spark-gong.ino
  3. Mount servo on rube-goldberg contraption w/ bell & clapper, keeping your angle range in mind.
  4. Sign up for a free Heroku account and deploy something like this: https://github.com/caseprince/git-gong/blob/master/github-listener.rb. You’ll need to swap in your Spark API key in env.rb, and update YourCoreName to talk to your core.
  5. Test by hitting your Heroku URL. (eg: “sweet-gong-12345.herokuapp.com”)
  6. Create a “Push event only” webhook on a GitHub repo pointing to your new Heroku app. (You’ll need admin privileges on the repo.) Test by pushing to your repo.
  7. “Gong”
  8. ???
  9. Profit.

###Contraption in action:

https://www.youtube.com/watch?v=mpxQ4zg8YTM&feature=youtu.be

About

GitHub Webhooks + Spark Core + Heroku

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages