test
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
name: VirtualHere Client
|
name: VirtualHere Client
|
||||||
version: "0.1.173"
|
version: "0.1.174"
|
||||||
slug: vhclient
|
slug: vhclient
|
||||||
description: VirtualHere Client
|
description: VirtualHere Client
|
||||||
arch:
|
arch:
|
||||||
@@ -48,8 +48,8 @@ schema:
|
|||||||
clientid: str?
|
clientid: str?
|
||||||
manualhub: str?
|
manualhub: str?
|
||||||
test: [{
|
test: [{
|
||||||
"field": "str",
|
"field": "str?",
|
||||||
"value": "str"
|
"value": "str?"
|
||||||
}]
|
}]
|
||||||
stage: experimental
|
stage: experimental
|
||||||
init: false
|
init: false
|
||||||
|
|||||||
@@ -13,8 +13,8 @@ set -x
|
|||||||
#my_array+=({ 'name': 'one', 'use': false}) # Add a new item to the array
|
#my_array+=({ 'name': 'one', 'use': false}) # Add a new item to the array
|
||||||
#bashio::config::update 'my_array' "${my_array[@]}"
|
#bashio::config::update 'my_array' "${my_array[@]}"
|
||||||
|
|
||||||
#options=$(bashio::addon.options)
|
options=$(bashio::addon.options)
|
||||||
#new_options=$(echo $options | jq .test[usbdevice=ONE, use=false])
|
new_options=$(echo $options | jq .test[usbdevice=ONE, use=false])
|
||||||
#payload=$(bashio::var.json options "^${new_options}")
|
payload=$(bashio::var.json options "^${new_options}")
|
||||||
#bashio::api.supervisor POST "/addons/self/options" "${payload}"
|
bashio::api.supervisor POST "/addons/self/options" "${payload}"
|
||||||
#curl -sH "Authorization: Bearer $SUPERVISOR_TOKEN" http://supervisor/addons/self/info | jq .data.options
|
curl -sH "Authorization: Bearer $SUPERVISOR_TOKEN" http://supervisor/addons/self/info | jq .data.options
|
||||||
|
|||||||
Reference in New Issue
Block a user