Skip to content

Instantly share code, notes, and snippets.

@jeffmarshall
Created September 4, 2015 20:55
Show Gist options
  • Save jeffmarshall/4ecf0cde7b9d6540576e to your computer and use it in GitHub Desktop.
Save jeffmarshall/4ecf0cde7b9d6540576e to your computer and use it in GitHub Desktop.
{"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