Closed CodeFatherG closed 1 month ago
Can you send me a log with debug = true
in the [[cameras]]
section. It seems this is another issue with the stricter xml parser
Ah seems to already be in the logs
<?xml version="1.0" encoding="UTF-8" ?>
<body>
<FloodlightStatusList version=\"1.1\" />
</body>
I'll have to see how to parse this type of empty list in the newer xml parser
Is my analysis correct that its causing 2 connection requests therefore extending the time of any actions?
Which would cause the issue I am seeing here
It counts as a fatal error so it reconnects.
Should I open a separate issue for the delay experienced in motion making it to mqtt/home assistant? Or is it likely attributed to the double connection time?
Let's fix the double connection and then see.
Excellent. I have no experience in rust or I'd take a look myself. Maybe I'll take a look at some tutorials and see what I can learn.
Fix should be pushed now
p.s. I'm on holiday for the rest of the week so maybe will be slow replying
Hi Mate, hope you enjoy your holidays. I know you are just one guy trying to develop and maintain this project, I really appreciate it!
It looks like the double connection is solved. It does not look like the motion delay is resolved, created an issue #257
Describe the bug
On connecting to the device the following error is given requiring two connection attempts
Custom("missing field
FloodlightStatus")
.To Reproduce
Steps to reproduce the behavior. Example:
Define RTSP user
[[users]] name = "admin" pass = ...
Front Camera
[[cameras]] name = "front_door_camera" discovery = "local" # Discover local username = "admin" # Camera user password = ... address = "..." # Reserved ip of camera uid = "..." # Camera UID stream = "Main" idle_disconnect = true # Disconnect on idle for battery [cameras.pause] on_motion = true # Should pause when no motion on_client = true # Should pause when no rtsp client [cameras.mqtt] [cameras.mqtt.discovery] topic = "homeassistant" # Enable Discovery with the following controls features = ["Floodlight", "Camera", "Motion", "Reboot", "Battery", "Siren"]
[mqtt] broker_addr = "127.0.0.1" # local broker port = 1883 credentials = ...
version: '3.8' services: neolink: image: quantumentangledandy/neolink:latest command: ["/usr/local/bin/neolink", "mqtt-rtsp", "--config=/etc/neolink.toml"] container_name: neolink ports:
Expected behavior
A clear and concise description of what you expected to happen.
Logs
Versions
Neolink software: latest Reolink camera model and firmware: Model Argus Eco Ultra v3.0.0.2773_23100910