Skip to content

Instantly share code, notes, and snippets.

@vpolouchkine
Last active February 23, 2017 18:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vpolouchkine/2d879dd2cd2196923d6b5c07c065974c to your computer and use it in GitHub Desktop.
Save vpolouchkine/2d879dd2cd2196923d6b5c07c065974c to your computer and use it in GitHub Desktop.
func handleArrived(e lyft.IncomingEvent) {
// Turn off the lights only when I'm leaving my house
if fmt.Sprintf("%v", e.Event.Origin.Address) == "..." {
fmt.Printf("Your ride is here!")
_, err := http.Get("https://maker.ifttt.com/trigger/lyft_arrived/with/key/...")
if err != nil {
log.Fatal(err)
}
}
}
@acityinohio
Copy link

//Note that "..." is not the actual address of my home
Might be nice to add this for a humorous note/to guide the less observant among us 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment