{"action":"created","issue":{"url":"https://api.github.com/repos/ianperrin/MMM-ModuleScheduler/issues/4","repository_url":"https://api.github.com/repos/ianperrin/MMM-ModuleScheduler","labels_url":"https://api.github.com/repos/ianperrin/MMM-ModuleScheduler/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/ianperrin/MMM-ModuleScheduler/issues/4/comments","events_url":"https://api.github.com/repos/ianperrin/MMM-ModuleScheduler/issues/4/events","html_url":"https://github.com/ianperrin/MMM-ModuleScheduler/issues/4","id":183099407,"number":4,"title":"Add the ability to create schedules for all (or groups of) modules","user":{"login":"ianperrin","id":2277491,"avatar_url":"https://avatars.githubusercontent.com/u/2277491?v=3","gravatar_id":"","url":"https://api.github.com/users/ianperrin","html_url":"https://github.com/ianperrin","followers_url":"https://api.github.com/users/ianperrin/followers","following_url":"https://api.github.com/users/ianperrin/following{/other_user}","gists_url":"https://api.github.com/users/ianperrin/gists{/gist_id}","starred_url":"https://api.github.com/users/ianperrin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ianperrin/subscriptions","organizations_url":"https://api.github.com/users/ianperrin/orgs","repos_url":"https://api.github.com/users/ianperrin/repos","events_url":"https://api.github.com/users/ianperrin/events{/privacy}","received_events_url":"https://api.github.com/users/ianperrin/received_events","type":"User","site_admin":false},"labels":[{"id":442765797,"url":"https://api.github.com/repos/ianperrin/MMM-ModuleScheduler/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"state":"open","locked":false,"assignee":{"login":"ianperrin","id":2277491,"avatar_url":"https://avatars.githubusercontent.com/u/2277491?v=3","gravatar_id":"","url":"https://api.github.com/users/ianperrin","html_url":"https://github.com/ianperrin","followers_url":"https://api.github.com/users/ianperrin/followers","following_url":"https://api.github.com/users/ianperrin/following{/other_user}","gists_url":"https://api.github.com/users/ianperrin/gists{/gist_id}","starred_url":"https://api.github.com/users/ianperrin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ianperrin/subscriptions","organizations_url":"https://api.github.com/users/ianperrin/orgs","repos_url":"https://api.github.com/users/ianperrin/repos","events_url":"https://api.github.com/users/ianperrin/events{/privacy}","received_events_url":"https://api.github.com/users/ianperrin/received_events","type":"User","site_admin":false},"assignees":[{"login":"ianperrin","id":2277491,"avatar_url":"https://avatars.githubusercontent.com/u/2277491?v=3","gravatar_id":"","url":"https://api.github.com/users/ianperrin","html_url":"https://github.com/ianperrin","followers_url":"https://api.github.com/users/ianperrin/followers","following_url":"https://api.github.com/users/ianperrin/following{/other_user}","gists_url":"https://api.github.com/users/ianperrin/gists{/gist_id}","starred_url":"https://api.github.com/users/ianperrin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ianperrin/subscriptions","organizations_url":"https://api.github.com/users/ianperrin/orgs","repos_url":"https://api.github.com/users/ianperrin/repos","events_url":"https://api.github.com/users/ianperrin/events{/privacy}","received_events_url":"https://api.github.com/users/ianperrin/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/ianperrin/MMM-ModuleScheduler/milestones/1","html_url":"https://github.com/ianperrin/MMM-ModuleScheduler/milestones/1.4.0","labels_url":"https://api.github.com/repos/ianperrin/MMM-ModuleScheduler/milestones/1/labels","id":2070791,"number":1,"title":"1.4.0","description":null,"creator":{"login":"ianperrin","id":2277491,"avatar_url":"https://avatars.githubusercontent.com/u/2277491?v=3","gravatar_id":"","url":"https://api.github.com/users/ianperrin","html_url":"https://github.com/ianperrin","followers_url":"https://api.github.com/users/ianperrin/followers","following_url":"https://api.github.com/users/ianperrin/following{/other_user}","gists_url":"https://api.github.com/users/ianperrin/gists{/gist_id}","starred_url":"https://api.github.com/users/ianperrin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ianperrin/subscriptions","organizations_url":"https://api.github.com/users/ianperrin/orgs","repos_url":"https://api.github.com/users/ianperrin/repos","events_url":"https://api.github.com/users/ianperrin/events{/privacy}","received_events_url":"https://api.github.com/users/ianperrin/received_events","type":"User","site_admin":false},"open_issues":2,"closed_issues":0,"state":"open","created_at":"2016-10-14T17:09:18Z","updated_at":"2016-10-14T17:09:47Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2016-10-14T16:54:58Z","updated_at":"2016-10-28T10:42:27Z","closed_at":null,"body":"As a MagicMirror owner, I would like to be able to create a schedule to show/hide all (or groups of) modules simultaneously so that I don't have to define multiple per-module schedules.\r\n\r\n**Background:**\r\nCurrently, module schedules are defined on a per-module basis. e.g.\r\n````\r\n{\r\n    module: 'clock',\r\n    position: 'top_left',\r\n    classes: 'scheduler',\r\n    config: {\r\n        module_schedule: {from: '0 6 * * *', to: '0 22 * * *'}\r\n    }\r\n},\r\n````\r\nGlobal module schedules could be defined as follows:\r\n````\r\n {\r\n        module: 'MMM-ModuleScheduler',\r\n        config: {\r\n            global_schedule: [\r\n                // SHOW ALL MODULES AT 06:00 AND HIDE AT 22:00 EVERY DAY\r\n                {from: '0 6 * * *', to: '0 22 * * *' },\r\n            ]\r\n        }\r\n},\r\n````\r\n**Note:** \r\n* it may be worth including an option to exclude modules e.g. ``{from: '0 6 * * *', to: '0 22 * * *', exclude: ['alert', 'clock'] }``\r\n* ``MMM-ModuleScheduler`` should be excluded from global hide/show notifications\r\n\r\n\r\nGroup module schedules could be defined as follows:\r\n````\r\n {\r\n        module: 'MMM-ModuleScheduler',\r\n        config: {\r\n            global_schedule: [\r\n                // SHOW MODULES WITH CLASS 'scheduler_day' AT 06:00 AND HIDE AT 22:00 EVERY DAY\r\n                {classes: 'scheduler_day',  from: '0 6 * * *', to: '0 22 * * *' },\r\n                // SHOW MODULES WITH CLASS 'scheduler_night' AT 22:00 AND HIDE AT 06:00 EVERY DAY\r\n                {classes: 'scheduler_night',  from: '0 22 * * *', to: '0 6 * * *' }\r\n            ]\r\n        }\r\n},\r\n{\r\n    module: 'clock',\r\n    position: 'top_left',\r\n    classes: 'scheduler_night',\r\n},\r\n{\r\n    module: 'compliments',\r\n    position: 'top_left',\r\n    classes: 'scheduler_day',\r\n},\r\n````"},"comment":{"url":"https://api.github.com/repos/ianperrin/MMM-ModuleScheduler/issues/comments/256890595","html_url":"https://github.com/ianperrin/MMM-ModuleScheduler/issues/4#issuecomment-256890595","issue_url":"https://api.github.com/repos/ianperrin/MMM-ModuleScheduler/issues/4","id":256890595,"user":{"login":"ianperrin","id":2277491,"avatar_url":"https://avatars.githubusercontent.com/u/2277491?v=3","gravatar_id":"","url":"https://api.github.com/users/ianperrin","html_url":"https://github.com/ianperrin","followers_url":"https://api.github.com/users/ianperrin/followers","following_url":"https://api.github.com/users/ianperrin/following{/other_user}","gists_url":"https://api.github.com/users/ianperrin/gists{/gist_id}","starred_url":"https://api.github.com/users/ianperrin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ianperrin/subscriptions","organizations_url":"https://api.github.com/users/ianperrin/orgs","repos_url":"https://api.github.com/users/ianperrin/repos","events_url":"https://api.github.com/users/ianperrin/events{/privacy}","received_events_url":"https://api.github.com/users/ianperrin/received_events","type":"User","site_admin":false},"created_at":"2016-10-28T10:42:27Z","updated_at":"2016-10-28T10:42:27Z","body":"First iteration added - see e2842bb and the [updated documentation](https://github.com/ianperrin/MMM-ModuleScheduler#global-schedules)\r\n\r\nTo do:\r\n* support groups of modules\r\n* ability to exclude modules"}}
{"actor":{"display_login":"ianperrin"}}