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

    Posts

    Recent Best Controversial
    • RE: Screen rotation and resizing

      I had trouble using the CSS method and googled a bit more.

      in /etc/xdg/lxsession/LXDE-pi/autostart ad this line (with sudo):
      @xrandr --output HDMI-1 --rotate right

      posted in Troubleshooting
      D
      doubleT
    • RE: Failed at the magicmirror@2.2.2 start script 'sh-run-start.sh'

      I had this problem the last two days – out of the blue, the MM2 was running for over a year with no problem. I know the thread is old, but it pops up when searching here or on google for this error, so I wanted to add how I was able to solve it:

      I backed up the config, my modules and my custom css.
      Then I deleted the MagicMirror-Folder, keeping pm2 and everything unchanged. I cloned MM2, ran “npm install”, brought back the config, modules and custom css and ran “pm2 start mm”.

      Seems so easy now, but for two days I tried everything – except deleting the folder.

      posted in Troubleshooting
      D
      doubleT
    • RE: organization of the text next to the icon.

      Remove the “dimmed” in line 38 of the code.

      posted in Custom CSS
      D
      doubleT
    • RE: organization of the text next to the icon.

      Oh, sorry, “tableElement” – remove the dot. Sorry.

      posted in Custom CSS
      D
      doubleT
    • RE: organization of the text next to the icon.

      Delete the previous code in custom.css if you added that className line in the module’s js.

      posted in Custom CSS
      D
      doubleT
    • RE: organization of the text next to the icon.

      In that case the css should work. And the css file is named custom.css? Exactly like that? And you restarted the mirror?

      Since we’re already working directly in the code: In the module js there’s a line
      var tableElement = document.createElement("table");

      You can write a line directly after that:
      tableElement.className = "homeassistant-table";

      Then you should be able to address the table in the cusom.css like this:

      .homeassistant-table tr td:nth-of-type(2) {
          text-align: left;
      }
      .homeassistant-table tr:nth-of-type(3) td,
      .homeassistant-table tr:nth-of-type(6) td {
          border-bottom: 1px solid white;
      }
      .homeassistant-table {
          border-spacing: 0;
      }
      

      Is the text brighter now?

      EDIT: tableElement, not table.Element

      posted in Custom CSS
      D
      doubleT
    • RE: organization of the text next to the icon.

      Oh, I noticed a typo – even though that’s not the reason it’s not working. Change te_s_t-align to text-align, please. ;)

      What’s the name of the module in your config file?

      posted in Custom CSS
      D
      doubleT
    • RE: organization of the text next to the icon.

      Can you show me what your custom.css file looks like now?

      posted in Custom CSS
      D
      doubleT
    • RE: organization of the text next to the icon.

      Because the creator of that module gave the wrapper the class name “dimmed” in line 38 …

      posted in Custom CSS
      D
      doubleT
    • RE: organization of the text next to the icon.

      And that worked? :thinking_face:

      posted in Custom CSS
      D
      doubleT
    • 1 / 1