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.

    Just the Clock at night

    Scheduled Pinned Locked Moved Solved Requests
    13 Posts 3 Posters 3.0k Views 3 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.
    • O Offline
      ortizimo @ortizimo
      last edited by ortizimo

      @ortizimo Here’s the CSS…add this at the very end of the clock_style.css…change the color if you want to or remove it:

      .module.clock .time { /* This part will change the color of the clock but not the seconds */
      color: #0099ff;
      font-weight: bold;
      font-size: 300%;
      }

      O 1 Reply Last reply Reply Quote 0
      • O Offline
        ortizimo @ortizimo
        last edited by ortizimo

        @ortizimo Got it! Now I have two clocks each one of different sizes and locations. This is what I did:

        1. copied clock to clock2 in defaults directory
        2. changed the name of the two files to say clock2.js and clock2_styles.css
        3. in CSS at the end I entered this:

        .module.clock2 .time { /* This part will change the color of the clock but not$
        color: #0099ff; /*change this color or remove
        font-weight: bold;
        font-size: 500%;
        }

        1. in clock2.js I changed two instances of the word clock to clock2. Using nano use (shift+Alt+3) to turn On the line numbers and look for lines: 9 and 42.

        2. Then in config.js I entered this which is the same as I replied before but with a new config line for timeZone on each clock and also I specified clock2 to be in the middle:

        {
        module: “clock”,
        position: “top_left”,
        classes: “daytime_scheduler”,
        config: {
        timeZone: “America/New_York”
        }
        },
        @ortizimo Got it! Now I have two clocks each one of different sizes and locations. This is what I did:

        1. copied clock to clock2 in defaults directory
        2. changed the name of the two files to say clock2.js and clock2_styles.css
        3. in CSS at the end I entered this:

        .module.clock2 .time { /* This part will change the color of the clock but not$
        color: #0099ff; /*change this color or remove
        font-weight: bold;
        font-size: 500%;
        }

        1. in clock2.js I changed two instances of the word clock to clock2. Using nano use (shift+Alt+3) to turn On the line numbers and look for lines: 9 and 42.

        2. Then in config.js I entered this which is the same as I replied before but with a new config line for timeZone on each clock and also I specified clock2 to be in the middle:

        // ************ MMM-ModuleScheduler START ***********************
        {
        module: “MMM-ModuleScheduler”,
        config: {
        global_schedule: [
        // 0 7 * * 3 means 0700 on Wed … 30 20 * * * means 2030 all days … replace * with name of days (optional)
        {from: “0 6 * * *”, to: “0 18 * * *”, ignoreModules: [“clock”, “clock2”]},
        {from: “0 6 * * *”, to: “0 18 * * *”, groupClass: “daytime_scheduler”},
        {from: “0 18 * * *”, to: “0 21 * * ", groupClass: “evening_scheduler”},
        {from: "0 18
        * *”, to: “0 21 * * *”, dimLevel: “25”, groupClass: “nightDim_scheduler”}],
        }
        },
        {
        module: “clock”,
        position: “top_left”,
        classes: “daytime_scheduler”,
        config: {
        timeZone: “America/New_York”
        }
        },
        {
        module: “clock2”,
        position: “middle_center”,
        classes: [“evening_scheduler”,“nightDim_scheduler”],
        config: {
        showSunTimes: false,
        showMoonTimes: false,
        showWeek: false,
        showDate: false,
        timeZone: “America/New_York”
        }
        },

                    // ************* MMM-ModuleScheduler END *************************
        
        R 1 Reply Last reply Reply Quote 0
        • R Offline
          ruff.hi @ortizimo
          last edited by

          Very nice! I will file this away for consideration.

          1 Reply Last reply Reply Quote 0
          • O Offline
            ortizimo @DarrenHill
            last edited by

            @darrenhill one last question… do you know why once they turn off except those ignored, the following day it doesn’t restart as normal? All are off except those ignored and have to restart the pi for it to work…thnx.

            D 1 Reply Last reply Reply Quote 0
            • D Offline
              DarrenHill @ortizimo
              last edited by

              @ortizimo said in Just the Clock at night:

              @darrenhill one last question… do you know why once they turn off except those ignored, the following day it doesn’t restart as normal? All are off except those ignored and have to restart the pi for it to work…thnx.

              On mine they come back fine, so that’s a little weird. All I can think of is that there’s something off in your set-up somewhere, but as you can see from the snippets I posted before the plugin gives times for both turn-off and turn-on, so not sure there…

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