diff --git a/README.md b/README.md index 46dae90..4afca98 100644 --- a/README.md +++ b/README.md @@ -15,3 +15,13 @@ - http://docs.openhab.org/installation/docker.html - https://github.com/openhab/openhab-docker + +### weather binding +Copy these folders: +- `webapps/weather-data/layouts` -> `./data/userdata/webapps/weather-data/layouts` +- `webapps/weather-data` -> `./data/conf/html/weather-data` + +And follow the instuctions to add `static` for all urls like this: +https://community.openhab.org/t/html-layouts-in-oh2/8762/28?u=benjy + +Openhab doku: https://www.openhab.org/addons/bindings/weather1/#html-layouts diff --git a/docker-compose.yml b/docker-compose.yml index 80ad86e..792a546 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -2,8 +2,8 @@ services: main-openhab: - image: openhab/openhab:2.2.0-${OPENHAB_ARCH:-amd64}-debian - mem_limit: 2g + image: openhab/openhab:2.3.0-${OPENHAB_ARCH:-amd64}-debian + mem_limit: ${OPENHAB_MEMORY_LIMIT:-2g} restart: always tty: true logging: @@ -26,3 +26,19 @@ - "${OPENHAB_HTTP_BIND:-127.0.0.1}:${OPENHAB_HTTP_PORT:-8080}:8080" - "${OPENHAB_HTTPS_BIND:-127.0.0.1}:${OPENHAB_HTTPS_PORT:-8443}:8443" - "${OPENHAB_OSGI_BIND:-127.0.0.1}:${OPENHAB_OSGI_PORT:-5555}:5555" + networks: + openhab-network: + ipv4_address: 172.55.55.100 + aliases: + - openhab-main + + +networks: + openhab-network: + driver: bridge + enable_ipv6: false + ipam: + driver: default + config: + - subnet: 172.55.55.0/24 + diff --git a/install.sh b/install.sh index b895365..92e2000 100755 --- a/install.sh +++ b/install.sh @@ -17,11 +17,12 @@ # replace uid and gid in config file sed -i "/^OPENHAB_USER/c\\\OPENHAB_USER_ID=${uid}" openhab.conf - # replace architecture + # replace architecture dependend if [[ $arc == "x86_64" ]]; then sed -i "/^OPENHAB_ARCH=/c\\\OPENHAB_ARCH=amd64" openhab.conf elif [[ $arc == *"armv"* ]]; then sed -i "/^OPENHAB_ARCH=/c\\\OPENHAB_ARCH=armhf" openhab.conf + sed -i "/^#OPENHAB_MEMORY_LIMIT=/c\\\OPENHAB_MEMORY_LIMIT=512m" openhab.conf else echo "unsupportet architecture" exit 1 diff --git a/openhab.conf.example b/openhab.conf.example index 71ecd8c..16f11e5 100644 --- a/openhab.conf.example +++ b/openhab.conf.example @@ -23,3 +23,9 @@ # language OPENHAB_LANG=de_DE.UTF-8 + +# optional change memory limit +#OPENHAB_MEMORY_LIMIT=2g + +# maximum log lines +LOG_LINES=9999