Commit Graph

164 Commits

Author SHA1 Message Date
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
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
Joshua Wang
3a39f5c89a
fix: change rmtp typo to rtmp (#239) 2022-08-13 17:20:09 -07:00
Alfonso Gamboa
ee2fd1b757 fix execution order for dnsmasq 2022-08-08 11:34:03 -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
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
3175ed3d08 add local dns option 2022-07-22 20:39:53 -07:00
Alfonso Gamboa
b3b6843012 remove old while loop from usb_direct and usb_rndis 2022-07-18 07:53:57 -07:00
Alfonso Gamboa
cc78be70b2 patch wz_user for usb_direct 2022-07-18 07:41:02 -07:00
Alfonso Gamboa
a26bf4f8f8 change function order in wz_user 2022-07-17 21:59:42 -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
virmaior
98d61c04fc
Update wz_mini.conf.dist 2022-07-17 17:29:10 +09:00
virmaior
8b772c503a
include WEB_SERVER_ENABLED in wz_mini.conf.dist 2022-07-17 17:28:01 +09:00
virmaior
cfcad72bbf
Update wz_user.sh 2022-07-17 17:09:37 +09:00
virmaior
c72441ea11
Merge branch 'gtxaspec:master' into master 2022-07-16 21:20:06 +09:00
Alfonso Gamboa
c6f6674e4b fix upgrade mode and script execution in rc.local.d 2022-07-15 11:36:01 -07:00
virmaior
d51afff1b8
add webserver check 2022-07-15 17:55:36 +09: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
68b0e2092e new libcallback release 2022-07-13 02:49:26 -07:00
Alfonso Gamboa
79b4b6aaa3 remove atbm log disable statement, we set this using a kernel module parameter now 2022-07-08 19:38:15 -07:00
Claude Meyer
eacf29d905 added support for multiple custom scripts by simply creating them in wz_mini/etc/rc.local.d 2022-07-08 21:12:11 -05:00
Alfonso Gamboa
fe1a2f1497 disable wifi driver debug information
disable all debug output from wifi drivers, reducing dmesg log spam
2022-07-08 17:53:54 -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
a901c24868 Prepare support to enable fsck.vfat on boot 2022-07-08 16:28:07 -07:00
Alfonso Gamboa
9d618c6a99 add wifi driver support for atomcam2 testing 2022-07-07 22:14:57 -07:00
Alfonso Gamboa
478b1ceba0 enable libcallback by default
libcallback is now enabled by default..  libcallback commands, such as cmd <function> are now operational, independent of the rtsp server
2022-07-02 02:08:25 -07:00
Alfonso Gamboa
b6276ca1df add comments, clean up 2022-07-02 01:45:13 -07:00
Alfonso Gamboa
6c8f59f741 Reduce log level of 8189 driver
8189 driver spams logs with debug info, reduce the level so only the initialization information is logged.
2022-07-01 21:42:24 -07:00
gtxaspec
f1c0e3725e
Merge pull request #149 from skilau/Fix_Workaround_Issue_145
Fix (workaround) for issue #145.
2022-07-01 20:26:01 -07:00
Alfonso Gamboa
19ff6e3fcd Backup /configs & /params
Backup /configs & /params partitions to <sd_root>/.wz_backup
2022-07-01 20:22:50 -07:00
Scott Kilau
986fcc447d Merge branch 'master' into Fix_Workaround_Issue_145 2022-07-01 15:07:45 -05:00
Alfonso Gamboa
5db0faf000 change wz_post.sh execution order
Change the order in which wz_post.sh runs, before we used to execute right before mounting /configs, now we execute after /configs and /params, but before app_init.sh
2022-07-01 00:06:50 -07:00
Alfonso Gamboa
d87d43241f add DISABLE_MOTOR function for motorized devices 2022-06-30 23:31:32 -07:00
Scott Kilau
1d75c9f4fd Fix (workaround) for issue #145. 2022-06-30 17:35:14 -05:00
Alfonso Gamboa
de484789ae netfilter on t20 uses modules now 2022-06-29 01:33:46 -07:00
Alfonso Gamboa
999210e385 add 8189es for panv1
Add a newer version of the 8189es driver for the PanV1
2022-06-28 21:39:57 -07:00
Alfonso Gamboa
c5c93d27f2 fix rtmp-stream stalling execution
Run rtmp-stream.sh in the background, preventing wz_user.sh from completing execution
2022-06-27 23:55:27 -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
f42a38794e disable rndis if usb ethernet is also enabled
Disable USB RNDIS mode if USB Ethernet support is also enabled.  They are not compatible
2022-06-27 22:07:18 -07:00