1
0
mirror of https://github.com/EliasKotlyar/Xiaomi-Dafang-Hacks.git synced 2025-09-02 20:52:41 +02:00

4 Commits

Author SHA1 Message Date
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
Solomon S
74247138e7 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
2020-04-18 20:43:03 +02:00
saipsa
ebb54cb7f2 Provision for startup userscripts (#931)
* Update run.sh

* Added userscript startup directory
2019-02-10 15:16:01 +01:00
Dopeyr
6ecaeef08e Allow custom scripts to run on motion detection on/off (#432)
* Allow custom scripts to run on motion detection on/off

* Custom user scripts should be ignored
2018-06-08 02:36:03 +02:00