Giter VIP home page Giter VIP logo

Comments (9)

conradhagemans avatar conradhagemans commented on May 19, 2024 1

Take your time and drive carefully.
Thanks.

from homebridge-dafang.

youqingkui avatar youqingkui commented on May 19, 2024

MQTT MOSQUITTOOPTS need --cafile , --cafile, --cert

from homebridge-dafang.

ScharV avatar ScharV commented on May 19, 2024

hey @bdonohoe how did you edited client.js? I found the file but I don't know what to edit.

from homebridge-dafang.

ScharV avatar ScharV commented on May 19, 2024

Found it by my self

from homebridge-dafang.

conradhagemans avatar conradhagemans commented on May 19, 2024

Hi @ScharV or @bdonohoe can you help me? Where is the client.js file stored and what do I have to edit? I am running Mosquitto on my linux server in at home as central server. I am using a raspberry PI as streaming homebridge client. On the Linux server I have running Home Assistant but that doesn's support streaming video to homekit.

from homebridge-dafang.

ScharV avatar ScharV commented on May 19, 2024

Hey @conradhagemans sorry for my delayed reply....im actually driving with my car i will answer your question asap in the following hour

from homebridge-dafang.

ScharV avatar ScharV commented on May 19, 2024

@conradhagemans
in my case with Homebridge i found the client.js file here:
/usr/local/lib/node_modules/homebridge-dafang/node_modules/mqtt/lib/client.js
————————————————————
Then you have to add it at the first Block like this:
...
}
var defaultConnectOptions = {
keepalive: 60,
reschedulePings: true,
protocolId: 'MQTT',
protocolVersion: 4,
reconnectPeriod: 1000,
connectTimeout: 30 * 1000,
username: "MyCam",
password: "MySecretPassword",
clean: true,
resubscribe: true
}
...
————————————————————
Username and password fields aren‘t there in original.
Hope that helps you otherwise feel free to contact me.

from homebridge-dafang.

conradhagemans avatar conradhagemans commented on May 19, 2024

@ScharV thank you for the quick response. I will try it out and post an update later tonight.

from homebridge-dafang.

conradhagemans avatar conradhagemans commented on May 19, 2024

Yes!! It works. Bridge added to my HomeKit app and camera added. Now error with FFMpeg. I think I have to recompile it on my raspberry. @ScharV once more thank you.

from homebridge-dafang.

Related Issues (20)

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.