Skip to content

Commit

Permalink
astro.things
Browse files Browse the repository at this point in the history
Signed-off-by: openhabian <openhabian@openHABian>
  • Loading branch information
openhabian authored and openhabian committed Oct 16, 2023
1 parent 1ccec75 commit 7a437d2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion includes/setLocationAPI.bash
Original file line number Diff line number Diff line change
@@ -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"

0 comments on commit 7a437d2

Please sign in to comment.