Skip to content
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

0.5.3 Switch camera OFF, than ON leads to not working RTSP, ONVIF services. #524

Closed
thoemmes86 opened this issue Nov 1, 2023 · 2 comments

Comments

@thoemmes86
Copy link

Hi,

I installed the version 0.5.3 to my Yi Dome X (y30).
Since this update the services for RTSP and ONVIF, which I use for the integration with the Synology Surveillance Station, are not working anymore if you switched camera OFF and ON again.

Only a reboot of the cam gets RTSP and ONVIF working again.
I tried to use web service to restart RTSP and ONVIF instead, but it is not working.

http://.../cgi-bin/service.sh?name=rtsp&action=start
--> after sending this web request, the status changes from stopped to started. But the stream does not work at all.

http://.../cgi-bin/service.sh?name=onvif&action=start
--> after sending this web request, the status stays in stopped and will not change to started.

As it worked fine for 0.5.2, I think this is a bug new to the 0.5.3.

Kind Regards

@roleoroleo
Copy link
Owner

roleoroleo commented Nov 8, 2023

Yes, it's a bug.
The definition of CAMERA_CONF_FILE is missing in wd_rtsp.sh

Please add it:

#!/bin/sh

CONF_FILE="etc/system.conf"
CAMERA_CONF_FILE="etc/camera.conf"

YI_HACK_PREFIX="/home/yi-hack"
MODEL_SUFFIX=$(cat /home/yi-hack/model_suffix)

#LOG_FILE="/tmp/sd/wd_rtsp.log"
LOG_FILE="/dev/null"
...

@thoemmes86
Copy link
Author

Yes, it's a bug. The definition of CAMERA_CONF_FILE is missing in wd_rtsp.sh

Please add it:

#!/bin/sh

CONF_FILE="etc/system.conf"
CAMERA_CONF_FILE="etc/camera.conf"

YI_HACK_PREFIX="/home/yi-hack"
MODEL_SUFFIX=$(cat /home/yi-hack/model_suffix)

#LOG_FILE="/tmp/sd/wd_rtsp.log"
LOG_FILE="/dev/null"
...

Tried it out and seems to fix the issue.
Cameras are working stable now for about two days.

Thank you for fixing this issue and maintaining this project.

roleoroleo added a commit that referenced this issue Nov 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants