MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    1. Home
    2. xTITUS MAXIMUSx
    3. Topics
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.
    X
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 3
    • Posts 10
    • Groups 0

    Topics

    • X

      Help with Snow Falling Module

      Watching Ignoring Scheduled Pinned Locked Moved Development
      7
      2 Votes
      7 Posts
      554 Views
      S
      @xTITUS-MAXIMUSx awesome!!
    • X

      Default weather color change

      Watching Ignoring Scheduled Pinned Locked Moved Custom CSS
      2
      1
      0 Votes
      2 Posts
      2k Views
      bigschucksB
      Thank you. Really looks cool. Genuinely emotional over how brilliant this looks. Recently started programming and am currently doing a small project.
    • X

      Help creating background module to change on set time of the day

      Watching Ignoring Scheduled Pinned Locked Moved Development
      2
      0 Votes
      2 Posts
      453 Views
      X
      @xTITUS-MAXIMUSx nvm… after reviewing my mistakes I actually got it working Module.register("MMM-CSSswitch", { defaults: { morning_start: 5, morning_stop: 12, noon_start: 12, noon_stop: 23, }, //Do I still need to load the custom.css? getStyles: function() { return ["MMM-CSSswitch.css"]; }, // Define start sequence. start: function() { Log.info("Starting module: " + this.name); // Schedule update interval. var self = this; self.updatecssswitch(); setInterval(function() { self.updatecssswitch(); }, 5000); }, updatecssswitch: function() { var currentTime = new Date().getHours(); var body = document.querySelector('morning'); if ( currentTime >= this.config.morning_start && currentTime < this.config.morning_end ) { document.body.className = "morning"; } else if ( currentTime >= this.config.noon_start && currentTime < this.config.noon_stop ) { document.body.className = "noon"; } else { document.body.className = "night"; } } }); CSS .morning { background-image: url("morning.png"); margin: 0; height: 100%; width: 100%; } .noon { background-image: url("noon.jpg"); margin: 0; height: 100%; width: 100%; } .night { background-image: url("night.jpg"); margin: 0; height: 100%; width: 100%; } Big thanks to @Piranha1605 and his github for a template.
    • 1 / 1