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

103 Commits

Author SHA1 Message Date
Julian Tatsch
d32b5e19f5 fixes #1833 2022-12-30 13:35:02 +01:00
timstanley1985
7aa86b916f Add web server control script (#1714) 2021-03-21 20:06:38 +01:00
timstanley1985
a163f4456d SSH Control script (#1711) 2021-03-21 09:09:52 +01:00
Julian Tatsch
f7c4a0ef49 Merge branch 'master' into beta 2021-03-13 20:13:59 +01:00
yerlandinata
bae6374a42 Fix controlscripts/rtsp (#1701)
- stopping rtsp will stop its dependents properly
2021-03-08 20:54:02 +01:00
Greg Thornton
4f304046fa Mdns responder (#1649)
* Add mDNSResponder

* Add mDNSResponder to web ui

* Fix mDNSResponder pid location
2020-12-21 13:00:24 +01:00
Ben Russell
be4402631a Fix differences between Web UI services and MQTT (#1640)
* Change descriptions of MQTT topics to match Web UI (#1637)

* Allow MQTT to start/stop the "timelapse" service (#1637)

* Add manual switch for Night Mode to the sidebar (#1637)

* Add friendly names to the current list of services (#1637)

This adds a list of more user-friendly names to the services page. If a
new service is added in the future this list should be updated, or the
display name will default to the filename just as it did before.
2020-12-08 21:58:38 +01:00
Julian Tatsch
61a02eaec9 Remove traces of distinction between rtsp_h264 and rtsp_mjpeg because everything is handled now by rtsp service and both cant run at the same time anyhow. 2020-11-14 11:18:25 +01:00
Julian Tatsch
267419e100 Change remaining RTSPH264OPTS and RTSPH264OPTS to the new RTSPOPTS fixes #1574 2020-09-30 06:41:49 +02:00
gysmo38
895ff32699 Change pid filename for UI service 2020-07-16 10:25:21 +02:00
gysmo38
1e2f96612f Change rtsp and autoupdate 2020-07-16 10:25:21 +02:00
gysmo38
5a53c53b51 Change pid filename 2020-07-16 10:25:21 +02:00
gysmo38
af52ce4e5d Add toggle for control 2020-07-16 10:25:21 +02:00
gysmo38
92b7105f02 Add Backup/Restore function 2020-07-16 10:20:39 +02:00
Combie81
5548ab554f Moving config entries/cleanup
Moved some configutation options to the config files

Minor text changes

Converted a lot of spaces to tabs
2020-07-16 10:20:39 +02:00
Julian Tatsch
beb70da573 Added telnetd service for debugging 2020-04-10 10:04:13 +02:00
Julian Tatsch
a05a6e7717 Add Onvif functionality 2020-03-20 14:59:20 +01:00
Combie81
d9fde69a60 Disabling SSL / path corrections / misc changes (#1307)
* Disabling SSL / path corrections / misc changes

Lighttpd.conf.dist: Added notes for disabling SSL
SSL left as on by default
Motion.conf.dist: Change pattern to make more sense when items are listed in explorer
Change paths case
resolv.cont.dist: Added public nameservers so that NTP will work by default
rtspserver.conf.dist: Added missing settings that are created after UI page is saved anyway
sendmail.conf.dist: Clarify AUTH entry to match rest of example
recording: Add Recording to path to help seperate/categorise files
Add sub dir with date for faster dir loading
Change from MOV to REC to identify video as "recorting" type
detectionON.sh: Change group/file pattern to make list better/consistent
telegram-bot...: Remove blank line
timelapse.sh: Change path variable name to match rest of code
Add sub directories to help with loaading/filtering of files

* Update resolv.conf.dist

Commented out Publin DNS servers as requested

Co-authored-by: Steven McCombie <smccombie@fugnet.servegame.com>
2020-03-07 21:33:59 +01:00
jmtatsch
6c85a83f47 Update recording
fix port again
2020-02-24 07:53:17 +01:00
hank
d3fccb7382 Add extra status code to rtsp-h264 (#1283)
* Add extra status code to rtsp-h264

I created a cron watchdog script and when the pidfile was missing status() was returning 0. I made it return 2 in this case. This makes my script work as intended.

* Update rtsp-h264

Co-authored-by: jmtatsch <jmtatsch@users.noreply.github.com>
2020-02-24 07:50:04 +01:00
Ben Russell
251ab02384 Fix recording script when RTSP port has been changed from default of 8554 (#1287) 2020-02-23 02:51:51 +01:00
jmtatsch
39e175b010 Fix new parameters not applied properly
to autonight executable. Fixes #1145
2020-02-20 14:49:39 +01:00
Fred Nielsen
1dde71af83 Add multicast to rtsp config & controlscript (#1263) 2020-02-02 07:54:46 +01:00
KyleBoyer
f7023dda69 Fix setting framerate (#1249)
* Update rtsp-h264

* Update rtsp-mjpeg
2020-01-13 22:29:51 +01:00
Seweryn Zeman
37cce78775 Fixed new stills/video target dir path (#1198) 2019-10-17 21:44:03 +02:00
Seweryn Zeman
281d027935 Add directory to group daily stills/videos + mqtt-control upgrades (#1196)
* Added mqtt-control to play sound from /system/sdcard/media

* Turn amber light before recording

* detectionOn code cleanup and unification

* Resize and compress mqtt snapshot

* Send still/video to SMB

* Fixed a+x rights in bin/

* Added openRTSP - enables recording real video on detectionOn

* Added groupname to store files in dir/file structure

* Non-safe env var usage... but unified

* remove mqtt-control PID on stop() even if no kill was made

* mqtt-control kill + rm based on another script

* mqtt-control wait for connection available to be established
2019-10-16 12:30:28 +02:00
Julian Tatsch
86633109f9 Add switch to enable rtspserver logging, disabled by default
Fixes #1171
2019-09-19 12:08:24 +02:00
Chao
d143e6a6bb allow recording with credentials (#1133)
* allow recording with username and password

* Update recording
2019-08-26 19:45:48 +02:00
Chao
08aa62bbb7 remove pid file for recording even if kill failed (#1132)
There is an issue if the recording process died the stop command will not remove the pid file, and will prevent the start command from being run. 
I copy this code from https://github.com/chaoranxie/Xiaomi-Dafang-Hacks/blob/master/firmware_mod/controlscripts/rtsp-h264#L100
2019-08-26 03:30:02 +02:00
jmtatsch
c388c86330 Update recording
to wait for rtspserver to become available. Fixes #1109
2019-08-25 20:34:24 +02:00
jmtatsch
2d5e9a91a8 Update recording
to improve recording latency
2019-08-21 09:27:40 +02:00
Ammar Askar
8d154725b9 Load motion_timeout setting from sdcard (#1106) 2019-08-05 16:42:57 +02:00
dagrider
29dcbc03f2 Misc fixes (#1036)
* Update configureMotion

* Update sw_night_configure.html

* Update action.cgi
2019-05-02 07:08:56 +02:00
dagrider
483d7a4c63 Fixed OSD display (#1015) 2019-05-01 08:17:42 +02:00
Julian Tatsch
e656f06138 fix recovery of motion sensitivity after switching on/off 2019-02-18 21:17:35 +01:00
Jelmer Tiete
9a280cfeab added bftpd as a service to the controlscripts. Removed it from run.sh (#923) 2019-02-05 06:50:09 +01:00
Tsvi Mostovicz
fdece43a7a Remove tcp_tw_recycle option set to 1 (#916)
Due to this being 1, I get  connection timeouts from HASSIO.
This option has been removed from 4.12 kernels and later as timestamps are now randomized (see https://vincent.bernat.ch/en/blog/2014-tcp-time-wait-state-linux and https://stackoverflow.com/questions/8893888/dropping-of-connections-with-tcp-tw-recycle), this means that when set to 1 we expect timestamps to behave in a certain way, but they might not.
2019-02-03 21:17:29 +01:00
Tsvi Mostovicz
fa5a7959ce Log by default to /tmp so as to avoid SD card corruption (#899)
* Log by default to /tmp so as to avoid SD card corruption

I discovered that the errors I was getting about the SD card similar to #880 were always related to the v4l2rtspserver log.
It seems to me that especially when turning detection tracking due to the high number of writes, writing to the log causes SD card corruption. I suppose that the SD card controller is not built for such a speed.
Since changing logging to log to /tmo which is mounted as tmpfs, I hadn't had any issues.

* Don't create a log subdirectory

* Apply same changes for mjpeg

* Update log view actions as well
2019-01-29 21:53:14 +01:00
Julian Tatsch
668558f0fc improve hls playback 2018-12-24 07:11:46 +01:00
Eugene
12d0c89a05 Introduce telegram bot service (#772)
* introduce telgram bot service

* move bot daemon to scripts, use full path to call jq, use infinite while instead of watch

* fix typo
2018-11-04 06:56:09 +01:00
nik0
92fc6cb7db TTF font support !! 2018-07-25 23:16:11 +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
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
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
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
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
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
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
nik0
e0e6710919 Fix library path (#392)
* Merge

* Fix LD_LIBRARY_PATH

* Fix LD_LIBRARY_PATH
2018-05-30 22:44:14 +02:00