Versioner sammenlignet

Nøgle

  • Linjen blev tilføjet.
  • Denne linje blev fjernet.
  • Formatering blev ændret.

...

Kodeblok
languagebash
sudo apt install openjdk-8-jdk
java -version
openjdk version "1.8.0_191"
OpenJDK Runtime Environment (build 1.8.0_191-8u191-b12-0ubuntu0.18.04.1-b12)
OpenJDK 64-Bit Server VM (build 25.191-b12, mixed mode)
Advarsel

With Java 10 accidently accidentally installed, I experienced that all things suddenly was "uninitiallized". See screenshot in the gallery

...

The easiest way is the make a cron job for backup, information on backup and restore are at https://www.openhab.org/docs/installation/linux.html#backup-and-restore

Kodeblok
sudo apt-get install zip
sudo vi /etc/crontab


0 22 * * * /usr/share/openhab2/runtime/bin/backup	

...

Advarsel

A test - moving from one server to a new showed me that the backup is not "complete", as 2 things went wrong:

  • The camera binding that I manually added in the "addon" folder was not in the backup
  • Things Things binded to the camera binding was broken (after the jar file was added, bindings were fine again)
  • A Thing that was disabled was not disabled after the restore (It actually seems that Disabled is "stateless" and does not survive an openHAB Restart)


Security

Notice that OpenHab OpenHAB has no security, and You need to install it in front of openHabopenHAB. Do read Securing Communication and access to openHAB

Link for setting username password: Ngix and Apache


Things on Tabs

For each Thing, therea there is a Location field, that represents (at least) a Tab in the Paper UI:

...