mirror of
https://github.com/hassio-addons/addon-motioneye.git
synced 2025-05-05 11:41:27 +00:00
Rename motion_api to motion_webcontrol
This commit is contained in:
parent
78f0195d8d
commit
5a531ea950
2 changed files with 3 additions and 3 deletions
|
@ -29,7 +29,7 @@
|
||||||
],
|
],
|
||||||
"options": {
|
"options": {
|
||||||
"log_level": "info",
|
"log_level": "info",
|
||||||
"motion_api": false,
|
"motion_webcontrol": false,
|
||||||
"port": 8765,
|
"port": 8765,
|
||||||
"ssl": true,
|
"ssl": true,
|
||||||
"certfile": "fullchain.pem",
|
"certfile": "fullchain.pem",
|
||||||
|
@ -38,7 +38,7 @@
|
||||||
},
|
},
|
||||||
"schema": {
|
"schema": {
|
||||||
"log_level": "match(^(trace|debug|info|notice|warning|error|fatal)$)",
|
"log_level": "match(^(trace|debug|info|notice|warning|error|fatal)$)",
|
||||||
"motion_api": "bool",
|
"motion_webcontrol": "bool",
|
||||||
"port": "port",
|
"port": "port",
|
||||||
"ssl": "bool",
|
"ssl": "bool",
|
||||||
"certfile": "str",
|
"certfile": "str",
|
||||||
|
|
|
@ -8,7 +8,7 @@ source /usr/lib/hassio-addons/base.sh
|
||||||
|
|
||||||
readonly motion='/data/motioneye/motion.conf'
|
readonly motion='/data/motioneye/motion.conf'
|
||||||
|
|
||||||
if hass.config.true 'motion_api'; then
|
if hass.config.true 'motion_webcontrol'; then
|
||||||
hass.log.info "Enabling motion webcontrol"
|
hass.log.info "Enabling motion webcontrol"
|
||||||
sed -i "s/webcontrol_localhost on/webcontrol_localhost off/" "$motion"
|
sed -i "s/webcontrol_localhost on/webcontrol_localhost off/" "$motion"
|
||||||
else
|
else
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue