You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
compile this project with Jython and implement a seperate ESH/OSGi extension project that just uses relevant parts of the Jython-compiled Java Byte Code. The extension layer could also take care that the BT binding is used instead of the Python part (if necessary). OR
Try out the plain code as JSR223. Disadvantage: Other than the first solution, it requires Jython within the openHAB classpath. I wouldn't prefer this approach, but it's maybe a good option to start with and make first expieriences.
@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!
The text was updated successfully, but these errors were encountered:
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...).
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?
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!
The text was updated successfully, but these errors were encountered: