Git Product home page Git Product logo

Comments (17)

Sunoo avatar Sunoo commented on May 30, 2024

You'll need to set up an MQTT client somewhere (I personally recommend installing Mosquitto on the same system you run Homebridge on), then set the HOST value to point to that. You can also set LOCATION and DEVICE_NAME to change the topic it publishes to, by default it will publish to myhome/dafang.

I plan to try to write up some decent instructions after work today, but if you have any questions, I'm happy to try to help.

from homebridge-dafang-mqtt-republish.

ex725 avatar ex725 commented on May 30, 2024

I'm ignorant about these things.
if you can write the instructions exactly, I can follow them one by one.
thanks in advance for that.

from homebridge-dafang-mqtt-republish.

Sunoo avatar Sunoo commented on May 30, 2024

Okay, give me a few hours to finish working my day job and get something written up, and I'll reply here once I have that done.

from homebridge-dafang-mqtt-republish.

ex725 avatar ex725 commented on May 30, 2024

Thank you.

from homebridge-dafang-mqtt-republish.

Sunoo avatar Sunoo commented on May 30, 2024

Okay, I've written up a wiki page that includes fairly detailed instructions: https://github.com/Sunoo/homebridge-dafang-mqtt-republish/wiki/Configuring-Dafang-Hacks-Cameras-for-Homebridge

Please let me know if this is enough for you to get things configured. I'm happy to try to assist further if needed.

from homebridge-dafang-mqtt-republish.

ex725 avatar ex725 commented on May 30, 2024

that's pretty revealing. Thanks a lot
I'll try when I get home

from homebridge-dafang-mqtt-republish.

ex725 avatar ex725 commented on May 30, 2024

thanks for your supports worked smoothly

from homebridge-dafang-mqtt-republish.

Sunoo avatar Sunoo commented on May 30, 2024

Fantastic, glad I could help.

from homebridge-dafang-mqtt-republish.

ex725 avatar ex725 commented on May 30, 2024

notifications come a little late
is that normal ?
it comes after coming out of the camera's dial

from homebridge-dafang-mqtt-republish.

Sunoo avatar Sunoo commented on May 30, 2024

How late? In my testing, the alerts came almost the instant I waved my hand in front of the camera.

That said, if there is a delay, it’s probably your network or something else I have no control over, as there is no real programmed in delay or buffering in either of the plugins. Just the cooldown in this plugin, which wouldn’t delay the start of the initial motion alert.

from homebridge-dafang-mqtt-republish.

ex725 avatar ex725 commented on May 30, 2024

about 15 seconds after the action

image

   {
        "mqtt": "127.0.0.1",
        "topic": "homebridge/motion",
        "cameras": [
            {
                "name": "Giris",
                "motion": true,
                "motionTimeout": -1,
                "videoConfig": {
                    "source": "-re -i rtsp://192.168.1.112:8554/unicast",
                    "stillImageSource": "-i rtsp://192.168.1.112:8554/unicast",
                    "vcodec": "copy",
                    "audio": false,
                    "debug": true
                }
            }
        ],
        "platform": "Camera-ffmpeg"
    },
    {
        "cameras": [
            {
                "name": "Giris",
                "dafang_topic": "myhome/dafang",
                "homebridge_topic": "homebridge/motion",
                "cooldown": 30
            }
        ],
        "name": "Dafang MQTT",
        "server": "127.0.0.1",
        "port": 1883,
        "platform": "dafangMqtt"
    }
]

}

from homebridge-dafang-mqtt-republish.

Sunoo avatar Sunoo commented on May 30, 2024

15 seconds is a lot, and certainly nothing in either this plugin or Camera FFmpeg would explain that.

If you run Homebridge in debug mode (if using Config UI X, the option is under Homebridge Settings then Startup Options), then watch the log (the squiggly line in Config UI X), do the log entries about seeing motion messages happen quickly, or are any of them also delayed?

You could also make sure that the camera is seeing the motion by going to the camera’s Motion Detection settings and turning on “Display motion indicator”. Then, while watching the video stream a colored dot will appear in the image when the camera see’s motion. If that dot doesn’t appear, it won’t send any messages to Homebridge.

from homebridge-dafang-mqtt-republish.

ex725 avatar ex725 commented on May 30, 2024

as you said everything
do you want to connect and check

from homebridge-dafang-mqtt-republish.

Sunoo avatar Sunoo commented on May 30, 2024

I’m sorry, I don’t understand what you mean.

from homebridge-dafang-mqtt-republish.

ex725 avatar ex725 commented on May 30, 2024

can you contact and check with teamviewer

from homebridge-dafang-mqtt-republish.

Sunoo avatar Sunoo commented on May 30, 2024

I’m sorry, I’m just not really comfortable doing that.

from homebridge-dafang-mqtt-republish.

ex725 avatar ex725 commented on May 30, 2024

thanks for your help

from homebridge-dafang-mqtt-republish.

Related Issues (8)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.