Closed 5iver closed 5 years ago
I have tested the metadata and item create portions. They are working. I have completely implemented the metadata usage in my project. I cannot use the item create routinely until the group events are fixed.
Scott, where do you envision support code going, ie if we do a class to manage metadata? Under lib/python? How do you envision sharing a code that others might want to reuse - is there a way to redistribute it?
Overall, Jython has been incredible. Thank you for your work on this.
Scott, where do you envision support code going, ie if we do a class to manage metadata? Under lib/python?
A module should do it, but a component script may work too. Rereading everything again was eye opening. There is a whole lot of stuff I've still not really explored. Off the top of my head, I'd probably say a utils module. I use one in my setup, but A lot of it could go into core modules.
I haven't been able to focus on this one... give me a few days, and I'll get back to you.
How do you envision sharing a code that others might want to reuse - is there a way to redistribute it?
I'm not exactly sure what you are asking here.
For code sharing.... wondering how to make it easier over a cut and paste method or more complex like using pip?
For code sharing.... wondering how to make it easier over a cut and paste method or more complex like using pip?
In an ideal world, maybe something in PaperUI where users can see details on each available module, and then click to download/install as required?
In an ideal world, maybe something in PaperUI where users can see details on each available module, and then click to download/install as required?
I could imagine there's a possibility that an OH binding that would install and setup JSR223-Jython with the core package could make it into the distribution. It is much more likely that it would need to come from the Eclipse Marketplace though, especially anything from the community package.
Pip would be interesting, especially for resolving dependencies, but it lacks the simplicity of a browser interface and integration with Paper UI.
OK, I've been testing this for a while now without issues, and just did another polishing of the docs. I think it's ready to merge! Please speak up now if you have any issues or concerns to be addressed.
working fine for me so far :)
Everyone please review and test. I won't merge until there is some positive feedback. This PR has some major changes, which hopefully everyone will be supportive of. All documentation has also been updated to reflect these changes.
openhab
package has been renamed tocore
. This is a major breaking change, but it helps to distinguish betweencommunity
contributions andcore
functionality.community
package and a directory for scripts has been added. This will store contributions from the community. The namespace will get tricky, so we'll need to be creative.personal
package and a directory for scripts has been added. This is meant to hold your own personal modules and scripts.configuration.py
module at the root of/automation/lib/jython/
is to be used for storing private or personal data. Community modules and scripts should include aconfiguration.py.example
file to describe any variables that are expected to be in the file.000_startup_delay.py
in the core scripts, as it seems everyone will need it until startup issues are corrected in ESH.log
module and logger used across all modules and scripts.log
module, where WARN and TRACE weren't functioning.