MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.

    MMM-Traffic config error

    Scheduled Pinned Locked Moved Unsolved Troubleshooting
    9 Posts 3 Posters 4.9k Views 4 Watching
    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.
    • B Offline
      bocapie
      last edited by

      Hello I am new to Magic Mirror.
      I can get my mirror to work with the
      default modules. I am running his
      example config. with my api key from
      google. I am making sure all my settings
      match in the MMM-Traffic.js file.
      If I could see someone else working
      config file. I could see where I am
      going wrong. Thank in advance
      for the help.

      lolobyteL 1 Reply Last reply Reply Quote 0
      • lolobyteL Offline
        lolobyte @bocapie
        last edited by lolobyte

        @bocapie
        Hi, that’s a part of my config.js with the trafic module for you as an example.

                        {
                                "module": "MMM-Traffic",
                                "position": "top_left",
                                "header": "YourHeaderName",
                                "classes": "bright small",
                                "config": {
                                        "api_key": "xxxxxxxxxYourApiKeyxxxxxxxxxx",
                                        "mode": "driving",
                                        "language": "de",
                                        "show_summary": "true",
                                        "origin": "YourStartLocation",
                                        "destination": "YourDestinationLocation",
                                        "arrival_time": "0700",
                                        "route_name": "YourRouteName",
                                        "changeColor": true,
                                        "showGreen": false,
                                        "limitYellow": 5,
                                        "limitRed": 20,
                                        "traffic_model": "pessimistic",
                                        "interval": 120000
                                }
                                },
        
        
        1 Reply Last reply Reply Quote 0
        • B Offline
          bocapie
          last edited by

          Thank you for that I figured out where I messed up. It loads now but, just says loading commute… now.

          1 Reply Last reply Reply Quote 0
          • B Offline
            bocapie
            last edited by

            Quick question on apikey and origin,destination. Do I need to put them in both the config.js and module MMM-Traffic.js file?

            strawberry 3.141S 1 Reply Last reply Reply Quote 0
            • strawberry 3.141S Offline
              strawberry 3.141 Project Sponsor Module Developer @bocapie
              last edited by

              @bocapie no only in the config file.

              Everything you put in the config file will overwrite the values in the module

              Please create a github issue if you need help, so I can keep track

              B 1 Reply Last reply Reply Quote 0
              • B Offline
                bocapie @strawberry 3.141
                last edited by

                @strawberry-3.141 okay, I ran a npm start dev and get a error
                Error: ENOENT, open "/home/pi/MagicMirror/node_modules/dev/package.json

                strawberry 3.141S 1 Reply Last reply Reply Quote 0
                • strawberry 3.141S Offline
                  strawberry 3.141 Project Sponsor Module Developer @bocapie
                  last edited by

                  @bocapie you are in the wrong directory do cd ~/MagicMirror first

                  Please create a github issue if you need help, so I can keep track

                  B 1 Reply Last reply Reply Quote 0
                  • B Offline
                    bocapie @strawberry 3.141
                    last edited by

                    @strawberry-3.141 Yes I am in that directory.

                    1 Reply Last reply Reply Quote 0
                    • B Offline
                      bocapie
                      last edited by

                      I think i figured it out. Debug says my node is out of date.

                      1 Reply Last reply Reply Quote 0

                      Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                      Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                      With your input, this post could be even better 💗

                      Register Login
                      • 1 / 1
                      • First post
                        Last post
                      Enjoying MagicMirror? Please consider a donation!
                      MagicMirror created by Michael Teeuw.
                      Forum managed by Sam, technical setup by Karsten.
                      This forum is using NodeBB as its core | Contributors
                      Contact | Privacy Policy