• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
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 - Green Text?

Scheduled Pinned Locked Moved Troubleshooting
4 Posts 3 Posters 2.2k Views 2 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.
  • T Offline
    tobykah
    last edited by Feb 19, 2017, 9:33 PM

    Hi, first time poster here. I really love the whole thing, and I wanna say a big thank you to everybody who is contributing to this project. I’ll present my first MM soon ;)

    Now for my Issue with the MMM-Traffic module.
    I understoood, that you can show the text in green, yellow and red depending on how much traffic to expect. Now i can’t get it to work, it’s allways white. Maybe you guys can show me what I did wrong, here’s my config.js:

    {
                            "module": "MMM-Traffic",
                            "position": "top_right",
                            "header": "Verkehr",
                            "classes": "bright small",
                            "config": {
                                    "api_key": "this is where my API key is",
                                    "mode": "driving",
                                    "language": "de",
                                    "show_summary": "true",
                                    "origin": "this is where my home is",
                                    "destination": "this is where my work is",
                                    "arrival_time": "0800",
                                    "route_name": "Fahrt zur Arbeit",
                                    "changeColor": true,
                                    "showGreen": true,
                                    "limitYellow": 5,
                                    "limitRed": 20,
                                    "traffic_model": "pessimistic",
                                    "interval": 120000
                            }
                            },
    

    This is in my \MagicMirror\config\config.js file, i understodd that it’ll override anything in the module folder, is that correct? What am I doing wrong? Thank you guys!

    B S 2 Replies Last reply Feb 19, 2017, 10:29 PM Reply Quote 0
    • B Offline
      broberg Project Sponsor @tobykah
      last edited by Feb 19, 2017, 10:29 PM

      @tobykah

      Does this work then?

      {
                              module: 'MMM-Traffic',
                              position: 'top_right',
                              Header: 'Verkehr',
                              classes: 'bright small',
                              config: {
                                      api_key: 'this is where my API key is',
                                      mode: 'driving',
                                      language: 'de',
                                      show_summary: true,
                                      origin: 'this is where my home is',
                                      destination: 'this is where my work is',
                                      arrival_time: '0800',
                                      route_name: 'Fahrt zur Arbeit',
                                      changeColor: true,
                                      showGreen: true,
                                      limitYellow: 2,
                                      limitRed: 5,
                                      traffic_model: 'pessimistic',
                                      interval: 120000
                              }
                              },
      1 Reply Last reply Reply Quote 0
      • S Offline
        strawberry 3.141 Project Sponsor Module Developer @tobykah
        last edited by Feb 19, 2017, 10:48 PM

        @tobykah After checking the code I can say that the color part is only working when arrival_time is not set

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

        1 Reply Last reply Reply Quote 1
        • T Offline
          tobykah
          last edited by Feb 20, 2017, 2:44 PM

          Hi, I’m at work right now, will check on my RPi later tonight and let you know if my problem is solved. Thank you so much!

          1 Reply Last reply Reply Quote 0
          • 1 / 1
          1 / 1
          • First post
            4/4
            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