mirror of
https://github.com/gtxaspec/wz_mini_hacks.git
synced 2025-07-04 02:09:48 +00:00
autostart cron
Autostart cron + add url c1ybkrkbr1j10x.credentials.iot.us-west-2.amazonaws.com to the hosts file entries by pulling from a host resolution. This will automatically address any ip changes by simply rebooting the camera.
This commit is contained in:
parent
a99852eda7
commit
d9416d6221
12
start_cron.sh
Normal file
12
start_cron.sh
Normal file
@ -0,0 +1,12 @@
|
||||
#!/bin/sh
|
||||
##Verify the network is up before continuing
|
||||
until ping -c1 www.google.com >/dev/null 2>&1; do :; done
|
||||
|
||||
/opt/wz_mini/tmp/.bin/crond -b -c /opt/wz_mini/etc/crontab/
|
||||
|
||||
touch /tmp/test_hosts
|
||||
echo 127.0.0.1 localhost >>/tmp/test_hosts
|
||||
dns=$(cat /etc/resolv.conf | egrep -o '([0-9]{1,3}\.){3}[0-9]{1,3}' | head -1)
|
||||
server=$(nslookup c1ybkrkbr1j10x.credentials.iot.us-west-2.amazonaws.com $dns | awk -F': ' 'NF==2 { print $2 } ' | head -1)
|
||||
echo $server c1ybkrkbr1j10x.credentials.iot.us-west-2.amazonaws.com >>/tmp/test_hosts
|
||||
mount --bind /tmp/test_hosts /etc/hosts
|
85
wz_mini.conf
Normal file
85
wz_mini.conf
Normal file
@ -0,0 +1,85 @@
|
||||
#wz_mini configuration
|
||||
|
||||
|
||||
#### W E B CAMERA###
|
||||
##THIS MODE DISABLES EVERYTHING AND IT WILL
|
||||
## WORK AS A WEB CAMERA FOR YOUR PC ***ONLY***
|
||||
WEB_CAM_ENABLE="false"
|
||||
WEB_CAM_BIT_RATE="8000"
|
||||
WEB_CAM_FPS_RATE="25"
|
||||
|
||||
#####NETWORKING#####
|
||||
HOSTNAME="WyzeCam"
|
||||
|
||||
ENABLE_USB_ETH="false"
|
||||
ENABLE_USB_ETH_MODULES="asix"
|
||||
|
||||
ENABLE_USB_DIRECT="false"
|
||||
USB_DIRECT_MAC_ADDR="02:01:02:03:04:08"
|
||||
|
||||
ENABLE_USB_RNDIS="false"
|
||||
|
||||
ENABLE_IPV6="false"
|
||||
|
||||
ENABLE_WIREGUARD="false"
|
||||
WIREGUARD_IPV4=""
|
||||
WIREGUARD_PEER_ENDPOINT=""
|
||||
WIREGUARD_PEER_PUBLIC_KEY=""
|
||||
WIREGUARD_PEER_ALLOWED_IPS=""
|
||||
WIREGUARD_PEER_KEEP_ALIVE=""
|
||||
|
||||
ENABLE_IPTABLES="true"
|
||||
|
||||
ENABLE_NFSv4="false"
|
||||
|
||||
#####ACCESSORIES#####
|
||||
REMOTE_SPOTLIGHT="false"
|
||||
REMOTE_SPOTLIGHT_HOST="0.0.0.0"
|
||||
|
||||
#####VIDEO STREAM#####
|
||||
RTSP_LOGIN="admin"
|
||||
RTSP_PASSWORD=""
|
||||
RTSP_PORT="8554"
|
||||
|
||||
RTSP_HI_RES_ENABLED="false"
|
||||
RTSP_HI_RES_ENABLE_AUDIO="false"
|
||||
RTSP_HI_RES_FPS=""
|
||||
RTSP_HI_RES_MAX_BITRATE=""
|
||||
RTSP_HI_RES_TARGET_BITRATE=""
|
||||
RTSP_HI_RES_ENC_PARAMETER=""
|
||||
|
||||
RTSP_LOW_RES_ENABLED="false"
|
||||
RTSP_LOW_RES_ENABLE_AUDIO="false"
|
||||
RTSP_LOW_RES_FPS=""
|
||||
RTSP_LOW_RES_MAX_BITRATE=""
|
||||
RTSP_LOW_RES_TARGET_BITRATE=""
|
||||
RTSP_LOW_RES_ENC_PARAMETER=""
|
||||
|
||||
#####RTMP STREAMING#####
|
||||
#### REQUIRES RTSP ####
|
||||
### AND RTSP AUDIO ###
|
||||
RTMP_STREAM_ENABLED="false"
|
||||
RTMP_STREAM_FEED="video1_unicast"
|
||||
RMTP_STREAM_SERVICE="youtube"
|
||||
RTMP_STREAM_DISABLE_AUDIO="false"
|
||||
RTMP_STREAM_YOUTUBE_KEY=""
|
||||
RTMP_STREAM_TWITCH_KEY=""
|
||||
RTMP_STREAM_FACEBOOK_KEY=""
|
||||
|
||||
#####GENERAL#####
|
||||
ENABLE_SWAP="true"
|
||||
ENABLE_USB_STORAGE="false"
|
||||
ENABLE_EXT4="false"
|
||||
ENABLE_CIFS="false"
|
||||
DISABLE_FW_UPGRADE="false"
|
||||
AUDIO_PROMPT_VOLUME="50"
|
||||
ENABLE_MP4_WRITE="false"
|
||||
|
||||
#####DEBUG#####
|
||||
#drops you to a shell via serial, doesn't load app_init.sh
|
||||
DEBUG_ENABLED="false"
|
||||
DEBUG_INITRAMFS_ENABLED="false"
|
||||
DEBUG_PASSWORD="false"
|
||||
|
||||
#####SCRIPTING#####
|
||||
CUSTOM_SCRIPT_PATH="/opt/wz_mini/etc/crontab/start_cron.sh"
|
Loading…
x
Reference in New Issue
Block a user