1
0
mirror of https://github.com/EliasKotlyar/Xiaomi-Dafang-Hacks.git synced 2025-09-03 13:12:44 +02:00

30 Commits

Author SHA1 Message Date
Greg Thornton
43d73c3c77 Allow custom firmware repositories (#1651)
* Add repo option to autoupdate.sh

* Fix repo option in autoupdate.sh

* Use local repo when checking for updates

* Use default repo if non given in VERSION file in autoupdates.sh

* Pass custom repo to web ui and update cgi

* Add custom firmware update to web ui

* Fix update messages

* Fix update start arguments

* Fix update input labels

* Add custom upgrade button when on custom firmware
2020-12-22 07:48:59 +01:00
Greg Thornton
3fa69c9b79 GitHub token for updates (#1650)
* Add github token option to autoupdate.sh

* Use github token to check updates

* Add github token to web ui

* Use github token in web updates

* Add github tab in web ui

* Fix curl in autoupdate.sh

* Fix github curl auth
2020-12-21 12:57:23 +01:00
radinsky
40ceb7f72b Update autoupdate.sh
minor typo fix
2020-10-02 15:46:58 +03:00
Combie81
503637c819 Minor changes
Miinor test changes
Re-add split for hours back into group data pattern
2020-05-23 12:23:52 +01:00
jmtatsch
eeb1e75e3c Merge beta into master (#1415)
* New binaries:
   - lighttpd
   - openssl
   - busybox
   - v4l2rtspserver-master
       latest live libs included
       bug correction for motion detection at startup
       MJPG is back (there is still an issue with the OSD: it is
flickering)

* Manage FPS for MJPG

* Dropbear new version  (#1348)

* Dropbear new bin

* New version of Dropbear (v2019.78)

* New version of dropbear

- Use v2019.78 from https://secure.ucc.asn.au/hg/dropbear
- Change default path to "/usr/bin:/bin:/system/bin:/system/sdcard/bin/"

* Merge dropbearmulti

* New version of server:
According to PR: https://github.com/Dafang-Hacks/Main/pull/54
- Reduce video buffers per channel to two
- And enable poolsize fix by default

* Add mod_alias to lighttpd

* New binaries:
   - lighttpd
   - openssl
   - busybox
   - v4l2rtspserver-master
       latest live libs included
       bug correction for motion detection at startup
       MJPG is back (there is still an issue with the OSD: it is
flickering)

* Manage FPS for MJPG

* Dropbear new version  (#1348)

* Dropbear new bin

* New version of Dropbear (v2019.78)

* New version of dropbear

- Use v2019.78 from https://secure.ucc.asn.au/hg/dropbear
- Change default path to "/usr/bin:/bin:/system/bin:/system/sdcard/bin/"

* New version of server:
According to PR: https://github.com/Dafang-Hacks/Main/pull/54
- Reduce video buffers per channel to two
- And enable poolsize fix by default

* Add mod_alias to lighttpd

* Add directory listing of DCIM directory via lighttpd mod_alias, needs lighttpd.conf reset.

* Motion detection was not working if reduce pool was activated

* Update openRTSP according to last version of Live555 libs (#1383)

* Add night mode on/off options for the Telegram bot (#1386)

Co-authored-by: Jelle Posthuma <jelle@beyonit.nl>

* Bump bulma 0.8.2

* Merge stuff into beta that should have went there all along (#1393)

* PTZpresets.sh should not use inverted logic for motor control. (#1366)

* Allow example userscripts, with calibratePTZ example script. (#1371)

* PTZpresets.sh should not use inverted logic for motor control.

* Allow example userscripts, calibrate at boot example.

This commit changes run.sh to only execute files in /system/sdcard/config/userscripts/startup/
if they do not end with .dist. This allows example scripts to be included in the repository.

This commit also includes an example script calibratPTZ.sh.dist that will perform a PTZ calibration at boot
and if a /system/sdcard/config/cameraposition file exists it will also move the camera to the position it defines.

To enable the calibratePTZ.sh.dist demo, or any other script, copy or rename it to NOT end in .dist.
Example:
cp /system/sdcard/config/userscripts/startup/calibratePTZ.sh.dist /system/sdcard/config/userscripts/startup/calibratePTZ.sh

* enable zram by default as per the original firmware (#1323)

* enable zram by default as per the original firmware

this prevents crashes due to memory exhaustion on xiaofeng and other
64mb models

* Keep old swap variable names for backwards compatability

* Use zram swap with higher priority than sd-card swapfile

* Add configuration option for zram size

Co-authored-by: jmtatsch <jmtatsch@users.noreply.github.com>

* Update README.md

mention pull request should be against beta branch

* Add documentation about ram (#1375)

* Autoupgrade (#1374)

* New menu organisation

* Improve upgrade process by creation a VERSION file

* Add commit info in status overview

* Improve update process with VERSION file

* Typo fixies

* Fix typo in status_overview.cgi (#1388)

Latest commit leads to blank content on Overview page under the Information tab. Based on below, I think it is a typo.

/var/log/lighttpd-cgi-stderr.log
/system/sdcard/www/cgi-bin/status_overview.cgi: line 59: syntax error: unexpected "else" (expecting ")")

* remove no original f/w note from Neos SmartCam (#1389)

2 versions are available

* Minor changes / correcting labeling (#1391)

* Minor changes / correcting labeling
run.sh: blue_led also off by default
common_functions.sh: fix typo
api.cgi, system_led.cgi, index.html: Correct display of cut_ir to IR Filter
sw_night.css: make some text easier to read
index.html.js: remove blank line

Co-authored-by: Steven McCombie <smccombie@fugnet.servegame.com>

* PTZ Presets - go home (#1387)

* Complete rewrite of PTZpresets.sh

Rewrite PTZpresets.sh to have better PID handling and full posix compatibility.

* left and right ptz presets where flipped

* Fix creation of PID file

Overly aggressive search and replace error, switch out logger to echo so PID is written to fille.

* Use full path to jq

Use full path to jq so that it still works when called from action.cgi and api.cgi

* Create Xiaomi.pm

Updated Xiaomi.pm that includes basic PTZ presets support.

* Update zoneminder.md

Co-authored-by: Solomon S <slm4996@users.noreply.github.com>
Co-authored-by: Yannik Sembritzki <yannik@sembritzki.me>
Co-authored-by: Yannik Sembritzki <yannik.sembritzki@gmail.com>
Co-authored-by: Gysmo <frederic@leroux.im>
Co-authored-by: fhl206 <fhl206@gmail.com>
Co-authored-by: Combie81 <classified_one@hotmail.com>
Co-authored-by: Steven McCombie <smccombie@fugnet.servegame.com>

* Hide dpad if camera have no PTZ

* Add topic update to start update from mqtt (#1399)

Co-authored-by: gysmo38 <frederic@leroux.im>

* Viewer (#1401)

* Add html page to show files in Recording directory

* more generic code and add timelapse files

* Rebased on latest version on https://github.com/mpromonet/v4l2rtspserver
- No more memory leak (hopefully)
- latest version of live555

* Add test for update process (#1405)

* Add test for update process

* Update action.cgi

* Bug fix for Fimware commit on status overview page (#1406)

Co-authored-by: root <nicolas.ebele@gmail.com>
Co-authored-by: nik0 <1867654+nik0@users.noreply.github.com>
Co-authored-by: J Posthuma <jposthuma25@gmail.com>
Co-authored-by: Jelle Posthuma <jelle@beyonit.nl>
Co-authored-by: gysmo38 <frederic@leroux.im>
Co-authored-by: Solomon S <slm4996@users.noreply.github.com>
Co-authored-by: Yannik Sembritzki <yannik@sembritzki.me>
Co-authored-by: Yannik Sembritzki <yannik.sembritzki@gmail.com>
Co-authored-by: fhl206 <fhl206@gmail.com>
Co-authored-by: Combie81 <classified_one@hotmail.com>
Co-authored-by: Steven McCombie <smccombie@fugnet.servegame.com>
2020-05-08 21:09:36 +02:00
Gysmo
22a8cb6676 Autoupgrade (#1374)
* New menu organisation

* Improve upgrade process by creation a VERSION file

* Add commit info in status overview

* Improve update process with VERSION file

* Typo fixies
2020-04-29 21:04:33 +02:00
nik0
8947c91864 Add updating to beta branch (#1339) 2020-04-08 13:41:08 +02:00
Mike Miller
e8959dec10 Fix typo in update temp file name (#1181) 2019-10-02 09:56:05 +02:00
saipsa
9a664c95fe Fix for zero byte files overwriting local files (#783)
* Fix for zero byte files overwriting local files

This commit fixes zero byte files overwriting local files, making camera unbootable

* Update autoupdate.sh
2018-11-09 20:19:47 +01:00
Tim Sedlmeyer
565a78ba97 Update files copied to /system/sdcard/etc (#485) 2018-06-17 11:12:58 +02:00
nik0
caf1cb3789 Update autoupdate.sh (#482)
When the script is not started in /system/sdcard folder, the files are created whatever the status of the local file
2018-06-17 09:37:12 +02:00
nik0
cc00e234dc Update autoupdate.sh
Was not working :-( Create extra system/sdcard on /system/sdcard
2018-06-09 15:25:50 +02:00
nik0
282e04e911 New auto updatepage (#428)
* Update update.html

* New autoupdate page
- Autoupdate with progress bar (approximative as based on files already on card)
- associated log tab
- version in settings

* New autoupdate page
- Autoupdate with progress bar (approximative as based on files already on card)
- associated log tab
- version in settings
2018-06-07 20:40:55 +02:00
Julian Tatsch
9256cdc176 fix accidentally committed conflicts in autoupdate 2018-05-27 20:33:04 +02:00
Julian Tatsch
a4e3586857 add lighttpd.bin with PCRE 2018-05-26 09:45:20 +02:00
jmtatsch
b77b5fabee Update autoupdate.sh
fix some wording
2018-05-24 05:35:00 +02:00
jmtatsch
032b68c941 Update autoupdate.sh
fix some typos
2018-05-24 05:21:38 +02:00
jmtatsch
0cbb99e1e2 Merge branch 'master' into AutoUpdate2 2018-05-23 22:00:30 +02:00
nik0
6d1b50fdee Update autoupdate.sh 2018-05-22 11:22:01 +02:00
jmtatsch
808b9a916b Update autoupdate.sh
remove run.sh from update exclude list
2018-05-14 21:19:26 +02:00
Julian Tatsch
55fde785d7 init rtspserver.conf from dist and refactor osd to osd.conf 2018-05-09 08:18:02 +02:00
nik0
b12d92e6c6 Merge branch 'master' of https://github.com/EliasKotlyar/Xiaomi-Dafang-Hacks 2018-04-25 11:09:31 +02:00
nik0
548b4a4ade Update autoupdate.sh
Add extra exclude parameter to avoid getting libs and bin that the scripts need
I would recommend to use -x -b as parameters (-x to check file by file, and -b to have a backup)
2018-04-22 16:08:08 +02:00
nik0
dc2423c884 Update autoupdate.sh
- Add option -b to backup files before override
- Add "exclude filter" to avoid copying configuration files
2018-04-20 21:10:28 +02:00
nik0
c8a3a26b5d Autoupdate script (#244)
* Autoupdate script that allow to get the changed files from repo

* Autoupdate script that allow to get the changed files from repo

* Typo modifications

* - Trap errors
- Create folder if missing in local

* - Trap errors
- Create folder if missing in local
2018-04-20 17:06:42 +02:00
nik0
5806fb1a42 Merge branch 'master' of https://github.com/nik0/Xiaomi-Dafang-Hacks into AutoUpdate 2018-04-19 05:29:01 -07:00
nik0
335e4a9d25 - Trap errors
- Create folder if missing in local
2018-04-18 07:24:21 -07:00
nik0
ac69fd4d60 - Trap errors
- Create folder if missing in local
2018-04-18 07:22:30 -07:00
nik0
95cd0fc6e4 Typo modifications 2018-04-18 05:42:34 -07:00
ife-ubuntu-14.04
d3252f2d03 Autoupdate script that allow to get the changed files from repo 2018-04-18 05:35:04 -07:00