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

326 Commits

Author SHA1 Message Date
jmtatsch
b848ff641c Pull changes from master into beta (#1880)
* Merge beta into master (#1835)

* Add Push To Talk (#1743)

* Fix video recording when using FTP or Dropbox (#1744) (#1745)

* This adds a new feature "Dropbox URL" so you can specify the URL to be used for (#1746)

* Change all absolute URL's to relative (#1748)

* Fix deleteFile in sdcard.js (#1749)

* Imporove security of Dropbox emulating web script (#1765)

Limit maximum file size and only allow certain file types

* Add full support for Matrix image and video #1756 (#1766)

* More robust Telegram video handling (#1769)

* Some cleanup in detectionOn.sh (#1764)

Co-authored-by: Steven <36535597+StevenJonSmith@users.noreply.github.com>
Co-authored-by: Chris Osgood <chris_github@functionalfuture.com>
Co-authored-by: Nick Kaijaks <Nick.Kaijaks@warwick.ac.uk>

* Update ui_motion.cgi (#1858)

* Update Gitter URLs as old ones returned a HTTP 404 Not Found (#1874)

* Improve install_sdcard.md documentation (#1865)

---------

Co-authored-by: Steven <36535597+StevenJonSmith@users.noreply.github.com>
Co-authored-by: Chris Osgood <chris_github@functionalfuture.com>
Co-authored-by: Nick Kaijaks <Nick.Kaijaks@warwick.ac.uk>
Co-authored-by: Nemesis24 <guillaumejonquiere@gmail.com>
Co-authored-by: numericOverflow <numericOverflow@users.noreply.github.com>
Co-authored-by: jcplaza <cuenta.registros.web@gmail.com>
2023-11-05 12:55:47 +01:00
Philipp
3ac640a07a Fix message for telegram user chat id (#1864) 2023-07-16 19:52:30 +02:00
David Buezas
6e1729539a Multiple fixes & improvements related to volume and audio. (#1848) 2023-04-29 19:46:18 +02:00
Julian Tatsch
9b661e79a8 Speed up listing saved images #1804 2022-12-30 13:52:27 +01:00
Julian Tatsch
d32b5e19f5 fixes #1833 2022-12-30 13:35:02 +01:00
Nemesis24
b1da54bafd Update control.js (#1832) 2022-11-28 10:29:22 +01:00
timstanley1985
f1cf7dad8b Merge beta into master (#1786) 2021-10-24 10:57:50 +02:00
Julian Tatsch
c15370910b Merge branch 'master' into beta 2021-05-11 06:23:18 +02:00
maxemoose
1de5ae1636 Fix update w3.css (#1721)
The previous PR I submitted was supposed to make the footer object stick to the bottom of the page but it did not work. This was because I missed a comma when adding the relevant changes.

This PR changes one comma in w3.css to a semi-colon, fixing the desired footer behaviour.
2021-04-22 18:59:23 +02:00
Ian
0ded51606e Typo fix (#1723)
I know this is stupid but it was annoying me.
2021-04-22 18:58:15 +02:00
Joey Babcock
a4a8bdc6d6 Fix small typo in OSD save log (#1722) 2021-04-21 05:05:28 +02:00
timstanley1985
7aa86b916f Add web server control script (#1714) 2021-03-21 20:06:38 +01:00
maxemoose
90b8a89a4d Update w3.css (#1713)
Make html, body & w3-auto elements 100% height. Add flex and flex direction to w3-auto. Make the content element grow to fill available space.
2021-03-21 13:40:40 +01:00
timstanley1985
a163f4456d SSH Control script (#1711) 2021-03-21 09:09:52 +01:00
timstanley1985
55a85cca64 Remove audio and convert to mp4 so videos play in Telegram app (#1709) 2021-03-19 12:24:16 +01:00
Julian Tatsch
f7c4a0ef49 Merge branch 'master' into beta 2021-03-13 20:13:59 +01:00
timstanley1985
fbb903d608 Fix changing dropbox folders (#1705) 2021-03-13 15:43:59 +01:00
timstanley1985
4a2af3a87e Add dropbox uploads on motion detection (#1703) 2021-03-12 14:27:37 +01:00
timstanley1985
5ef8548434 Refactor dtectionOn.sh (#1698) 2021-03-08 10:26:34 +01:00
timstanley1985
d79a153e99 SSH management panel (#1692)
* SSH management panel - initial commit

* Add ssh.conf.dist

* Tweaks

* Update firmware_mod/www/cgi-bin/ui_system.cgi

Co-authored-by: fhl206 <fhl206@gmail.com>

* Add configure SSH pub key to web ui

* Tweak wording

* Change logic for SSH paasword

Co-authored-by: fhl206 <fhl206@gmail.com>
2021-03-07 18:16:03 +01:00
Chris Knight
174b2d56a1 fix #1674 - typo in ui_motion.cgi (#1676)
Co-authored-by: Chris Knight <cdknight@hotcat.org>
2021-02-26 05:54:24 +01:00
Chris Knight
0b6a19ae4e typo fix (#1685) 2021-02-12 05:55:24 +01:00
jmtatsch
fe18a97e94 Update motion.html
fix typo
2021-01-01 15:24:11 +01:00
Julian Tatsch
67794f2867 Merge branch 'master' into beta 2020-12-27 11:12:08 +01:00
jmtatsch
5fc16fb409 Update ui_motion.cgi
fix typo
2020-12-27 10:11:57 +01:00
jmtatsch
ccdfd4d239 Update motion.html
fix typo
2020-12-27 10:09:52 +01:00
Justin Goette
7d2eebaed6 Update camera.html (#1656)
* Update camera.html

Typo

* Update camera.html

Typo
2020-12-26 10:40:53 +01:00
jmtatsch
69e0126c0b Update control.js
Add friendly name for mdns-responder
2020-12-23 22:02:13 +01:00
jmtatsch
8eb23eb040 Update motion.html
fix some grammar & clarify night mode delay
2020-12-23 21:54:20 +01:00
Greg Thornton
e7c84ddf59 Network config web ui and fallback wifi hotspot (#1655) 2020-12-22 17:13:50 +01:00
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
4f304046fa Mdns responder (#1649)
* Add mDNSResponder

* Add mDNSResponder to web ui

* Fix mDNSResponder pid location
2020-12-21 13:00:24 +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
Greg Thornton
74360b8c40 Ignore motion events when night mode is switched on/off (#1648)
* Ignore motion events if night mode has recently changed.

* Add night mode motion delay to web ui

* Change night_delay config to night_mode_event_delay
2020-12-21 12:56:32 +01:00
Greg Thornton
6a13b282f5 Fix select elements in safari (#1647) 2020-12-21 12:55:30 +01:00
drkdoesgit
49d1e335cc Save snapshots/videos on motion vales are not saved. (#1645)
* https://github.com/EliasKotlyar/Xiaomi-Dafang-Hacks/pull/1588

###Description:
Save snapshots/videos on motion vales are not saved.

###To Reproduce:
1. SET **Motion Settings** > **Storage** > **Local Storage** > "Save snapshots on motion" to **Activate**
2. Reload the configuration.
3. Changes are not reflected or remains to be **Deactivate**

###Changes:
ui_motion.cgi
1. Changed the variable `saveSnaphot` to `saveSnapshot`
2. Added `    echo "saveVideo#:#${save_video}"` for command `get_config`.
2. Added the the code below for the `save_config` command.
```
    if [ -n "${F_saveVideo+x}" ]; then
  F_saveVideo=$(printf '%b' "${F_saveVideo//%/\\x}")
     rewrite_config /system/sdcard/config/motion.conf save_video $F_saveVideo
    echo "Save video set to $F_saveVideo<br/>"
   fi
```

motion.html
1. Renamed `saveSnaphot` to `saveSnapshot` to reflect the changes done in ui_motion.cgi.

* Update .gitignore

remove vsc files

Co-authored-by: Brian Frianeza <bf@dewise.com>
Co-authored-by: jmtatsch <jmtatsch@users.noreply.github.com>
2020-12-20 17:20:46 +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
jmtatsch
1c92630953 Full master fixes also into beta (#1639)
* Fixed the timezone: Europe/Amsterdam

* Fix 'rtsp-h264' still set as an autostart entry when 'rtsp' is now the (#1636)

service to use

In 1e2f96612f the services 'rtsp-h264' and
'rtsp-mjpeg' were combined into a single 'rtsp' service, however an
entry for 'rtsp-h264' still remained in the autostart folder. This is a
problem for the user because this entry does not appear in the Web UI
which means it cannot be easily removed, and also appears as if an RTSP
server is not running when it is.

* Added button to the live page that downloads a JPEG screenshot (#1638)

* Fixed a missing line break and spelling mistake

* Added button to the live page that downloads a JPEG screenshot

Co-authored-by: OhMyGuus <info@guus.ninja>
Co-authored-by: Ben Russell <ben@benru.co.uk>
2020-12-08 15:05:52 +01:00
jmtatsch
b590eef293 Update index.html
make light blue the default theme
2020-11-14 12:14:26 +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
914b46e78a Fix a typo in camera.cgi so that setconf is called correctly when saving OSD. Thanks @thehijacker 2020-11-12 09:02:56 +01:00
dewi-ny-je
b0d51becde Merge branch 'beta' 2020-10-28 22:44:34 +01:00
MrAndersonMD
954329a19b Update timezones.tsv
Updated America/Santiago, America/Punta_Arenas and Pacific/Easter timezones.
2020-10-01 01:31:41 -03:00
Julian Tatsch
267419e100 Change remaining RTSPH264OPTS and RTSPH264OPTS to the new RTSPOPTS fixes #1574 2020-09-30 06:41:49 +02:00
Thomas Pauli
95734d90d3 Exposes the motor speed attribute in the api endpoint 2020-09-26 17:42:56 +02:00
Thomas Pauli
11270522ab Adds the current motor position to the api systeminfo. (#1579) 2020-09-15 23:41:54 +02:00
Douglas Moura
6bbbdea227 Correcting motion link
I was trying to access the videos/photos from the motion option but it wasn't opening, so i found that the link was wrong. I corrected on mine, sending the PR :)
2020-09-01 18:05:26 -03:00
Mike Miller
62781e53a3 Set expiration date of 2038 for cookies
(Note that some browsers may limit this; e.g., Safari sets it to 7 days.
It's still better than a session cookie)
2020-08-25 16:39:38 +03:00
Anon
e08af9fbee Add list view for captured motion files
Enable list view  and download functionality for motion files captured to the default location
2020-08-24 20:04:05 +02:00
Thomas Pauli
0f34248474 Fixes the disk_space information gathering command
Adds an additional `grep` to the disk_space info gathering commands to remove duplicated data from the JSON output.
2020-08-21 21:29:25 +02:00