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

    Posts

    Recent Best Controversial
    • RE: Trying to write my own Module...

      For posterity, I modified the if statement as follows, to remove the row items that have a 0 for wattage:

      if (channels[i].children[n].textContent != 0) {
           element.innterHTML = channels[i].children[n].textContent;
           row.appendChild(element);
           table.appendChild(row);
      }
      else {
           table.removeChild(row);
      }
      
      posted in Development
      nbrennN
      nbrenn
    • RE: Trying to write my own Module...

      I am trying to begin the next iteration of my module.

      I have the real-time energy usage, and monthly power usage being displayed in a list in the top left and right corners of my mirror.

      I am hoping to do something similar to the following:

      • Take a value from my Monthly Usage, and then display it in the center of my mirror with a sentence like, “Your monthly power usage is: XXX Watts”.

      Since this monthly energy usage module is in the top right of my mirror, how would I extract a value or variable from that module and then display it into the center of the mirror.

      So basically, I have a long list of power usages being displayed on my mirror, but I would like to display a sentence or two about that data on another part of my mirror - extracting a value from the module and displaying it in the center of the mirror. Can this be done using the same .js code in the module, and just modifying the .css?

      posted in Development
      nbrennN
      nbrenn
    • 1 / 1