LabyStudio / smarthome-addon

Addon to see who is currently connected to the home network and to display an IP-Camera feed

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SmartHome Addon

An addon that adds a module to see who is currently connected to the home network and to display an IP-Camera feed with motion detection.

Preview

Camera controls

You can right click on the camera image to move it around and scroll to zoom in and out.

FreeView

Installation

This addon requires the core application DesktopModules

You can download the addon jar file here
Put the built jar file into the following directory: C:/Users/<name>/AppData/Roaming/DesktopModules/addons/
And then you are ready to launch the core application.

Configuration example

{
  "modules": {
    "homeindicatormodule": {
      "filter": [
        {
          "deviceNames": [
            "OnePlus-Daniel",
            "MyComputer123"
          ],
          "nickname": "Daniel"
        },
        {
          "deviceNames": [
            "Niklas-iPhone",
            "Niklas-Macbook"
          ],
          "nickname": "Niklas"
        }
      ]
    },
    "ipcameramodule": {
      "enabled": true,
      "x": 1664,
      "y": 293,
      "mjpeg_url": "http://127.0.0.1/cgi-bin/CGIStream.cgi?cmd=GetMJStream&loginstuff",
      "view": {
        "zoom": 130,
        "offset_x": -82,
        "offset_y": -52
      },
      "motion_detection": {
        "enabled": true,
        "url": "http://127.0.0.1/cgi-bin/CGIProxy.fcgi?cmd=getDevState&loginstuff",
        "intervalInSeconds": 3,
        "trigger_condition": {
          "character_offset": 149,
          "character_byte": 49
        }
      }
    }
  },
  "fritzbox": {
    "address": "fritz.box",
    "password": "admin123",
    "update_interval": 30
  }
}

character_offset: The offset of the byte below in the motion detection response
character_byte: Required character (as byte) to detect a motion

Run in IDE

Launch the main class StartSmartHome

About

Addon to see who is currently connected to the home network and to display an IP-Camera feed


Languages

Language:Java 100.0%