New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to connect to mqtt broker #2
Comments
The problem is that mqtt credentials are unused in code 😅. I'll fix the code in the next few days. |
One is glad to be of service. BTW thank you for this solution as will help me protect my house while on vacation |
@jokerigno , the analysis was too raw and indeed the creds options are used in code and are working for a test broker that I have bring-up with authentication needed. You should check if your broker is compliant to MQTT v3.1 protocol for auth credentials to work. |
See synology-surveillance-api-motion-mqtt-gifs/synology_surveillance_motion_mqtt_gifs.py Line 186 in 52c3985
|
well my docker container is created using this image: https://hub.docker.com/_/eclipse-mosquitto and in the description I've found "Eclipse Mosquitto is an open source message broker which implements MQTT version 5, 3.1.1 and 3.1" so it my opinion it should be compliant! There's some particular config that I have to use on it? |
Mosquitto is also mine mqtt server.
Did you specify an ip or the container name in config.json?
|
yep. In mqtt_server field. |
Could you post the container logs? |
Here's the log from your container:
, |
It seems that motion events are correctly processed and gifs are published. |
Here it is:
Then I used MQTT-Explorer looking for cameras topic but I found nothing. |
The gif filename should be correctly published to topic "cameras/gifs/veranda_camera_di_adele" as the log says
Did you try to subscribe the topic? |
@jokerigno Any feedbacks? |
After some struggle now it works! And it's great! It's just a pity that Synology allows only 2 free cameras because is so damn fan to see the gifs! Thank you so much for this! |
@fabtesta the setup is all working but the only place I'm stuck is using node-red. I'm using the debug and I do see the gif in the payload but I don't know how to send from there to the telegram. Do you guys have any suggestions? |
The mqtt payload only notifies the path where the gif has been placed, so you have to:
|
Hi,
I’ve installed the docker container, created a config file and run it.
Gifs are created. But there’s no mqtt message. I’ve using mqtt explorer to look for the topic but there is no message.
Here is my config
can ypu please support me?
The text was updated successfully, but these errors were encountered: