Commit Graph

88 Commits

Author SHA1 Message Date
Leo
10dba022a5
Added 'self-hosted' iCamera patch option to fix intermittent network issues (#312)
* Added iCamera patch option to fix intermittent network issues

This commit adds a ENABLE_ICAMERA_PATCH option to wz_mini.conf which
will patch the iCamera binary on the most recent firmware version so
that the device doesn't try bouncing the wireless interface when
iCamera is unable to reach the internet.

The iCamera program will be patched as part of the boot process when
`ENABLE_ICAMERA_PATCH=true` is set in wz_mini.conf. This patch can
be undone by setting `ENABLE_ICAMERA_PATCH=false` and then rebooting.

* Updated iCamera patch boot script to uninstall patch on failure

In case of an unsupported firmware update / downgrade, the iCamera
patch will uninstall itself and revert back to the stock executable.

* Set ENABLE_ICAMERA_PATCH default to false

The iCamera patch shouldn't be enabled unless network issues are
present. The user can toggle this option if they intend to run
the Wyze Cam on an isolated network.

* Fixed wait_for_icamera pgrep when running patched iCamera

The iCamera process may not be at /system/bin/iCamera if we run
the patched version of it.

This function is used to ensure that iCamera's running before
certain things happen. A search for just 'iCamera' should be
sufficient for this use case.

* Updated the iCamera patch feature as ENABLE_SELFHOSTED_MODE

This should make it clear this option should only be used in self-hosted
scenarios as it will break functionality with the Wyze App or other Cloud
services.

* Added iCamera patch support for v2 firmware 4.9.8.1002

This iCamera patch should handle the Wyze Cam v2 firmware 4.9.8.1002
and prevent the firmware from restarting the wireless network after
being unable to connect to the Wyze servers.

* Fixed iCamera build date check

Check was grepping for 'Build' which may include the build time
instead of build date.

* Updated readme for selfhosted iCamera patch feature

* Patched LED lights for v2 firmware

After connecting to WiFi, the blue LED status light will no longer blink.

* Changed the v2 status LED to remain on when connected

Looking at Wyze's documentation, the LED is supposed to be on when
it's connected and working. The off state from the last commit was
for the powered off state only.
2022-09-27 17:48:46 -07:00
Alfonso Gamboa
4cb55cbb1e update logging on official rtsp fw 2022-09-01 20:53:03 -07:00
Alfonso Gamboa
8d85c31649 update checksum 2022-08-26 23:18:14 -07:00
Alfonso Gamboa
80ee199cb6 update checksum 2022-08-20 19:08:03 -07:00
Alfonso Gamboa
6f7c7111ce update checksum 2022-08-19 22:25:57 -07:00
Alfonso Gamboa
a8ce83e17a fix libcallback jpeg issue on t20 2022-08-19 22:25:32 -07:00
Alfonso Gamboa
ba366eb0c9 update checksum 2022-08-18 23:14:56 -07:00
Alfonso Gamboa
fa132925be add dnsmasq and cron to backup script 2022-08-13 17:23:29 -07:00
Alfonso Gamboa
0549b9b43d update checksum 2022-08-11 14:09:11 -07:00
Alfonso Gamboa
86bd5a85bd update checksum 2022-08-09 18:26:37 -07:00
Alfonso Gamboa
ee2fd1b757 fix execution order for dnsmasq 2022-08-08 11:34:03 -07:00
Alfonso Gamboa
df0d8631b6 update checksum 2022-08-07 19:01:28 -07:00
gtxaspec
9ce6bbd92a
New init system (#216)
* new init system

* update new init scripts

* update checksum

* fix broken audio promps with new init scripts

* fix debug/upgrade mode

* fix bonding and eth0 hw addr

* add checksum

* fix bonding setup

* add rtsp auth disable

* adjust network init scripts path

* recreated repo and re added cron scripts (#211)

* recreated repo and re added cron scripts

* rename cron script and move it to the right folder.

* Delete .vs directory

remove .vs directory

* add deubg message to bonding rc.d script

* add crontab variable to wz_mini.conf

* fix mp4write

* add syslog debug feature

* fix syslog init blocking

* fix syslog save function

* increase imp_helper rerun delay

* update init scripts

* fix bonding and usb-direct

* update checksum

* add netmon for bonding

* fix supervisor function

* update model detection

* fix debugging injection on T20 devices

Co-authored-by: sideup66 <47700565+sideup66@users.noreply.github.com>
2022-08-07 18:46:00 -07:00
Alfonso Gamboa
98743f21c9 patch ucamera from normal mirrored, to normal 2022-08-03 19:54:00 -07:00
Alfonso Gamboa
4a6a5b2c4b fix webcam mode orientation 2022-08-03 19:38:22 -07:00
Alfonso Gamboa
fcf827118d update dnsmasq.conf to allow local hosts file 2022-07-26 07:58:11 -07:00
Alfonso Gamboa
46d65b87ce update dnsmasq 2022-07-26 07:46:32 -07:00
Alfonso Gamboa
f713534805 update readme 2022-07-25 15:19:33 -07:00
Alfonso Gamboa
79a25ff331 improve v2 install script 2022-07-25 07:14:10 -07:00
Alfonso Gamboa
1a48a779e3 add all stop to car_control.sh 2022-07-23 23:40:12 -07:00
Alfonso Gamboa
3b1561d805 update checksum 2022-07-22 20:41:12 -07:00
Alfonso Gamboa
b59823b61e enhance car web control 2022-07-21 22:08:34 -07:00
Alfonso Gamboa
9a96eec5a1 update checksum 2022-07-20 19:33:48 -07:00
Alfonso Gamboa
3302897fd1 update checksum 2022-07-18 08:00:16 -07:00
Alfonso Gamboa
cc78be70b2 patch wz_user for usb_direct 2022-07-18 07:41:02 -07:00
Alfonso Gamboa
bec44c80ea update checksum 2022-07-17 22:14:07 -07:00
Alfonso Gamboa
cd44f67dc7 update checksum: 2022-07-17 22:00:13 -07:00
Alfonso Gamboa
7f3407fe78 fix rtsp password 2022-07-17 21:20:41 -07:00
Alfonso Gamboa
3f73441116 wifi AP not needed when using eth0, after initial wifi setup has already completed 2022-07-17 16:48:30 -07:00
Alfonso Gamboa
263fc509b2 fix shebang error in index.cgi 2022-07-17 15:24:11 -07:00
Alfonso Gamboa
315dec23fc add car support to web server 2022-07-17 15:14:08 -07:00
Alfonso Gamboa
1fee46a051 add honking feature 2022-07-15 16:48:10 -07:00
Alfonso Gamboa
2365a35749 fix function order 2022-07-15 11:46:18 -07:00
Alfonso Gamboa
c6f6674e4b fix upgrade mode and script execution in rc.local.d 2022-07-15 11:36:01 -07:00
Alfonso Gamboa
636b3ebac2 update checksum 2022-07-14 16:01:45 -07:00
Alfonso Gamboa
16e3369ef1 fix script and add car changes to conf.dist 2022-07-14 14:14:39 -07:00
Alfonso Gamboa
84c893e593 add car supports for unsupported devices
added support for tto usecar accessory with devices normally unsupported.  You may control it via the command line.  Unsupported devices will not work using the car app.
2022-07-14 13:56:47 -07:00
Alfonso Gamboa
3fa72158e7 change order of detection for car 2022-07-13 18:16:09 -07:00
Alfonso Gamboa
77a4bdd8f0 add support for car fw and enable drivers 2022-07-13 18:02:17 -07:00
Alfonso Gamboa
1b924ac39a adjust imp_helper run delay 2022-07-08 17:58:50 -07:00
Alfonso Gamboa
c9acdc25bc improve the method of setting variables via the impdbg utility 2022-07-08 17:49:17 -07:00
Alfonso Gamboa
f1fe733db6 change libcallback loading
Since we now hook and bind our own copy of app_init.sh, we no longer need to copy iCamera to a staging directory to load libcallback
2022-06-27 23:54:39 -07:00
Alfonso Gamboa
6c3fd8a067 remove old version upgrade script, fix rare over-write upgrade-script issue 2022-06-17 00:06:01 -07:00
Alfonso Gamboa
7d43095b72 change camera model detection 2022-06-16 23:26:14 -07:00
Alfonso Gamboa
be472d5afa fix upgrading from old layout 2022-06-16 01:15:26 -07:00
Alfonso Gamboa
58afbccded move upgrade-run.sh to PATH 2022-06-15 19:13:58 -07:00
Alfonso Gamboa
7e8ee5a09c revise path to v2 kernel modules 2022-06-14 01:01:47 -07:00
Alfonso Gamboa
f827a5fbfe fix audio in upgrade script for HL_PAN2 2022-06-13 02:11:57 -07:00
Alfonso Gamboa
b47c67ec5a delete upgrade dir after failed download 2022-06-12 17:47:15 -07:00
Alfonso Gamboa
8ee7a39e1a make sure we always use latest upgrade script 2022-06-04 05:08:18 -07:00