Rename motion_api to motion_webcontrol

This commit is contained in:
ludeeus 2019-01-04 14:47:23 +01:00
parent 78f0195d8d
commit 5a531ea950
2 changed files with 3 additions and 3 deletions

View file

@ -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",

View file

@ -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