• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
MagicMirror Forum
  • Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.

MagicMirror not Mirror

Scheduled Pinned Locked Moved Show your Mirror
10 Posts 4 Posters 7.6k Views 5 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    PointPubMedia
    last edited by Jan 18, 2017, 4:43 PM

    Need some cleanup for the cables and everything but for the moment all the hardware is inside ;)

    1_1484757729373_IMG_20170117_190842.jpg 0_1484757729372_IMG_20170117_190814.jpg

    S 1 Reply Last reply Jan 19, 2017, 3:41 AM Reply Quote 1
    • S Offline
      shashank @PointPubMedia
      last edited by Jan 19, 2017, 3:41 AM

      @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

      P 1 Reply Last reply Jan 19, 2017, 11:56 AM Reply Quote 0
      • P Offline
        PointPubMedia @shashank
        last edited by Jan 19, 2017, 11:56 AM

        @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=MONITOROFF

        I’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!

        F 1 Reply Last reply Feb 15, 2017, 9:58 PM Reply Quote 0
        • F Offline
          foppa @PointPubMedia
          last edited by Feb 15, 2017, 9:58 PM

          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”)

          @PointPubMedia

          P 1 Reply Last reply Feb 16, 2017, 2:30 PM Reply Quote 0
          • P Offline
            PointPubMedia @foppa
            last edited by yawns Feb 16, 2017, 2:32 PM Feb 16, 2017, 2:30 PM

            @foppa

            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
            
            1 Reply Last reply Reply Quote 0
            • 1 / 1
            • First post
              Last post
            Enjoying MagicMirror? Please consider a donation!
            MagicMirror created by Michael Teeuw.
            Forum managed by Sam, technical setup by Karsten.
            This forum is using NodeBB as its core | Contributors
            Contact | Privacy Policy