@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…
Read the statement by Michael Teeuw here.
Posts
-
RE: Shelly Switch Status on Mirror
-
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=.... -
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
-
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
-
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.
-
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) -
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
-
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=
-
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)
-
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:80requests 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 \"ipaddressand 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.???:80skipping the port forwarding