{"action":"created","issue":{"url":"https://api.github.com/repos/MichMich/MagicMirror/issues/196","repository_url":"https://api.github.com/repos/MichMich/MagicMirror","labels_url":"https://api.github.com/repos/MichMich/MagicMirror/issues/196/labels{/name}","comments_url":"https://api.github.com/repos/MichMich/MagicMirror/issues/196/comments","events_url":"https://api.github.com/repos/MichMich/MagicMirror/issues/196/events","html_url":"https://github.com/MichMich/MagicMirror/issues/196","id":149259077,"number":196,"title":"this.sendSocketNotification is not a function","user":{"login":"SamLewis0602","id":15079088,"avatar_url":"https://avatars.githubusercontent.com/u/15079088?v=3","gravatar_id":"","url":"https://api.github.com/users/SamLewis0602","html_url":"https://github.com/SamLewis0602","followers_url":"https://api.github.com/users/SamLewis0602/followers","following_url":"https://api.github.com/users/SamLewis0602/following{/other_user}","gists_url":"https://api.github.com/users/SamLewis0602/gists{/gist_id}","starred_url":"https://api.github.com/users/SamLewis0602/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SamLewis0602/subscriptions","organizations_url":"https://api.github.com/users/SamLewis0602/orgs","repos_url":"https://api.github.com/users/SamLewis0602/repos","events_url":"https://api.github.com/users/SamLewis0602/events{/privacy}","received_events_url":"https://api.github.com/users/SamLewis0602/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":35,"created_at":"2016-04-18T20:15:47Z","updated_at":"2016-04-18T21:36:02Z","closed_at":null,"body":"I have just about finished my Traffic module to get current commute time, but I'm having difficulty sending a socket notification other than the initial one in my `start` function. The project can be found [here](https://github.com/SamLewis0602/MMM-Traffic) and the issue lies in `MMM-Traffic.js`.\r\n\r\nI send a socket notification in `start` which queries the google maps api in `node_helper.js` then sends a socket notification back to `MMM-Traffic.js` which will then call `updateDom()`. I'm using `updateCommute()` as a proxy for setInterval that will send the initial socket notification at the user defined interval, but I am getting an error saying that this.sendSocketNotification is not a function. Any ideas?"},"comment":{"url":"https://api.github.com/repos/MichMich/MagicMirror/issues/comments/211593134","html_url":"https://github.com/MichMich/MagicMirror/issues/196#issuecomment-211593134","issue_url":"https://api.github.com/repos/MichMich/MagicMirror/issues/196","id":211593134,"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-18T21:36:02Z","updated_at":"2016-04-18T21:36:02Z","body":"So, this is what it should look like:\r\n\r\n````javascript\r\n\tstart: function() {\r\n\t\tLog.info('Starting module: ' + this.name);\r\n\t\tthis.loaded = false;\r\n\t\tthis.url = 'https://maps.googleapis.com/maps/api/directions/json' + this.getParams();\r\n\t\tthis.symbols = {\r\n\t\t\t'driving': 'fa fa-car',\r\n\t\t\t'walking': 'fa fa-odnoklassniki',\r\n\t\t\t'bicycling': 'fa fa-bicycle',\r\n\t\t\t'transit': 'fa fa-train'\r\n\t\t};\r\n\r\n\t\tvar self = this;\r\n\t\tsetInterval(this.updateCommute, this.config.interval * 1000, this);\r\n\t},\r\n\r\n\tupdateCommute: function(self) {\r\n\t\tLog.info(self);\r\n\t\tself.sendSocketNotification('TRAFFIC_URL', self.url);\r\n\t},\r\n````"}}