Skip to content

Add static binary on Aqara G3 cam - NGINX - PHP - CGI ...

Notifications You must be signed in to change notification settings

sdavides/AqaraG3-armv7-binary

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

77 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AqaraG3-armv7-binary

Add static binary on Aqara G3 cam - NGINX - PHP - CGI ...

immagine

Info

This is a repository of armv7l static binaries of various versions compatible with AqaraG3.

Requirement

  • 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)

Install

  • 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....

NGINX

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

immagine

CGI-bin

Server status and send command from cgi

https://192.168.1.4/cgi-bin/server_status

immagine

https://192.168.1.4/cgi-bin/cmd? ls /tmp #example ls /tmp

immagine


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

immagine

https://192.168.1.4/cgi-bin/aqarag3/ptz_right.sh #example move right ptz

immagine

PHP

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

immagine

SSH

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

Crontab

add on "/data/scripts/post_init.sh"

# Start Crontab
/mnt/sdcard/extra_binary/crontab_start.sh

Extra bin

linked binary on bash

export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/mnt/sdcard/extra_binary/armv7l-eabihf

See also

AqaraPOST-Homeassistant AqaraG3 HomeAssistant

AqaraCameraHubfw HACK

m3u8-HLS-Homeassistant

EPGItaly-Homeassistant

About

Add static binary on Aqara G3 cam - NGINX - PHP - CGI ...

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages