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

    Posts

    Recent Best Controversial
    • RE: Shelly Switch Status on Mirror

      @Niggich sorry, I don’t know anything about the api’s other than what they documented, and I don’t have any of the hardware…

      posted in Troubleshooting
      S
      sdetweil
    • RE: centering image with a colspan = 2

      @wegz15 you would use the image tag
      note the image tag below has a e+xtra space after the open as this forum uses that tag, and stuff disappears

      < img src="url"></img>
      

      so,

      var i= createElement("img")..
      i.src=....
      
      posted in Development
      S
      sdetweil
    • RE: centering image with a colspan = 2

      @wegz15 I don’t understand the question…

      YOU set the classname

      icon.className = "wi-weathericon " + forecast.icon;

      see https://stackoverflow.com/questions/8603914/center-image-in-table-td-in-css/8603927

      posted in Development
      S
      sdetweil
    • RE: regions...

      @isaac2004 I had to add

          this.wrapper.style.border = "none";
          this.wrapper.style.margin = "0px";
      

      when I used the fullscreen.above style for my module

      posted in Development
      S
      sdetweil
    • RE: [MMM-RadioDe] - does not autoplay

      @ruffneck2 i don’t know if this change will make it in. I just see that someone submitted the change to be considered.

      posted in Troubleshooting
      S
      sdetweil
    • RE: centering image with a colspan = 2

      @wegz15 use the same code u have to make a div object, and then append the image to that, and append the DIV to the dom

      var iconCell = document.createElement("tr");
      				iconCell.colSpan = 3;
      				iconCell.style.textAlign = "center";
      				iconCell.className = "bright-weather-icon";
      				row.appendChild(iconCell);
      var iconDiv = document.createElement("div");
      var icon = document.createElement("span");
      				icon.style.textAlign = "center";
      				icon.className = "wi-weathericon " + forecast.icon;
      				iconDiv.appendChild(icon);
                                      iconcell.appendChild(iconDiv)
      
      posted in Development
      S
      sdetweil
    • RE: centering image with a colspan = 2

      @wegz15 wrap that cell in a div, which is 3 wide, the center the 2 cell image in the div

      posted in Development
      S
      sdetweil
    • RE: Magic Mirror Apple MacMini installation guide ?

      @drx1984 try this, updated installation script. the original was tied to pi hardware and user pi

      from a terminal window

      https://forum.magicmirror.builders/topic/10171/anyone-want-to-try-updated-installer?page=

      posted in General Discussion
      S
      sdetweil
    • RE: [MMM-RadioDe] - does not autoplay

      @ruffneck2 in the update MM uses an upgraded version of the browser that implements a new restriction, use must interact with screen before play is allowed…

      fix is to edit the MagicMirror/js/electron.js file and insert the line marked below (approx line 20)

      // Keep a global reference of the window object, if you don't, the window will
      // be closed automatically when the JavaScript object is garbage collected.
      let mainWindow;
      
      function createWindow() {
          app.commandLine.appendSwitch('autoplay-policy', 'no-user-gesture-required');  //< -------- added
      	var electronOptionsDefaults = {
      

      then close and restart mm

      i see there is a proposed fix in the next update (July)

      posted in Troubleshooting
      S
      sdetweil
    • RE: MM Server Mode in Docker on Raspberry

      @Serge ok, so you changed the magicmirror config to use port 80 inside the container
      your run command -p should be

      -p host_port:container_port
      so
      -p 80:80
      

      requests to the host port 80 are forwarded to the container port 80

      to make sure that MM in the container is working

      do

      docker inspect 37638fe6e1d0 | grep -i -m 1 \"ipaddress
      

      and look for the ip address assigned to the container
      should be

      "IPAddress": "172.17.0.???
      

      ??? is most likely 2

      then use your local system browser to go to

      http://172.17.0.???:80
      

      skipping the port forwarding

      posted in Troubleshooting
      S
      sdetweil
    • 1
    • 2
    • 1954
    • 1955
    • 1956
    • 1957
    • 1958
    • 2078
    • 2079
    • 1956 / 2079