{"action":"created","issue":{"url":"https://api.github.com/repos/MichMich/MagicMirror/issues/213","repository_url":"https://api.github.com/repos/MichMich/MagicMirror","labels_url":"https://api.github.com/repos/MichMich/MagicMirror/issues/213/labels{/name}","comments_url":"https://api.github.com/repos/MichMich/MagicMirror/issues/213/comments","events_url":"https://api.github.com/repos/MichMich/MagicMirror/issues/213/events","html_url":"https://github.com/MichMich/MagicMirror/issues/213","id":150018937,"number":213,"title":"Multiple calender fetches?","user":{"login":"jsassner","id":1716282,"avatar_url":"https://avatars.githubusercontent.com/u/1716282?v=3","gravatar_id":"","url":"https://api.github.com/users/jsassner","html_url":"https://github.com/jsassner","followers_url":"https://api.github.com/users/jsassner/followers","following_url":"https://api.github.com/users/jsassner/following{/other_user}","gists_url":"https://api.github.com/users/jsassner/gists{/gist_id}","starred_url":"https://api.github.com/users/jsassner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jsassner/subscriptions","organizations_url":"https://api.github.com/users/jsassner/orgs","repos_url":"https://api.github.com/users/jsassner/repos","events_url":"https://api.github.com/users/jsassner/events{/privacy}","received_events_url":"https://api.github.com/users/jsassner/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-04-21T09:30:22Z","updated_at":"2016-04-21T13:16:26Z","closed_at":null,"body":"In the calendar module, in the node_helper.js shouldn't the fetcher.startFetch(); be moved inside the if-statement, only starting when a new needs to be created? \r\nWhen in node serveronly mode, reloading a page a new fetcher is created every page reload. "},"comment":{"url":"https://api.github.com/repos/MichMich/MagicMirror/issues/comments/212914605","html_url":"https://github.com/MichMich/MagicMirror/issues/213#issuecomment-212914605","issue_url":"https://api.github.com/repos/MichMich/MagicMirror/issues/213","id":212914605,"user":{"login":"MichMich","id":210954,"avatar_url":"https://avatars.githubusercontent.com/u/210954?v=3","gravatar_id":"","url":"https://api.github.com/users/MichMich","html_url":"https://github.com/MichMich","followers_url":"https://api.github.com/users/MichMich/followers","following_url":"https://api.github.com/users/MichMich/following{/other_user}","gists_url":"https://api.github.com/users/MichMich/gists{/gist_id}","starred_url":"https://api.github.com/users/MichMich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MichMich/subscriptions","organizations_url":"https://api.github.com/users/MichMich/orgs","repos_url":"https://api.github.com/users/MichMich/repos","events_url":"https://api.github.com/users/MichMich/events{/privacy}","received_events_url":"https://api.github.com/users/MichMich/received_events","type":"User","site_admin":false},"created_at":"2016-04-21T13:16:26Z","updated_at":"2016-04-21T13:16:26Z","body":"There is no difference between the electron mode (`npm start`) and the server only (`node serveronly`) other than a browser window (electron) that isn't opened. The backend is completely the same.\r\n\r\nWhen a frontend adds a url, the node helper checks if a fetcher is already created. If not, it creates one (and stores it for reuse). If there is an existing one, it will reuse it. In both cases `fetcher.startFetch()` will be called, to make sure the content is up to date. No extra instance will be created."}}