alienatedsec / yi-hack-v5

Even newer Custom Firmware for Xiaomi Cameras based on Hi3518ev200 Chipset. It includes free RTSP, ONVIF and other improvements based on the work by roleoroleo
GNU General Public License v3.0
739 stars 87 forks source link

Issues surrounding saving changes in Config pages (version 0.4.1) #366

Closed Fookes74 closed 2 months ago

Fookes74 commented 4 months ago

Describe the bug Installed 0.4.1 as per instructions. On webpage I am unable to add a hostname (host name not valid) when saving, Wifi strength shows as 'no signal' even though camera is on the network and appears without issue in Yi Camera App. Unable to modify any of the settings doesn't save.

RTSP tab is completely blank.

Baseline and firmware both 0.4.1 and Camera is Yi Outdoor 1080p 4CUS

To Reproduce Steps to reproduce the behaviour: N/A

Expected behaviour Ability to input a new hostname, to make changes to settings and save and to enable RTSP feed.

Screenshots Not required unless deemed necessary on response.

Set Up Details (please complete the following information):

Additional context None

Technical Details None

alienatedsec commented 4 months ago

That only indicates problems with your SD card. Try formatting the SD card using the YI app and copying the yi-hack-v5 folder afterwards.

marteenas commented 3 months ago

Having the same issue on Yi Dome 1080p. I can access the camera via SSH, I can modify system.conf using vi, it stores the values fine even after reboot (so SSD card is fine), but changing the values using WEB UI does not work. Using the same firmware as OP.

alienatedsec commented 3 months ago

Can you execute ./tmp/sd/yi-hack-v5/script/launch.sh and post the results?

marteenas commented 3 months ago

Interesting thing is, when I connect via SSH I get: `WARNING: Cannot check for updates from GitHub.

The camera might not be connected to the internet or, if it has just been turned on, the updater hasn't contacted the server yet.`

even though I can access the camera using Yi software via cloud :)

as for /tmp/sd/yi-hack-v5/script/launch.sh

/home/yi-hack-v5 # /tmp/sd/yi-hack-v5/script/launch.sh Using model: yi_dome_1080p Version on cam: 0.4.1 Version on sd: 0.4.1 Specify the operation (k for kill, l for launch): l Specify the settings (high, low, or both):

not sure what settings I want :)

marteenas commented 3 months ago

tried it with high (did not realize I'm starting an rtsp server), here are the results:

Using model: yi_dome_1080p Version on cam: 0.4.1 Version on sd: 0.4.1 Specify the operation (k for kill, l for launch): l Specify the settings (high, low, or both): high Enable audio? (y/n): n Execute in debug mode? (y/n): y Provide debug level (0-15): 5 Launching - h264grabber -r high -m yi_dome_1080p -f /home/yi-hack-v5 # Launching - rRTSPServer -r high -a no -p 554 -u -w -d 5 Using fifo as output Resolution high Audio fifo does not exist, disabling audio. "ch0_0.h264" stream, from the file "/tmp/h264_high_fifo" Play this stream using the URL "rtsp://192.168.1.216/ch0_0.h264"

if I connect to rtsp it works.

alienatedsec commented 3 months ago

how about ls -l command in /tmp/sd/yi-hack-v5/etc

/tmp/sd/yi-hack-v5/etc # ls -l
total 1792
-rwxr-xr-x    1 root     root           258 Feb 28 21:27 camera.conf
drwxr-xr-x    2 root     root        131072 Feb 28 12:58 crontabs
-rwxr-xr-x    1 root     root          2190 Feb 28 12:58 defaults.tar.bz2
drwxr-xr-x    2 root     root        131072 Feb 28 12:57 dropbear
-rwxr-xr-x    1 root     root             8 Feb 27 08:34 hostname
-rwxr-xr-x    1 root     root          3376 Feb 27 08:34 mqtt_advertise.conf
-rwxr-xr-x    1 root     root          1686 Feb 27 08:34 mqttv4.conf
drwxr-xr-x    2 root     root        131072 Feb 28 12:58 onvif_notify_server
-rwxr-xr-x    1 root     root            92 Feb 27 08:34 proxychains.conf
-rwxr-xr-x    1 root     root            92 Feb 28 12:58 proxychains.conf.template
-rwxr-xr-x    1 root     root            24 Feb 27 08:34 ptz_presets.conf
-rwxr-xr-x    1 root     root           704 Feb 27 08:34 system.conf
drwxr-xr-x    4 root     root        131072 Feb 28 12:58 wm_res
drwxr-xr-x    2 root     root        131072 Feb 28 12:58 wsd_simple_server
/tmp/sd/yi-hack-v5/etc #
marteenas commented 3 months ago

total 104 -rwxr-xr-x 1 root root 257 Feb 24 21:31 camera.conf drwxr-xr-x 2 root root 8192 Feb 24 21:31 crontabs -rwxr-xr-x 1 root root 2190 Feb 24 21:31 defaults.tar.bz2 drwxr-xr-x 2 root root 8192 Mar 13 15:23 dropbear -rwxr-xr-x 1 root root 0 Feb 24 21:31 hostname -rwxr-xr-x 1 root root 3363 Feb 24 21:31 mqtt_advertise.conf -rwxr-xr-x 1 root root 1657 Feb 24 21:31 mqttv4.conf drwxr-xr-x 2 root root 8192 Feb 24 21:31 onvif_notify_server -rwxr-xr-x 1 root root 92 Feb 24 21:31 proxychains.conf -rwxr-xr-x 1 root root 92 Feb 24 21:31 proxychains.conf.template -rwxr-xr-x 1 root root 24 Feb 24 21:31 ptz_presets.conf -rwxr-xr-x 1 root root 645 Feb 24 21:31 system.conf drwxr-xr-x 4 root root 8192 Feb 24 21:31 wm_res drwxr-xr-x 2 root root 8192 Feb 24 21:31 wsd_simple_server

marteenas commented 3 months ago

if I edit system.conf in there /tmp/sd/yi-hack-v5/etc using vi editor, then I get settings stored.

alienatedsec commented 3 months ago

browser? clearing cache?

marteenas commented 3 months ago

browser sends the request to camera without a problem: POST:

DISABLE_CLOUD: yes REC_WITHOUT_CLOUD: no RTSP: yes ONVIF: no ONVIF_WSDD: no TIME_OSD: no SNAPSHOT: yes SNAPSHOT_LOW: no SSHD: yes FTPD: no BUSYBOX_FTPD: no TELNETD: no NTPD: no HTTPD: yes PROXYCHAINSNG: no SWAP_FILE: no HOSTNAME: yidome1080phackv5

but the camera responds: {error: "true"}

it still displays "Saved" in the web.

What I did is used Firefox instead and it saved the settings. Then it started working on Chrome (Opera) browsers too. Probably some of the form inputs are not valid and the UI just does not display which ones (thus error: true).

github-actions[bot] commented 2 months ago

This issue has been stale for 30 days - it will be closed within the next 7 days if not updated