Last active
February 23, 2017 18:16
-
-
Save vpolouchkine/2d879dd2cd2196923d6b5c07c065974c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
//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 😄