1
0
mirror of https://github.com/EliasKotlyar/Xiaomi-Dafang-Hacks.git synced 2025-09-09 07:30:57 +02:00

326 Commits

Author SHA1 Message Date
jmtatsch
b116141f61 Update index.html
add link to sw_night_configure.html
2018-10-19 20:06:24 +02:00
jmtatsch
e71a753005 Chisht autonight sw (#739)
* Adding autonight detection using software
Copy /config/autonight.conf.sw to /config/autonight.conf to enable software
version of autonight detection

* Fixed a bug and removed the 10 sec delay workaround.

* Adding more commandline options for testing.

* Wait for 3 sec after enabling night mode, the get things settled down

* Adding debug pages to graph the parameters

* Moved the file to proper location

* Adding sw_night_configure.html to tune the parameters

* Updated sw_night_configure.html

* Updating autonight binary to support new simpler logic
Also updating sw_night_configure.html to generate command-line options for autonight

* Forgot to add the correct autonight binary

* Fixing eq2 condition in autonight binary

* Fixing yet another bug in autonight binary

* replace binary
2018-10-14 22:08:39 +02:00
Julian Tatsch
0038e23f21 call action.cgi directly, fixes #600 2018-09-05 08:15:41 +02:00
Gysmo
7221890c5a Title and version updated in UI (#629) 2018-08-09 11:06:08 +02:00
Elias Kotlyar
7d74e891c9 Bootloader 2018-07-30 22:07:22 +02:00
Elias Kotlyar
e0077234df Merge remote-tracking branch 'origin/master' 2018-07-30 21:59:16 +02:00
Elias Kotlyar
eda540bf49 Added Dump Bootloader 2018-07-30 21:59:08 +02:00
nik0
92fc6cb7db TTF font support !! 2018-07-25 23:16:11 +02:00
Harry Gonzalez
1c76e0e00b Tweak Motion Sensitivity Description (#585)
Tweak Motion Sensitivity Description
2018-07-19 16:46:55 +02:00
nik0
0f5c66c5ab Inverse motor movements when flipped (#570)
* Flip improvement
Gui reflect flip status
motor movments are inversed when flipped

* Flip improvement
Gui reflect flip status
motor movments are inversed when flipped
2018-07-16 10:15:09 +02:00
nik0
616afb05e5 Make image flip persist on reboot (#569)
* Basic keep image flip at reboot
settings page could be improved

* Basic keep image flip at reboot
settings page could be improved
2018-07-14 09:47:27 +02:00
tookus123
517df0833c Fix video size setting in web ui Settings page (#562)
* Fix video size setting in web ui Settings page

Video size gets stuck at 1600x900. Current grep isn't specific enough to pick up the video size setting from rtspserver.conf. It doesn't take into account  #commented lines with video sizes and by default, greps the "1600" part of AUDIOINBR=16000 which is why it's always reverts back to 1600x900 unless AUDIOINBR is set to a different value.  Since there's only 1 Video Size selector, both RTSPH264OPTS and RTSPMJPEGOPTS will always be set to the same size in rtspserver.conf. Therefor, grepping either of them should be sufficient to set the "selected" value.

* Update status.cgi - Fix username/password fields

Fix username and password fields so they don't show "/" for the username and "*" for the password when no username and password is set.
2018-07-11 02:26:17 +02:00
jmtatsch
301dadc183 Update action.cgi
Current motor driver does not differentiate between horizontal and vertical calibration
2018-07-02 10:31:52 +02:00
jmtatsch
7e04fa931a Update status.cgi
remove differentiation between horizontal and vertical calibration
2018-07-02 10:28:53 +02:00
jmtatsch
5891d5164c Update action.cgi
Fix #535 rtsp-h264-with-segmentation stop not existing anymore
2018-06-30 03:56:09 +02:00
jmtatsch
ba73021097 Update getMotionInfo.cgi
Fix #535 false 'w' switch for ps
2018-06-30 03:51:08 +02:00
nik0
44ca9999fe Update action.cgi 2018-06-27 13:59:00 +02:00
nik0
d60788f08b Add web ui for actions on motion (#528) 2018-06-26 19:02:50 +02:00
nik0
f029ce0fe0 Audio and framerate settings (#523)
* Audio and framerate settings
- Enable audio AES filter
- Now can choose more audio in/out bitrate
  Please note the constraints:
   * Filtering AES, NS is available with in bitrate under or egal 16000
   * When select OPUS out birate is 48000
   * When select PCM or PCMU in bitrate shall be egal to out bitrate

- Can now control video FPS
     * I noticed that some configuration freeze the video (for example 1/1)

* Delete webrtc_profile.ini

* Update status.cgi

* Update rtspserver.conf.dist
2018-06-25 21:25:33 +02:00
Wolfgang Merkt
bda699800a Close link to fix UI bug - entire page was "clickable" (#494) 2018-06-18 04:51:56 +02:00
Dave Walker
16fa3f7104 Ugh, missile.cgi had a relative source aswell (#493)
In the previous commit, func.cgi sourcing was fixed by adding a leading
"./" to the filename.

However, I missed that missile.cgi had a cheeky source of header.cgi
which I missed in the previous change.

Closes: #491

Signed-off-by: Dave Walker (Daviey) <email@daviey.com>
2018-06-18 04:50:25 +02:00
Dave Walker (Daviey)
b95be6ebbc Fix CGI execution and add cgi stderr logging
Change #478 introduced a regression with the updated busybox where ".",
seems not be part of the default $PATH.

The cgi scripts were sourcing "func.cgi", but this could not be found in
the new default $PATH, and therefore failed to execute. This meant that
the web-ui was unable to make changes and execute commands.

This has been resolved by putting a leading "./" for the script, making
it now ./func.cgi.

In addition, this also adds the lighttpd option server.breakagelog,
which enables stderr logging to /tmp/lighttpd-cgi-stderr.log (so 500
internal errors output is now logged to file (previously just the error
500 was in the webserver logs).

Closes: #491

Signed-off-by: Dave Walker (Daviey) <email@daviey.com>
2018-06-17 21:35:03 +01:00
Dopeyr
ac9bb53863 Check if the sdcard is mounted readonly and warn user (#467) 2018-06-16 08:01:50 +02:00
nik0
7165239069 Script execution (#462)
* Restore audio test
add the possibility to choose audio from audio delivered with original firmware
or choose audio from /system/sdcard/Media folder

* OSD was not displayed anymore if AXIS not set in OSD
I guess it is a regresion from previous commit (add the value in file with rewrite_config)

* Change the way the scripts (detection are launched)
2018-06-15 08:19:04 +02:00
MarkDownPhotos
19d6d7877a Fixes #454 (#458)
* Fix syntax errors,(fixes #454)

* Prevent writing axis to osd.conf
2018-06-13 05:06:15 +02:00
nik0
6d74d6a65c Restore audio test (#442)
add the possibility to choose audio from audio delivered with original firmware
or choose audio from /system/sdcard/Media folder
2018-06-11 04:49:10 +02:00
nik0
d93681d2da Update update.html
Not working too
2018-06-09 15:30:57 +02:00
nik0
12a13c3443 Update logs.html
This was not working :-(
2018-06-09 15:30:26 +02:00
nik0
45dfeeb998 Restore audio test (#440)
* Restore audio test
add the possibility to choose audio from audio delivered with original firmware
or choose audio from /system/sdcard/Media folder

* Update action.cgi

Fix a typo and add missing quotes
2018-06-09 07:29:45 +02:00
Kaybi
52c9ecff8f Adding missings jQuery and styles in new pages
Adding missings jQuery and styles in logs.html and update.html
2018-06-07 22:08:16 +02:00
Kaybi
67f3e6e868 Adding missings jQuery and styles in new pages
Adding missings jQuery and styles in logs.html and update.html
2018-06-07 22:07:27 +02:00
Kaybi
00ad9de515 Missing jQuery and styles in new pages
Adding missings jQuery and styles in logs.html and update.html
2018-06-07 22:05:16 +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
jmtatsch
c3f9b9d66c Update update.cgi
fix #412
2018-06-07 07:40:57 +02:00
MarkDownPhotos
4e82215ba9 Add PTZ presets and other optimizations. (#389)
* add PTZperset function

* Display asix to OSD

* delete source

* add motor_PTZ function

* Motor adds f parameter (calibrate) and is compatible with the new version of DAFANG.

* calibrate,compatible newer models.

* OSD set POSY 0

* Wait for the previous command to run before running

* Disable Statements That Cause MQTT Alerts

* fix mqtt

* Fixed issue where multi-tasking motor was not moved to the specified position and was interrupted

* Add limit on the number of snapshots

* Add OSD Display AXIS

* Repair Limit Snapshot Number Does Not Take Effect..

* Enable log option

* Keep the original time style

* Keep default osd settings

* Modify loger as a logger

* Api.cgi is not in use

* Clear the old DAFANG calibration failure code.

New DAFANG Run the `/system/sdcard/bin/motor -d f` command to calibrate.

Old and generous Please run `/system/sdcard/bin/motor -d h && /system/sdcard/bin/motor -d v` command to calibrate

* Change the zero point of the motor calibration coordinate to the middle point of the motor.

* Fix the coordinate display of the new motor command.

* fix typo
2018-06-07 07:34:34 +02:00
David Barrera
f25b88f40a Fix camera control labels (#415)
Labels for MQTT status and control servers were swapped.
2018-06-06 06:24:31 +02:00
nik0
9552b8349e Update action.cgi 2018-06-05 18:17:14 +02:00
jmtatsch
54850c05e3 Update status.cgi
fix typo
2018-06-05 03:16:34 +02:00
nik0
9b017cded2 Fix video settings merge (#408)
* Add configuration for audio
- New sub menu for audio in (mic)
- Add birate configuration
- double click on tabs name in log page will clear the logs

* Add configuration for audio
- New sub menu for audio in (mic)
- Add birate configuration
- double click on tabs name in log page will clear the logs

* New video settings
- Can configure bitrate and video format

* Bad merge of videosettings
2018-06-04 13:42:48 +02:00
nik0
9c94f42ee9 Video settings (#405)
* Add configuration for audio
- New sub menu for audio in (mic)
- Add birate configuration
- double click on tabs name in log page will clear the logs

* Add configuration for audio
- New sub menu for audio in (mic)
- Add birate configuration
- double click on tabs name in log page will clear the logs

* New video settings
- Can configure bitrate and video format
2018-06-03 17:46:04 +02:00
nik0
0d05a26f3e Add configuration for audio (#404)
* Add configuration for audio
- New sub menu for audio in (mic)
- Add birate configuration
- double click on tabs name in log page will clear the logs

* Add configuration for audio
- New sub menu for audio in (mic)
- Add birate configuration
- double click on tabs name in log page will clear the logs
2018-06-03 14:48:46 +02:00
Julian Tatsch
fe3097b33d add tinyCam integration 2018-05-24 21:10:07 +02:00
Dopeyr
882cbac77f Add an API call to trigger sendPictureMail (#373) 2018-05-24 07:21:43 +02:00
Julian Tatsch
1de89f1a28 add web ui for autoupdate 2018-05-24 06:34:59 +02:00
jmtatsch
d427a4a073 Update index.html
fix css url for dark theme
2018-05-18 05:03:34 +02:00
Tim Sedlmeyer
650f8c97b6 Update status.cgi to reflect refactor of osd to osd.conf (#342) 2018-05-10 08:33:58 +02:00
Julian Tatsch
0a58b14425 fix setting resolution via ui 2018-05-10 04:48:20 +02:00
Julian Tatsch
55fde785d7 init rtspserver.conf from dist and refactor osd to osd.conf 2018-05-09 08:18:02 +02:00
petur
480fc5ac0c only toggle gpio for ircut, keep state in tmp file (#325) 2018-05-08 22:02:44 +02:00
Tim Sedlmeyer
719cf18eb4 Before setting http password url decode it (#335) 2018-05-08 02:12:33 +02:00