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

24 Commits

Author SHA1 Message Date
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
Combie81
705c3e9037 Text updates and grammer changes
Text updates and grammer changes
2020-07-16 10:20:39 +02:00
gysmo38
9627122e98 State side finish 2020-07-16 10:20:36 +02:00
gysmo38
09909b5a7a new ui proposal 2020-07-16 10:20: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
Knurlnheim
d9336ab637 Motionvideo2mqtt (#1298)
* Add 768x432 video resolution

* Update system_video.cgi

sort

* Add options to send motion video to MQTT

* Missing pieces

Co-authored-by: jmtatsch <jmtatsch@users.noreply.github.com>
Co-authored-by: Marc Fundenberger <38658442+MarcFundenberger@users.noreply.github.com>
2020-03-01 20:49:40 +01:00
Julian Tatsch
d4bfab99e3 Refactor autonight hw/sw mode handling, add flag for nightmode without IR leds for window installations. Fixes #1245 #1259. 2020-02-04 11:04:20 +01:00
Marcio Granzotto Rodrigues
766248b9de Add state.cgi night_mode status (#1248) 2020-01-08 17:32:40 +01:00
blakadder
77e3ac8b7c Added Telegram functionality to HA and webui (#866)
* Update telegram-bot-daemon.sh

* Update common_functions.sh

* Update mqtt-autodiscovery.sh

* Update action.cgi

* Update index.html

* Update index.html.js

* Update index.html

* Update mqtt-status-interval.sh

* Update mqtt-autodiscovery.sh

* Update mqtt-control.sh

* Update state.cgi

* Added Send to telegram switches to HA and web ui
2018-12-30 21:06:37 +01:00
Julian Tatsch
c68d626d81 improve naming consistency 2018-12-24 10:42:45 +01:00
Mike Miller
0741fb33b9 Add a new parameter 'publish_mqtt_snapshot' (#791)
Currently, publish_mqtt_message is used to decide whether we send a
notification about motion. save_snapshot is used to save the image
locally. And if both are set, the image is also sent to mqtt

This PR decouples the mqtt image send from the snapshot saving. There
are now three parameters:

publish_mqtt_message -- send notification that there was motion
publish_mqtt_snapshot -- send notification containing the motion.
save_snapshot -- saves to disk, doesn't necessarily notify

No MQTT topics are changed; this is purely configuration bookkeeping.
2018-11-13 20:11:30 +01:00
chisht
8076a88133 Updating autonight software method (#752)
* Integrating sw_night_configure.html to main index.html
Adding GUI option to select SW/HW mode for autonight in setting page
Adding capability to read current configuation and save the new configuation back to the sdcard in sw_night_configure

* Removing autonight.conf.sw Instead we now only add or remove -S to autonight.conf
2018-10-24 07:23:45 +02:00
Gysmo
7221890c5a Title and version updated in UI (#629) 2018-08-09 11:06:08 +02:00
nik0
d60788f08b Add web ui for actions on motion (#528) 2018-06-26 19:02:50 +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
Julian Tatsch
0bb990bd3a differentiate better between h264 & mjpeg rtsp servers 2018-04-22 00:04:33 +02:00
ping
e4491134dd Always force no-cache in response headers 2018-04-20 08:31:49 +08:00
Julian Tatsch
a591ee8a40 fix mqtt autoconfig start, add motion tracking switch 2018-04-14 05:54:52 +02:00
Elias Kotlyar
d8b652038f Merge 2018-04-11 20:37:26 +02:00
Elias Kotlyar
1919515b70 Merge 2018-04-11 20:25:33 +02:00
Julian Tatsch
706e7b4e07 [WIP] Fix mqtt, add new common functions lib, add mqtt autodiscovery. 2018-04-04 09:06:33 +02:00
jmtatsch
5b9aedfbb9 Add some examples for dealing with motion events (#194)
* Add some examples for dealing with motion events

* Harmonize core motion detection & event handling to use one single motion.conf, refactor & beautify motion detection api for more consistency, host jquery locally for usecases without internet, add responsive switch to live ui

* added mqtt actions for switching motion detection on and off

* added motion detection status to status

* Update motion.conf

* Update motion.conf
2018-03-31 17:26:10 +02:00
DESKTOP-10\Julian
f4df16e631 Merge branch 'master' of https://github.com/EliasKotlyar/Xiaomi-Dafang-Hacks
# Conflicts:
#	firmware_mod/controlscripts/rtsp-h264
#	firmware_mod/controlscripts/rtsp-mjpeg
#	firmware_mod/run.sh
2018-03-28 17:38:20 +02:00
Julian Tatsch
2102a0e810 enhance live ui with responsive switches for many functions 2018-03-23 16:20:03 +01:00