mirror of
https://github.com/hassio-addons/addon-motioneye.git
synced 2025-05-05 03:31:22 +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": {
|
||||
"log_level": "info",
|
||||
"motion_api": false,
|
||||
"motion_webcontrol": false,
|
||||
"port": 8765,
|
||||
"ssl": true,
|
||||
"certfile": "fullchain.pem",
|
||||
|
@ -38,7 +38,7 @@
|
|||
},
|
||||
"schema": {
|
||||
"log_level": "match(^(trace|debug|info|notice|warning|error|fatal)$)",
|
||||
"motion_api": "bool",
|
||||
"motion_webcontrol": "bool",
|
||||
"port": "port",
|
||||
"ssl": "bool",
|
||||
"certfile": "str",
|
||||
|
|
|
@ -8,7 +8,7 @@ source /usr/lib/hassio-addons/base.sh
|
|||
|
||||
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"
|
||||
sed -i "s/webcontrol_localhost on/webcontrol_localhost off/" "$motion"
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue