This commit is contained in:
Hans Karlinius
2024-11-28 17:04:35 +01:00
parent ec62241e56
commit e66b617955
2 changed files with 6 additions and 6 deletions

View File

@@ -1,5 +1,5 @@
name: VirtualHere Client
version: "0.1.169"
version: "0.1.170"
slug: vhclient
description: VirtualHere Client
arch:

View File

@@ -13,8 +13,8 @@ set -x
#my_array+=({ 'name': 'one', 'use': false}) # Add a new item to the array
#bashio::config::update 'my_array' "${my_array[@]}"
options=$(bashio::addon.options)
new_options=$(echo $options | jq .test[usbdevice=ONE, use=false])
payload=$(bashio::var.json options "^${new_options}")
bashio::api.supervisor POST "/addons/self/options" "${payload}"
curl -sH "Authorization: Bearer $SUPERVISOR_TOKEN" http://supervisor/addons/self/info | jq .data.options
#options=$(bashio::addon.options)
#new_options=$(echo $options | jq .test[usbdevice=ONE, use=false])
#payload=$(bashio::var.json options "^${new_options}")
#bashio::api.supervisor POST "/addons/self/options" "${payload}"
#curl -sH "Authorization: Bearer $SUPERVISOR_TOKEN" http://supervisor/addons/self/info | jq .data.options