1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
|
[
{ type: install
message: <<EOM
The openhab user interface writes to /var/db/openhab
(config) and to %%ETCDIR%% (when installing add-onds).
The config in %%ETCDIR%% is evaluated additionally to
/var/db/openhab.
See %%PREFIX%%/etc/rc.d/openhab for environment variables you need
to set by hand (all "export"-ones) if you want to execute some of
the openhab commands from the shell directly.
When the openhab docs talk about "userdata", look into /var/db/openhab.
Serial ports do not work with FreeBSD, see:
https://github.com/openhab/openhab1-addons/wiki/FreeBSD
By default openhab tries to use IPv6. As FreeBSD does not support
mapping IPV4 multicast addresses inside IPv6 addresses you will get
the following error message:
[ERROR] [org.jupnp.transport.Router] - Unable to initialize network router: org.jupnp.transport.spi.InitializationException: Could not initialize MulticastReceiverImpl: java.net.SocketException: Invalid argument
A workaround is to use the following rc.conf setting which will
prefer IPv4 over IPv6:
openhab_java_opts="-Djava.net.preferIPv4Stack=true"
OpenHAB contains some files/directories ending in .core, if you have
daily_clean_disks_enable="YES"
for periodic runs (this is the default setting in /etc/default/periodic.conf), you should
remove "*.core" from the daily_clean_disks_files setting in periodic.conf. Example:
daily_clean_disks_files="[#,]* .#* a.out *.CKP .emacs_[0-9]*"
If you upgrade from a pevious version, make a backup of
/var/db/openhab
and read about the breaking changes in the release notes at
https://github.com/openhab/openhab-distro/releases/
You need to change some configs:
export OPENHAB_USERDATA=/var/db/openhab/userdata
sed -i'.bak' -e "s:,javascript::g" "$OPENHAB_USERDATA/config/org/openhab/addons.config"
sed -i'.bak' -e "s:javascript,::g" "$OPENHAB_USERDATA/config/org/openhab/addons.config"
sed -i'.bak' -e "s:javascript::g" "$OPENHAB_USERDATA/config/org/openhab/addons.config"
sed -i'.bak' -e "s:,cometvisu-php::g" "$OPENHAB_USERDATA/config/org/openhab/addons.config"
sed -i'.bak' -e "s:cometvisu-php,::g" "$OPENHAB_USERDATA/config/org/openhab/addons.config"
sed -i'.bak' -e "s:cometvisu-php::g" "$OPENHAB_USERDATA/config/org/openhab/addons.config"
sed -i'.bak' -e "s:,innogysmarthome::g" "$OPENHAB_USERDATA/config/org/openhab/addons.config"
sed -i'.bak' -e "s:innogysmarthome,::g" "$OPENHAB_USERDATA/config/org/openhab/addons.config"
sed -i'.bak' -e "s:innogysmarthome::g" "$OPENHAB_USERDATA/config/org/openhab/addons.config"
sed -i'.bak' -e "s:,imperihome::g" "$OPENHAB_USERDATA/config/org/openhab/addons.config"
sed -i'.bak' -e "s:imperihome,::g" "$OPENHAB_USERDATA/config/org/openhab/addons.config"
sed -i'.bak' -e "s:imperihome::g" "$OPENHAB_USERDATA/config/org/openhab/addons.config"
sed -i'.bak' -e "s:,darksky::g" "$OPENHAB_USERDATA/config/org/openhab/addons.config"
sed -i'.bak' -e "s:darksky,::g" "$OPENHAB_USERDATA/config/org/openhab/addons.config"
sed -i'.bak' -e "s:darksky::g" "$OPENHAB_USERDATA/config/org/openhab/addons.config"
You may have to update the files in
/var/db/openhab/userdata/etc/
from
%%DATADIR%%/etc/
by hand.
At the end you need to run
export JAVA_VERSION=17
export OPENHAB_USERDATA=/var/db/openhab/userdata
java -jar "%%LOCALBASE%%/libexec/openhab/runtime/bin/upgradetool.jar"
In case you see issues in the logfile or outdated info in the webinterface,
you may want to remove the cache and restart:
rm -r /var/db/openhab/userdata/cache/org.eclipse.osgi
EOM
}
{ type: upgrade
message: <<EOM
If you upgrade from a pevious version, make a backup of
/var/db/openhab
and read about the breaking changes in the release notes at
https://github.com/openhab/openhab-distro/releases/
You need to change some configs:
OPENHAB_USERDATA=/var/db/openhab/userdata
sed -i'.bak' -e "s:,javascript::g" "$OPENHAB_USERDATA/config/org/openhab/addons.config"
sed -i'.bak' -e "s:javascript,::g" "$OPENHAB_USERDATA/config/org/openhab/addons.config"
sed -i'.bak' -e "s:javascript::g" "$OPENHAB_USERDATA/config/org/openhab/addons.config"
sed -i'.bak' -e "s:,cometvisu-php::g" "$OPENHAB_USERDATA/config/org/openhab/addons.config"
sed -i'.bak' -e "s:cometvisu-php,::g" "$OPENHAB_USERDATA/config/org/openhab/addons.config"
sed -i'.bak' -e "s:cometvisu-php::g" "$OPENHAB_USERDATA/config/org/openhab/addons.config"
sed -i'.bak' -e "s:,innogysmarthome::g" "$OPENHAB_USERDATA/config/org/openhab/addons.config"
sed -i'.bak' -e "s:innogysmarthome,::g" "$OPENHAB_USERDATA/config/org/openhab/addons.config"
sed -i'.bak' -e "s:innogysmarthome::g" "$OPENHAB_USERDATA/config/org/openhab/addons.config"
sed -i'.bak' -e "s:,imperihome::g" "$OPENHAB_USERDATA/config/org/openhab/addons.config"
sed -i'.bak' -e "s:imperihome,::g" "$OPENHAB_USERDATA/config/org/openhab/addons.config"
sed -i'.bak' -e "s:imperihome::g" "$OPENHAB_USERDATA/config/org/openhab/addons.config"
sed -i'.bak' -e "s:,darksky::g" "$OPENHAB_USERDATA/config/org/openhab/addons.config"
sed -i'.bak' -e "s:darksky,::g" "$OPENHAB_USERDATA/config/org/openhab/addons.config"
sed -i'.bak' -e "s:darksky::g" "$OPENHAB_USERDATA/config/org/openhab/addons.config"
You may have to update the files in
/var/db/openhab/userdata/etc/
from
%%DATADIR%%/etc/
by hand.
At the end you need to run
export JAVA_VERSION=17
export OPENHAB_USERDATA=/var/db/openhab/userdata
java -jar "%%LOCALBASE%%/libexec/openhab/runtime/bin/upgradetool.jar"
In case you see issues in the logfile or outdated info in the webinterface,
you may want to remove the cache and restart:
rm -r /var/db/openhab/userdata/cache/org.eclipse.osgi
EOM
]
|