Add static binary on Aqara G3 cam - NGINX - PHP - CGI ...
This is a repository of armv7l static binaries of various versions compatible with AqaraG3.
- Telnetd enable
- Manual downgrade firmware 3.3.4 (post_init.sh enable)
- Open telnet QR method aQRootG3 (create post_init.sh)
- Manual update firmware 3.3.9 (post_init.sh enable)
- Update last firmware from command custom firmware
- hack done! (post_init.sh enable)
- Download folder "extra_binary" on sdcard root folder:
- path final is "/mnt/sdcard/extra_binary/"
- add start script on "/data/scripts/post_init.sh"
- Nginx+CGI
- Crontab
- PHP
- SSH
- and more....
- add start script on "/data/scripts/post_init.sh"
- path final is "/mnt/sdcard/extra_binary/"
add on "/data/scripts/post_init.sh"
# Start NGINX+CGI 8080 - /php/ ->8081
# echo "UTC-01:00" > /etc/TZ # set timezone
/mnt/sdcard/extra_binary/nginx_start.sh
Server status and send command from cgi
https://192.168.1.4/cgi-bin/server_status
https://192.168.1.4/cgi-bin/cmd? ls /tmp #example ls /tmp
Get prop and move PTZ
https://192.168.1.4/cgi-bin/aqarag3/get_prop.sh?prop=sys.camera_rtsp_url #example sys.camera_rtsp_url json
https://192.168.1.4/cgi-bin/aqarag3/ptz_right.sh #example move right ptz
add on "/data/scripts/post_init.sh"
# Start PHP-WEB 8081
# echo "UTC-01:00" > /etc/TZ # set timezone
/mnt/sdcard/extra_binary/php_start.sh
add on "/data/scripts/post_init.sh"
# Start SSHD
# WARNING: password for root change in "root"
# echo "UTC-01:00" > /etc/TZ # set timezone
/mnt/sdcard/extra_binary/sshd_start.sh
add on "/data/scripts/post_init.sh"
# Start Crontab
/mnt/sdcard/extra_binary/crontab_start.sh
linked binary on bash
export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/mnt/sdcard/extra_binary/armv7l-eabihf
AqaraPOST-Homeassistant AqaraG3 HomeAssistant
AqaraCameraHubfw HACK