MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord
    1. Home
    2. adadws
    3. Topics
    A
    • Profile
    • Following 0
    • Followers 0
    • Topics 6
    • Posts 12
    • Best 0
    • Controversial 0
    • Groups 0

    Topics created by adadws

    • A

      IR touch frame
      General Discussion • • adadws

      1
      0
      Votes
      1
      Posts
      662
      Views

      A

      I want my mirror to be a touch.
      Is there anything other than an infrared touch frame?
      If you need to use an infrared touch frame, I want to find a frame of 10 inches or less.
      help!

    • A

      The mirror is bigger than the monitor.
      General Discussion • • adadws

      6
      0
      Votes
      6
      Posts
      2073
      Views

      CharonBeber

      Drill holes in the top and in the bottom for a chimney effect. Heat goes always upwards.
      You can check your temp easy with MMM-stats, it tells you the temp of your cpu and uptime and so on

    • A

      Refresh every day at midnight
      Troubleshooting • • adadws

      2
      0
      Votes
      2
      Posts
      990
      Views

      cruunnerr

      i would use pm2 for that.

      sudo nano /etc/crontab

      # /etc/crontab: system-wide crontab # Unlike any other crontab you don't have to run the `crontab' # command to install the new version when you edit this file # and files in /etc/cron.d. These files also have username fields, # that none of the other crontabs do. SHELL=/bin/sh PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin # m h dom mon dow user command 17 * * * * root cd / && run-parts --report /etc/cron.hourly 25 6 * * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily ) 47 6 * * 7 root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.weekly ) 52 6 1 * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.monthly ) 59 23 * * * pi pm2 restart mm #

      should work…

    • A

      wrapper.innerHTML
      Troubleshooting • • adadws

      4
      0
      Votes
      4
      Posts
      2410
      Views

      D

      I was interrupted when I wrote my answer and forgot to add what I was initially going to say. I decided to write a new reply instead of editing the above, not to confuse anyone and keep the two apart.

      There is another way to update the content of an element (that has been created in getDom before):

      Example 3, .innerHTML:

      start: function() { // stays the same as above setTimeout(function() { this.magicContent(self); // this will call the function "magicContent" }, 10 * 1000); // 10 seconds after the start, 5 seconds after "buildContent" }, // we don't touch getDom or buildContent! magicContent: function() { document.getElementById("my-content").innerHTML = "Changed <i><b>yet again!"; }

      document.getElementById(“my-content”).innerHTML = “content”; will update the selected element (the div with the id “my-content”) with the selected content without having to call updateDom().

      Keep in mind that this will only work on elements that were created before in getDom, so it will not work within start: function() …

      Caution! This can also update elements of other modules, so be careful and use unique IDs.

    • A

      module hide
      Troubleshooting • • adadws

      1
      0
      Votes
      1
      Posts
      783
      Views

      A

      I am using a voice command module. (@MMM-Assistant)
      I want it to bring the module and disappear in a few seconds.
      Do you have scripts to load or hide modules?

    • 1 / 1