• 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 - make text lighter ?

Scheduled Pinned Locked Moved Troubleshooting
10 Posts 4 Posters 4.6k 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.
  • I Offline
    ironman_DK @Mykle1
    last edited by Mar 24, 2017, 8:03 PM

    @Mykle1 I have solved the problem, I had to add bright in the text :

    //routeName
    if (this.config.route_name) {
    routeName.className = ‘bright small’;
    if (this.summary.length > 0 && this.config.show_summary){
    routeName.innerHTML = this.config.route_name + ’ ’ + this.config.summaryText + ’ ’ + this.summary + ’ ’ + this.config.arriveByText + ’ ’ + this.config.arrival_time.substring(0,2) + “:” + this.config.arrival_time.substring(2,4);
    } else {
    console.log(typeof this.config.arrival_time );
    routeName.innerHTML = this.config.route_name + ’ ’ + this.config.arriveByText + ’ ’ + this.config.arrival_time.substring(0,2) + “:” + this.config.arrival_time.substring(2,4);
    }
    }
    }

    M P 2 Replies Last reply Mar 24, 2017, 8:06 PM Reply Quote 0
    • M Offline
      Mykle1 Project Sponsor Module Developer @ironman_DK
      last edited by Mar 24, 2017, 8:06 PM

      @ironman_DK said in MMM-Traffic - make text lighter ?:

      I have solved the problem, I had to add bright in the text :

      That’s one way of doing it but they never recommend changing the module file. That is why he gave you a custom.css entry. If that module gets updated you will lose your changes. If you had made the change in the custom.css file then you would not lose your changes if the module gets updated.

      Peace

      Create a working config
      How to add modules

      P 1 Reply Last reply Mar 24, 2017, 8:10 PM Reply Quote 1
      • P Offline
        pjkoeleman @ironman_DK
        last edited by Mar 24, 2017, 8:07 PM

        @ironman_DK Thats not the way to do this.

        Do it this way:

        • When you don’t have a custom.css create one in /MagicMirror/css
        • Add the following code to custom.css
        .MMM-Traffic div.small.dimmed {
        color: #00FF00;
        }
        

        Now you have the text in green but you can change that as you like.

        I 1 Reply Last reply Mar 25, 2017, 9:22 AM Reply Quote 1
        • P Offline
          pjkoeleman @Mykle1
          last edited by Mar 24, 2017, 8:10 PM

          @Mykle1
          I’am not that fast in typing and testing it …

          M 1 Reply Last reply Mar 24, 2017, 8:10 PM Reply Quote 0
          • M Offline
            Mykle1 Project Sponsor Module Developer @pjkoeleman
            last edited by Mykle1 Mar 24, 2017, 8:11 PM Mar 24, 2017, 8:10 PM

            @pjkoeleman
            I beat you by 1ms ;-)

            Create a working config
            How to add modules

            1 Reply Last reply Reply Quote 1
            • I Offline
              ironman_DK @pjkoeleman
              last edited by Mar 25, 2017, 9:22 AM

              @pjkoeleman ahh off course,I have done it, Thnak you for your help :-)

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