If you have installed a previous version of Openhab on your Synology it is easy to upgrade.
Download from the website the latest version and unpack this.
Download WINSCP (Windows) and make an ssh connection to your Synology. Make sure you have switched on the ssh service on your Synology.
Choose your Synology IP and port 22. Username = root and your admin password of your Synology.
When you have a connection search for the directory @appstore. You can find this in your main directory.
Find in the @appstore the map OpenHAB. Make from the openHAB directory a backup from your configfiles (OpenHAB/Configurations).
Now you can copy your downloaded and extracted OpenHAB version to @appstore/OpenHAB.
Make sure you do not delete all the files before copying because you remove the startup script for the Synology.
Restart openhab from the package center on the Synology.
I have this working now. The configuration and addon folder is in @appstore/openhab folder. I transferred demo, addons from openhab github. I have habmin working as well by manually transferring habmin to webapps folder and habmin and zwave addons to the @appstore/openhab folder. Just wanted to document that here for future users.
Now the fun (or pain) begins getting openhab to work for me. The demo is absolutely useless and does nothing for me. I know it will be worth the pain !!!
Hiya.
I had a lot of trouble getting Astro binding times and chart timescales working, despite setting the timezone within the server etc.
Eventually I discovered that I needed to add -Duser.timezone=*Country*/*City* to the PROGRAM="java... line in the start_runtime.sh script in /volume1/@appstore/OpenHAB.
Now I have the correct timings for Sunrise etc from Astro binding, as well as the correct times on the chart legends.
Hope this helps anyone else seeing this problem!
I have a trouble with the Synology Package 1.7.1 (and probably the older).
The date time displayed by openHAB are not the good one. They are UTC time,
I’m in France. Timezone is Europe\Amsterdam.
Then the date time must be UTC +2
I saw that the /var/packages/OpenHAB/scripts/start-stop-status.sh script try to set the TZ in the file /var/services/homes/openhab/.profile
But the generated result line is : export TZ=’’
=>There is no timezone.
The update of the .profile TZ is done by these commands :
Synology 214play, ohab 1.8.
I have this error on startup, but all settings from cfg file is applied:
2015-10-15 20:43:16.895 [ERROR] [o.config.core.ConfigDispatcher] - Main openHAB configuration file 'configurations/openhab.cfg' cannot be read.
ava.io.IOException: No such file or directory
at java.io.UnixFileSystem.createFileExclusively(Native Method) ~[na:1.7.0_79]
at java.io.File.createNewFile(File.java:1006) ~[na:1.7.0_79]
at org.eclipse.equinox.internal.cm.ConfigurationStore.writeConfigurationFile(ConfigurationStore.java:112) ~[na:na]
at org.eclipse.equinox.internal.cm.ConfigurationStore$1.run(ConfigurationStore.java:99) ~[na:na]
at java.security.AccessController.doPrivileged(Native Method) [na:1.7.0_79]
at org.eclipse.equinox.internal.cm.ConfigurationStore.saveConfiguration(ConfigurationStore.java:97) ~[na:na]
at org.eclipse.equinox.internal.cm.ConfigurationImpl.update(ConfigurationImpl.java:255) ~[na:na]
at org.openhab.config.core.ConfigDispatcher.processConfigFile(ConfigDispatcher.java:212) [org.openhab.config.core_1.8.0.201510100138.jar:n
]
at org.openhab.config.core.ConfigDispatcher.initializeMainConfiguration(ConfigDispatcher.java:169) [org.openhab.config.core_1.8.0.20151010
138.jar:na]
at org.openhab.config.core.ConfigDispatcher.initializeBundleConfigurations(ConfigDispatcher.java:139) [org.openhab.config.core_1.8.0.20151
100138.jar:na]
at org.openhab.config.core.ConfigDispatcher.activate(ConfigDispatcher.java:99) [org.openhab.config.core_1.8.0.201510100138.jar:na]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.7.0_79]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) ~[na:1.7.0_79]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.7.0_79]
at java.lang.reflect.Method.invoke(Method.java:606) ~[na:1.7.0_79]
at org.eclipse.equinox.internal.ds.model.ServiceComponent.activate(ServiceComponent.java:235) [org.eclipse.equinox.ds_1.4.1.v20120926-2013
0.jar:na]
at org.eclipse.equinox.internal.ds.model.ServiceComponentProp.activate(ServiceComponentProp.java:146) [org.eclipse.equinox.ds_1.4.1.v20120
26-201320.jar:na]
at org.eclipse.equinox.internal.ds.model.ServiceComponentProp.build(ServiceComponentProp.java:345) [org.eclipse.equinox.ds_1.4.1.v20120926