MMM-Traffic
-
trying to configure this module
https://github.com/SamLewis0602/MMM-Traffic
got a token from Mapbox as per the instructions, got it to appear on my MM, but just says ‘loading’
nothing ever comes up ??
{
module: “MMM-Traffic”,
position: “top_left”,
config: {
accessToken: “your_key_here”,
originCoords: “-84.398848,33.755165”,
destinationCoords: “-84.504259,33.88210”,
firstLine: “{duration} mins”,
secondLine: “Home To School”,
}
}, -
in my Mapbox account i see there have been 11 API requests (from 100,000 free) using the ‘default public token’ in the account page.
so i think its using the data, but my MM is just sitting on :
(car icon) Loading …
-
@gr1dl0ck can u look at the terminal window where u start mm to see the messages.
if you use pm2, then the pm2 logs --lines=???
command,
where ??? is a number, default 15,
will show this infoalso open the developers window, ctrl-shift-i on the mm keyboard, and select the console tab
you can filter messages by module, by putting part of the module name in the filter field,
traff should be enough.show any errors (usually red text)
-
The console logs display this, sorry dont know what it means
Uncaught TypeError: console.log is not a function MMM-Traffic.js.135 at Class.socketNotificationRecieved (MMM-Traffic.js.135) at module.js.250 at socket. <anonymous> (socketclient.js.39) at Socket../node_modules/component-emitter/index.js.Emitter.Emit (index.js.145) at Socket.emitEvent (socket.js.253) at Socket.onevent (socket.js.240) at Socket.MMSocket.self.socket.onevent (socketclient.js.33) at Socket.onpacket (socket.js.204) at Manager.<anonymous> (index.js.21) at Socket../node_modules/component-emitter/index.js.Emitter.Emit (index.js.145)