openHAB package for QNAP NAS

2,253 views
Skip to first unread message

Christoph Wempe

unread,
Jul 7, 2014, 10:03:29 AM7/7/14
to ope...@googlegroups.com
Inspired by this post, I am planning to migrate my openHAB installation from my ubuntu HTPC to my QNAP NAS.

So I create a QPKG for openHAB for easier installation. :)

Download: openHAB_1.5.qpkg

Java is required.
Install JRE via the App Center first.

Then download the openHAB-package, install it manually via the App Center on the QNAP-Admin-Webinterface and enable it.

The openHAB webserver should be ready on Port 8082 and 8443.
Telnet port 5555.

Depending on your QNAP-Model and your RAID-Level the package gets installed in the following directory.
/share/MD0_DATA/.qpkg/openHAB/

To change the ports edit openHAB.sh and dis-/enable the service in the App Center.

Or you can use the following command via command line.
/share/MD0_DATA/.qpkg/openHAB/openHAB.sh restart

You can also use the parameters start, stop, status, startdebug and forcestart.


The package just contains the runtime of openHAB 1.5.
You need to add the demo-files or your own configs and addons manually.


Tested on QNAP TS-859 and TS-239 Pro II.
Firmware 4.0.7.

Disclaimer:
This is my first QPKG and first init-script (openHAB.sh)
There might be bugs.
In case you find anything, let me know.
I donw#t know wich QNAP-Models and firmware-versions are compatible.

I don't promise to update the package regularly, because I don't know yet if I will run openHAB on my QNAP for good.

Christoph Wempe

unread,
Jul 19, 2014, 4:10:20 PM7/19/14
to ope...@googlegroups.com
I updated the package and added the following command line options.

 - forcestartdebug
 - restartdebug

teil...@gmail.com

unread,
Jul 22, 2014, 3:13:04 AM7/22/14
to ope...@googlegroups.com
Hi Christoph,

I answered your questions and made some suggestions on your post in the QNAP community forum:

Christoph Wempe

unread,
Jul 22, 2014, 3:33:28 AM7/22/14
to ope...@googlegroups.com, teil...@gmail.com
Great.
I will look into it this evening.

Christoph Wempe

unread,
Jul 22, 2014, 5:07:32 PM7/22/14
to ope...@googlegroups.com, teil...@gmail.com
Latest information and changelog can be found here:

I think it makes sense to post updates in the qnap forum rather than here.

Christoph Wempe

unread,
Sep 23, 2014, 4:16:03 PM9/23/14
to ope...@googlegroups.com, teil...@gmail.com
Updated to v1.5.1.

Download in the QNAP-Forum.

Thomas E.-E.

unread,
Sep 26, 2014, 1:52:55 PM9/26/14
to ope...@googlegroups.com, teil...@gmail.com
Hi Christoph,

thanks a lot for putting this together! Any chance to get the package generated automatically during the maven build?

It would be really great to make the package available through the nightly CI builds.

Best, Thomas E.-E.

Christoph Wempe

unread,
Sep 27, 2014, 5:57:28 AM9/27/14
to ope...@googlegroups.com, teil...@gmail.com
It would be great if the pakage got built automatically.
But I have no idea if this is possible.

There is a tool from QNAP called QDK.

If you get that running on the the maven server, I think it would be easy.


All I had to do to create this pakage was: (see QDK 2.0 Documentation page 25ff)
- copy all openHAB runtime files to ./shared
- copy the icons to ./icons
- create the start-stop-script (openhab.sh) in ./shared (this was the hardest part)
- editing the qpkg.cfg in ./

Fot the 1.5.1 update I just overwrote all runtime files and edited the version number in qpkg.cfg.

To create the pakage you just execute qbuild.

Thomas E.-E.

unread,
Oct 2, 2014, 11:46:37 AM10/2/14
to ope...@googlegroups.com, teil...@gmail.com
hmm … unfortunately our Jenkins (running on Cloudbees infrastructure) does not allow installing additional software like the QDK. We would probably have to use Jenkins Build Slaves running on our own machines which would make the setup (and maintenance) more complicate.

Another option would be to create a build profile within the pom.xml. This at least would easen the assembly process … unfortunately not so nice …

Christoph Wempe

unread,
Feb 4, 2015, 6:00:30 PM2/4/15
to ope...@googlegroups.com, teil...@gmail.com

Christoph Wempe

unread,
May 26, 2015, 6:48:39 AM5/26/15
to ope...@googlegroups.com, teil...@gmail.com
Reply all
Reply to author
Forward
0 new messages