From 6174fd8136d1e92dc03097a26d44c7a663e97439 Mon Sep 17 00:00:00 2001 From: openhabian Date: Mon, 16 Oct 2023 23:59:11 +0200 Subject: [PATCH] astro.things Signed-off-by: openhabian --- includes/setLocationAPI.bash | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/includes/setLocationAPI.bash b/includes/setLocationAPI.bash index adcc768da..530cf096a 100755 --- a/includes/setLocationAPI.bash +++ b/includes/setLocationAPI.bash @@ -1,5 +1,6 @@ #!/usr/bin/bash -#/usr/bin/echo $@ > /etc/openhab/services/location.cfg /usr/bin/echo "org.openhab.i18n:location=${1}" > /etc/openhab/services/location.cfg sed -i "s|location=.*|location=\"${1}\"|;s|apikey=.*|apikey=\"${2}\",|" "${OPENHAB_CONF:-/etc/openhab}/things/wetter.things" +sed -i "s|geolocation=.*|geolocation=\"${1},\"|" "${OPENHAB_CONF:-/etc/openhab}/things/astro.things" +