can’t get gpio to work, don’t understand these instructions:
Manual installation without using apt-repo:
Extract openhab-runtime archive to /opt/openhab (recommended) if not done yet, copy following JARs from openhab-addons archive to /opt/openhab/addons folder:
org.openhab.io.gpio
org.openhab.binding.gpio
Install native JNA library version 3.2.7, modify /opt/openhab/start.sh and append -Djna.boot.library.path=/usr/lib/jni right after java on the last line of the file as change /usr/lib/jni with the path to JNA library’s parent directory.
I intalled gpio - binding, should Iinstall the ‘io’ binding?
Should I install native JNA library, and how?
(I use the raspberry pi)
you have to move both org.openhab.io.gpio and org.openhab.binding.gpio to addons folder.
you have to modify the file /opt/openhab/start.sh
If there isn’t any - it’s in the openhab root folder, so where did you install openHAB?
Within start.sh find the line starting with java -Dosgi.clean=true, there you have to append -Djna.boot.library.path=/usr/lib/jni after the word java and before any other statement.
If the lines are like
If you are using another way to start openHAB automatically, e.g. a Script which starts openHAB instead of start.sh, you have to append the appropriate statement there, too.
I have same problem with my openhab with raspberry pi3, I’m not able to get the simple on/off to work on the GPIO led light. How you fix it? I follow the instruction and nothing seems to work.
Thanks,
Stanly