openhab / openhab-syno-spk

openHAB Synology SPK Install Package
Eclipse Public License 2.0
161 stars 42 forks source link

Fresh setup of OH 2.4, missing conf with items, rules etc. #147

Closed piejanssens closed 5 years ago

piejanssens commented 5 years ago

I have setup OH 2.4 using the SPK. Fresh setup of all my bindings, things and items (and even rules using the rule builder) through PaperUI. I don't see the 'conf' folder being created or any items/things/... files in /volume1/openHAB/userdata. Is that normal because I did everything through PaperUI? How do I export my config or create a backup now?

Tost69 commented 5 years ago

Hi,

the bindings, things and items you've setup with PaperUI are stored somewhere. Otherwise you couldn't see them in PaperUI/Control, right?

On my 2bay Syno the installation has created the folder /volume1/@appstore /openHAB (I've selected to install to volume 1).

Depending on your chosen settings during the setup both folders conf and userdata were created

Installation also creates symbolic links (/volume1/@appstore/openHAB/conf, /volume1/@appstore/openHAB/userdata) which will point to the created userdata and conf folders. Please check /volume1/@appstore /openHAB with SSH where data is stored.

Things created with PaperUI are stored in userdata/jsondb/org.eclipse.smarthome.core.thing.Thing.json

Kind regards, Tom

cniweb commented 5 years ago

@piejanssens This is not a openhab/openhab-syno-spk issue, read the OH docs. Can I close this issue?

piejanssens commented 5 years ago

@cniweb I still don't know where to put the files. I don't have a 'conf' folder in the /volume1/public/openHAB directory. I created one afterwards but OH doesn't seem to pick up anything (created a test file /volume1/public/openHAB/conf/sitemaps/demo.sitemap) This was a fresh install of 2.4. I then executed the following commands (found in another issue of this project):

pieter@DISKSTATION:/volume1/@appstore/openHAB$ mv /volume1/public/openHAB/userdata/conf /volume1/public/openHAB/conf
pieter@DISKSTATION:/volume1/@appstore/openHAB$ sudo ln -s /volume1/public/openHAB/conf conf
pieter@DISKSTATION:/volume1/@appstore/openHAB$ ls -al
total 36
drwxr-xr-x 1 openhab users   168 Feb  5 20:42 .
drwxr-xr-x 1 root    root    276 Jan 28 11:38 ..
drwxrwxrwx 1 openhab users    12 Jan 24 10:27 addons
lrwxrwxrwx 1 openhab users    28 Feb  5 20:42 conf -> /volume1/public/openHAB/conf
-rwxrwxrwx 1 openhab users 11232 Dec 17 01:24 LICENSE.TXT
drwxrwxrwx 1 openhab users    54 Jan 24 10:27 runtime
-rwxrwxrwx 1 openhab users   121 Dec 17 01:04 start.bat
-rwxrwxrwx 1 openhab users    72 Dec 17 01:04 start_debug.bat
-rwxrwxrwx 1 openhab users    73 Dec 17 01:04 start_debug.sh
-rwxrwxrwx 1 openhab users   116 Dec 17 01:04 start.sh
drwxrwxrwx 1 openhab users    60 Jul 30  2017 ui
lrwxrwxrwx 1 openhab users    32 Jan 24 10:27 userdata -> /volume1/public/openHAB/userdata
piejanssens commented 5 years ago

After a restart it was working. So recreating the symlinks was key for me.