Commit Graph

588 Commits

Author SHA1 Message Date
Alfonso Gamboa
2fcd3dcee6 further enhance imp_helper, check variables first, and only set if changed 2022-09-30 17:03:12 -07:00
Leo
b7b1e37854
Fix imp_helper.sh from a recursive function call rather than looping (#302)
This script was calling hi/lo updates without honoring the loop
interval. This was also calling itself recursively which could lead
to memory issues for long running cameras.
2022-09-30 16:59:42 -07:00
Alfonso Gamboa
de23abb057 update checksum 2022-09-28 17:19:06 -07:00
Leo
4d6c1d8651
Added auto bind feature for offline / cloud-less setup (#303)
* Added auto bind feature for offline / cloud-less setup

Automatically sets bindOk=1 when WiFi settings are detected without
needing the camera to interact with the Wyze cloud. This feature
can be enabled when ENABLE_AUTO_BIND=true is set in wz_mini.conf

* Added 'WiFi Connected' audio message when QR code is valid

* Fixed the auto bind script improperly checking WiFi status

/configs isn't mounted during the init phase from the SD card and
as a result, the checks for whether bindOk=0 done by the init
script was ineffective. The script now mounts it if necessary before
checking.

* Updated autobind feature to use ENABLE_SELFHOSTED_MODE option

The feature to update the bindOk value will now use the same
`ENABLE_SELFHOSTED_MODE` option as the self-hosted iCamera patch.

This feature should only be used by advanced users in isolated
networks or when the user does not intend to use the Wyze App or
cloud services.

* Updated ENABLE_SELFHOSTED_MODE to false by default

The default should be to rely on Wyze servers. Ooops.
2022-09-28 17:17:49 -07:00
Leo
fe4c982796
Fixed broken iCamera patch script for Wyze Cam v3 (#315)
The return code for `false||return` is non-zero, which causes the
script to fail when the v2 checks fail.

Tested on my v3 and it seems to apply the patch properly now.
2022-09-28 17:16:45 -07:00
Alfonso Gamboa
46a41b8331 update readme 2022-09-27 17:56:14 -07:00
Leo
9973c5869d
Fixed configbackup init script not backing up files (#304)
* Fixed configbackup init script not backing up files

The /configs directory isn't mounted at this point in the boot process,
as a result this backup doesn't actually work and just copies an empty
directory every time.

* Tested on T20 and added missing /configs mount in backup script
2022-09-27 17:50:56 -07:00
Leo
b7c27c73bd
Run a NTP client at startup (#301)
* Added NTP service to startup

A NTP service script will run a NTP client on a custom NTP server
in order to synchronize the camera's clock. This may be useful in
cases where the camera has to use a local NTP server rather than
the one hard coded in iCamera.

To use this, simply set your desired NTP server in the `NTP_SERVER`
option in `wz_mini.conf`.

* Kill timesync if a custom NTP server is used

When using a custom NTP server, the timesync service with its
hard-coded NTP servers should not be running.
2022-09-27 17:50:21 -07:00
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
virmaior
5b90d98ce5
fixes for recent errors (#277) 2022-08-26 23:17:38 -07:00
Alfonso Gamboa
80ee199cb6 update checksum 2022-08-20 19:08:03 -07:00
virmaior
da3ffcd467
updates to www (#264)
* updated shared.cgi to read T20 firmware ver

* improvements and fixes

1. now composes urls for RTSP
2. css improvements
3. added diagnostics (got to test first hand with a corrupt file system SD card!)
4. fixed reboot not rebooting ...
5. remove debug code from jpeg.cgi
2022-08-20 19:07:35 -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
7e02536c79 update logging output for v4l2rtspserver 2022-08-18 23:12:10 -07:00
Alfonso Gamboa
fa4144a8f4 add fw version and update boot script 2022-08-18 23:04:44 -07:00
Alfonso Gamboa
16f8f7e477 add logging for mounts 2022-08-18 22:26:20 -07:00
Alfonso Gamboa
16c89dca72 fix gateway supervisor function for usb direct monitoring 2022-08-18 21:40:38 -07:00
Alfonso Gamboa
9212bd641d add delay for dnsmasq start 2022-08-18 21:39:04 -07:00
Alfonso Gamboa
fa132925be add dnsmasq and cron to backup script 2022-08-13 17:23:29 -07:00
Joshua Wang
3a39f5c89a
fix: change rmtp typo to rtmp (#239) 2022-08-13 17:20:09 -07:00
Alfonso Gamboa
0549b9b43d update checksum 2022-08-11 14:09:11 -07:00
virmaior
5ff8ad6ce6
updated shared.cgi to read T20 firmware ver (#232) 2022-08-11 14:08:51 -07:00
Alfonso Gamboa
86bd5a85bd update checksum 2022-08-09 18:26:37 -07:00
virmaior
91e76ec944
fixes to www (#231)
fixed display of camera version, fixed issue jpeg.cgi, added diagnostics page, minor css improvements, made shared.cgi for common code between diagnostics and config
2022-08-09 18:26:14 -07:00
baudneo
e7ccea5454
README readability (#230)
* Create README.md

* Update README.md

Enhance readability
2022-08-09 14:43:11 -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
virmaior
82101dcc6a
fix bad anchor (#206)
* updates to config.cgi and jpeg.cgi

* Update config.cgi

* config.cgi: type checks, blank line keep, css

* renamed to config.css (other css not used)

* fix bad link
2022-07-25 15:17:42 -07:00
Alfonso Gamboa
bc0c6b0c13 update readme 2022-07-25 08:22:51 -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
virmaior
38b0ad69d7
web fixes and improvements (#205)
* updates to config.cgi and jpeg.cgi

* Update config.cgi

* config.cgi: type checks, blank line keep, css
2022-07-23 23:39:09 -07:00
Alfonso Gamboa
3b1561d805 update checksum 2022-07-22 20:41:12 -07:00
Alfonso Gamboa
3175ed3d08 add local dns option 2022-07-22 20:39:53 -07:00
Alfonso Gamboa
b59823b61e enhance car web control 2022-07-21 22:08:34 -07:00
virmaior
16def56fc9
no longer auto reboots, allows reverting to previous edits (#198)
* updates to config.cgi and jpeg.cgi

* Update config.cgi
2022-07-21 22:06:35 -07:00
Alfonso Gamboa
9a96eec5a1 update checksum 2022-07-20 19:33:48 -07:00
Alfonso Gamboa
57bd0e8d94 add lsusb output 2022-07-20 19:31:20 -07:00
virmaior
f0d8c03792
updates to config.cgi and jpeg.cgi (#196) 2022-07-20 19:16:27 -07:00
Alfonso Gamboa
3302897fd1 update checksum 2022-07-18 08:00:16 -07:00