I tried creating sitemap like is discribed in documentation. I try to create file items :
$OPENHAB_CONF/items/default.items
console response :
-bash: /items/default.items: No such file or directory
i realize that environment variable $OPENHAB_CONF is empty.
Hello, thanks for responses.
Inded, i 'm in a linux environment ( DEBIAN Jessie).
When i do cd $OPENHAB_CONF then ls i have :
html icons items persistence rules scripts services sitemaps sounds things transform
So, i must created files default.items. Do i use make ?
Cd to the items directory. There should be a README file there with instructions. Basically use your text editor of choice to make a file ending in “.items”.
The log should show either it was updated or there was a syntax error.
It’s a real variable. Whether and how it is set depends on how you installed OH, even on Windows (I think).
Find below the openHABian default setting taken from /etc/default/openhab2. I think that’s what OH uses even if you don’t set it in your install method.
I am running openhab base on the repo available on openhab.jfrog.io.
The OPENHAB_ environment variables are set via /etc/profile.d/openhab2.sh which is source via /etc/profile.
This shows the $OPENHAB_CONF environment variable is set correctly to the configuration directory (as was to be expected when doing a package install ).
As stated before, to create files you have to select the correct folder inside the folder pointed at by $OPENHAB_CONF. So, an items file must be created in $OPENHAB_CONF/items and sitemap files in $OPENHAB_CONF/sitemaps.
For instance, to create a new items file type:
nano $OPENHAB_CONF/items/mynew.items
or any other file name you choose, as long as the extension is .items).
nano is a Linux command. Linux directories use slashes / not backslashes \ The backslash is used as an escape character in quoted strings or usually ignored.