Created
December 5, 2014 15:16
-
-
Save zobalogh/2765b94dc72f9d88b4ec to your computer and use it in GitHub Desktop.
Save Strava run record into Google Calendar
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
[{"id":"5f514c67.a0aeb4","type":"strava","strava":"","name":"Get my latest activity on Strava","x":180,"y":272,"z":"5584402e.aa7bc","wires":[["1c36f3e4.e3c90c","81950bff.7e6af8"]]},{"id":"85c200ee.7a3e","type":"google calendar out","google":"","name":"Save run to Google Calendar","calendar":"","x":175,"y":425,"z":"5584402e.aa7bc","wires":[]},{"id":"1c36f3e4.e3c90c","type":"function","name":"Format activity for Google Calendar \"Quick Add\"","func":"var eventName = msg.payload.name;\nvar when = msg.time.toString();\nvar atLocation = msg.payload.location_city;\n\nmsg.payload = eventName + \" at \" + when + \" at \" + atLocation;\n\nreturn msg;","outputs":1,"x":254,"y":359,"z":"5584402e.aa7bc","wires":[["85c200ee.7a3e","d82cee9f.27d31"]]},{"id":"774161bd.88bea","type":"inject","name":"","topic":"","payload":"","payloadType":"none","repeat":"","crontab":"","once":false,"x":86,"y":211,"z":"5584402e.aa7bc","wires":[["5f514c67.a0aeb4"]]},{"id":"81950bff.7e6af8","type":"debug","name":"","active":true,"console":"true","complete":"payload","x":399,"y":218,"z":"5584402e.aa7bc","wires":[]},{"id":"d82cee9f.27d31","type":"debug","name":"","active":true,"console":"true","complete":"payload","x":481,"y":290,"z":"5584402e.aa7bc","wires":[]}] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment