pfink / nuimo-openhab-python

Use your Nuimo as a UI for openHAB!
GNU General Public License v3.0
19 stars 4 forks source link

Evaluate possibility to ship this app as an openHAB Extension #10

Open pfink opened 5 years ago

pfink commented 5 years ago

Kai suggested once to maybe get this shipped as an openHAB Extension using Jython. First, I was not convinced because I have doubts that the bluetooth part works under Jython. Anyhow, it's may possible to reimplement some parts so that one of the Bluetooth bindings can be used instead, so maybe it's worth a try.

I see two possible approaches. Either

@kaikreuzer: Did you already had the time to try out this app? Regarding the first approach, I'm quite unsure where / how to start or what would be a proper architecture. Probably it's not (only?) a binding because it has to access the UI / Sitemap layer for configuration. If you have ideas / hints what would be the "right" or at least a good way for integration, that would be awesome!

kaikreuzer commented 5 years ago

No, unfortunately, I still haven't tried it out myself. Considering the required effort, I'd actually suggest to go for the second option (that was also my idea when we spoke about it) - it would make the installation/packaging easier and if the existing code works on jsr223, there hopefully wouldn't be much work involved in getting it running. The first option rather sounds like a complete rewrite with many potential surprises (BT is a beast...).

pfink commented 5 years ago

Thanks for your hint! I'll try out the JSR223 option within the next time :) What kind of packaging/installation do you have in mind? pip? Or is there an "openHAB-way" of doing it?