Read the statement by Michael Teeuw here.
MagicMirror not Mirror
-
@Snille said in MagicMirror not Mirror:
Ah! Good to know, so the iframe is the thing to use. :) I have to read up on Grafana, looks nice! What Z-Wave controller do you use?
I’m using Vera Plus and Vera Edge just to handle Z-Wave and all others function, like, scene are handle by openLuup!
-
Need some cleanup for the cables and everything but for the moment all the hardware is inside ;)
-
@PointPubMedia Even i am using Vera Edge for my Home automation, i wanted use remotecontrol module of MM using Virtual switch or Scene from Vera to restart , monitor OFF, Monitor ON at predefined time using Scenes. Can you help me in this how to use luup code below triggers .
http://192.168.1.2:8080/remote?action=REBOOT
http://192.168.1.2:8080/remote?action=SHUTDOWN
http://192.168.1.2:8080/remote?action=MONITORON
http://192.168.1.2:8080/remote?action=MONITOROFF -
@shashank said in MagicMirror not Mirror:
@PointPubMedia Even i am using Vera Edge for my Home automation, i wanted use remotecontrol module of MM using Virtual switch or Scene from Vera to restart , monitor OFF, Monitor ON at predefined time using Scenes. Can you help me in this how to use luup code below triggers .
http://192.168.1.2:8080/remote?action=REBOOT
http://192.168.1.2:8080/remote?action=SHUTDOWN
http://192.168.1.2:8080/remote?action=MONITORON
http://192.168.1.2:8080/remote?action=MONITOROFFI’m using a ZWave power outlet instead to control the monitor ON/OFF using motion sensor in the house.
But if you still want to play with remotecontrol, you can use some LUA code in a scene! -
I have this code in My Vera Plus and Teo scenes, on, off etc.
local http = require(“socket.http”)
– 5 Second timeout
http.TIMEOUT = 1– The return parameters are in a different order from luup.inet.wget(…)
result, status = http.request(“http://192.168.2.41:8080/remote?action=MONITOROFF”) -
I’m using http request in my LUA like that
local status,result = luup.inet.wget(“http://10.99.99.15:8080/TESTING”")
I also have a URLENCODE function to convert my string…
function urlencode(str) if (str) then str = string.gsub (str, "\n", "\r\n") str = string.gsub (str, "([^%w ])", function (c) return string.format ("%%%02X", string.byte(c)) end) str = string.gsub (str, " ", "%%20") end return str end