Navigation

    MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord

    MMM-Traffic

    Troubleshooting
    2
    4
    92
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • G
      Gr1dL0ck last edited by

      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”,
      }
      },

      G 1 Reply Last reply Reply Quote 0
      • G
        Gr1dL0ck @Gr1dL0ck last edited by

        @gr1dl0ck

        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 …

        S 1 Reply Last reply Reply Quote 0
        • S
          sdetweil @Gr1dL0ck last edited by

          @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 info

          also 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)

          G 1 Reply Last reply Reply Quote 0
          • G
            Gr1dL0ck @sdetweil last edited by Gr1dL0ck

            @sdetweil

            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)
            
            
            1 Reply Last reply Reply Quote 0
            • 1 / 1
            • First post
              Last post
            Enjoying MagicMirror? Please consider a donation!
            MagicMirror created by Michael Teeuw.
            Forum managed by Paul-Vincent Roll and Rodrigo Ramírez Norambuena.
            This forum is using NodeBB as its core | Contributors
            Contact | Privacy Policy