Created
September 4, 2015 20:55
-
-
Save jeffmarshall/4ecf0cde7b9d6540576e 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
{"mapping":{"actionLink":null,"bannerImage":null,"bannerTitle":null,"bannerCaption":null,"profileImage":null,"profileCaption":null},"title":"seth rogn","type":"single","template":"Temp_1","endpoint":"http://api.openweathermap.org/data/2.5/weather?q=montreal","createdAt":"2015-09-04T20:55:30.046Z","source":"TITLE = \"seth rogn\",\r\nICON_URL = \"\",\r\nSUMMARY = \"\",\r\nCREATED_BY = \"Jeff Marshall\",\r\nGITHUB_ID = \"\",\r\nCREDITS = \"\",\r\nSETTINGS_TYPE = \"NONE\"\r\nPREVIEW_IMG= \"\"\r\nPREVIEW_TITLE= \"Some Template Title\"\r\n\r\n\r\nLOAD {\r\n\r\n var url = \"http://api.openweathermap.org/data/2.5/weather?q=montreal\"\r\n\r\n var location = APP.location\r\n\r\n var actualURL = url.replace(\"{lat}\",location.latitude).replace(\"{lng}\",location.longitude)\r\n\r\n var api = get(actualURL)\r\n\r\n return [[\r\n [\r\n \"actions\":[\r\n [\r\n \"icon\":\"source-icon\",\r\n \"function\":APP.webview(null)\r\n ]\r\n ]\r\n ],\r\n [\r\n \"banner\":[\r\n \"type\":\"square\",\r\n \"image\": null,\r\n \"title\": null,\r\n \"caption\": null\r\n ]\r\n ],\r\n [\r\n \"profile\":[\r\n \"image\": null,\r\n \"caption\": null\r\n ]\r\n ]\r\n ]]\r\n\r\n}\r\n"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment