{"action":"created","issue":{"url":"https://api.github.com/repos/ftlabs/big-ft/issues/13","labels_url":"https://api.github.com/repos/ftlabs/big-ft/issues/13/labels{/name}","comments_url":"https://api.github.com/repos/ftlabs/big-ft/issues/13/comments","events_url":"https://api.github.com/repos/ftlabs/big-ft/issues/13/events","html_url":"https://github.com/ftlabs/big-ft/issues/13","id":119990545,"number":13,"title":"Auto-refresh the page when a new version is released","user":{"login":"triblondon","id":1735391,"avatar_url":"https://avatars.githubusercontent.com/u/1735391?v=3","gravatar_id":"","url":"https://api.github.com/users/triblondon","html_url":"https://github.com/triblondon","followers_url":"https://api.github.com/users/triblondon/followers","following_url":"https://api.github.com/users/triblondon/following{/other_user}","gists_url":"https://api.github.com/users/triblondon/gists{/gist_id}","starred_url":"https://api.github.com/users/triblondon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/triblondon/subscriptions","organizations_url":"https://api.github.com/users/triblondon/orgs","repos_url":"https://api.github.com/users/triblondon/repos","events_url":"https://api.github.com/users/triblondon/events{/privacy}","received_events_url":"https://api.github.com/users/triblondon/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"seanmtracey","id":913687,"avatar_url":"https://avatars.githubusercontent.com/u/913687?v=3","gravatar_id":"","url":"https://api.github.com/users/seanmtracey","html_url":"https://github.com/seanmtracey","followers_url":"https://api.github.com/users/seanmtracey/followers","following_url":"https://api.github.com/users/seanmtracey/following{/other_user}","gists_url":"https://api.github.com/users/seanmtracey/gists{/gist_id}","starred_url":"https://api.github.com/users/seanmtracey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/seanmtracey/subscriptions","organizations_url":"https://api.github.com/users/seanmtracey/orgs","repos_url":"https://api.github.com/users/seanmtracey/repos","events_url":"https://api.github.com/users/seanmtracey/events{/privacy}","received_events_url":"https://api.github.com/users/seanmtracey/received_events","type":"User","site_admin":false},"milestone":null,"comments":1,"created_at":"2015-12-02T17:10:04Z","updated_at":"2015-12-03T10:34:31Z","closed_at":null,"body":"Scheduled refresh at midnight in the local time zone?\r\n\r\n@seanmtracey to put an implementation sketch in this issue."},"comment":{"url":"https://api.github.com/repos/ftlabs/big-ft/issues/comments/161590466","html_url":"https://github.com/ftlabs/big-ft/issues/13#issuecomment-161590466","issue_url":"https://api.github.com/repos/ftlabs/big-ft/issues/13","id":161590466,"user":{"login":"seanmtracey","id":913687,"avatar_url":"https://avatars.githubusercontent.com/u/913687?v=3","gravatar_id":"","url":"https://api.github.com/users/seanmtracey","html_url":"https://github.com/seanmtracey","followers_url":"https://api.github.com/users/seanmtracey/followers","following_url":"https://api.github.com/users/seanmtracey/following{/other_user}","gists_url":"https://api.github.com/users/seanmtracey/gists{/gist_id}","starred_url":"https://api.github.com/users/seanmtracey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/seanmtracey/subscriptions","organizations_url":"https://api.github.com/users/seanmtracey/orgs","repos_url":"https://api.github.com/users/seanmtracey/repos","events_url":"https://api.github.com/users/seanmtracey/events{/privacy}","received_events_url":"https://api.github.com/users/seanmtracey/received_events","type":"User","site_admin":false},"created_at":"2015-12-03T10:34:31Z","updated_at":"2015-12-03T10:34:31Z","body":"Suggested implementation on how we should do auto-updating of Big FT screens\r\n\r\nWe create a GET endpoint '/should-update' on big.ft.com\r\n\r\nWhen this endpoint is requested, we return a JSON object\r\n```Javascript```\r\n{\r\n\tupdateUID : \"UNIQUE_UPDATE_IDENTIFIER\",\r\n\tupdateCreated : UNIX_TIME,\r\n\tpriority : 0-2\r\n}\r\n```\r\nThe updateUID is a unique identifier for the update. When the client first loads, we include the identifier somewhere in the markup, perhaps as a data attribute on the body tag. \r\n\r\nWhen the client checks for an update, it will check the updateUID against the version in it's data-attribute, if they match, the client will take no action. \r\n\r\nIf the UIDs do not match, the client will set itself to update. In the Javascript object, there is a 'priority' key, which can have values from 0 - 1. This value represents how immediately the update should occur.\r\n\r\n0 = Update Immediately\r\n1 = Update at midnight (in the local timezone)\r\n\r\nAll update priority values should, by default, have a value of 1, the value should only be 0 if the update is required immediately through some error or breaking change."}}