-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Ephemeris] Binding to make the bridge with core Ephemeris functions #16628
Conversation
Added the WIP tag, as it looks like some work and clarrification is needed. This PR lacks an introduction. As ephemeris allready exists in core for some years, it would be usefull to know what gap this binding fills. |
Yes, here https://community.openhab.org/t/ephemeris-binding-4-0-0-0-5-0-0-0/155227 |
Same problem here with your file bundles/pom.xml. |
d2247a4
to
f723b60
Compare
@lolodomo : pom.xml rebased |
But you added many many blank lines. Why ? |
You can be assured that I did not do that myself :-) something went wrong somewhere...weird. I'm going to restore it the same way I just did for |
Yes, I believe I already found that when running the script that creates the skeleton of a new binding. I thing there is even an issue still opened for that. |
I will have a look at this small new binding. |
@clinique : can you provide few use cases where this binding is useful compared to actions already provided by the core framework? |
Sure. This binding makes it really easier to use Ephemeris information via Items instead of script actions. For beginners it is easier, and Items are first class citizens - this binding provides all that everyone would need to code by himself, directly out of the box. |
...phemeris/src/main/java/org/openhab/binding/ephemeris/internal/EphemerisBindingConstants.java
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Review part 1 of 3
...rc/main/java/org/openhab/binding/ephemeris/internal/discovery/EphemerisDiscoveryService.java
Outdated
Show resolved
Hide resolved
...rc/main/java/org/openhab/binding/ephemeris/internal/discovery/EphemerisDiscoveryService.java
Outdated
Show resolved
Hide resolved
...meris/src/main/java/org/openhab/binding/ephemeris/internal/handler/BaseEphemerisHandler.java
Outdated
Show resolved
Hide resolved
...meris/src/main/java/org/openhab/binding/ephemeris/internal/handler/BaseEphemerisHandler.java
Outdated
Show resolved
Hide resolved
...meris/src/main/java/org/openhab/binding/ephemeris/internal/handler/BaseEphemerisHandler.java
Outdated
Show resolved
Hide resolved
...ng.ephemeris/src/main/java/org/openhab/binding/ephemeris/internal/handler/DaysetHandler.java
Outdated
Show resolved
Hide resolved
...ng.ephemeris/src/main/java/org/openhab/binding/ephemeris/internal/handler/DaysetHandler.java
Outdated
Show resolved
Hide resolved
...ng.ephemeris/src/main/java/org/openhab/binding/ephemeris/internal/handler/DaysetHandler.java
Outdated
Show resolved
Hide resolved
...g.ephemeris/src/main/java/org/openhab/binding/ephemeris/internal/handler/HolidayHandler.java
Outdated
Show resolved
Hide resolved
...ding.ephemeris/src/main/java/org/openhab/binding/ephemeris/internal/handler/FileHandler.java
Outdated
Show resolved
Hide resolved
...rc/main/java/org/openhab/binding/ephemeris/internal/discovery/EphemerisDiscoveryService.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Review part 2 of 3
bundles/org.openhab.binding.ephemeris/src/main/resources/OH-INF/thing/thing-types.xml
Outdated
Show resolved
Hide resolved
bundles/org.openhab.binding.ephemeris/src/main/resources/OH-INF/thing/thing-types.xml
Outdated
Show resolved
Hide resolved
bundles/org.openhab.binding.ephemeris/src/main/resources/OH-INF/thing/thing-types.xml
Outdated
Show resolved
Hide resolved
bundles/org.openhab.binding.ephemeris/src/main/resources/OH-INF/thing/thing-types.xml
Show resolved
Hide resolved
bundles/org.openhab.binding.ephemeris/src/main/resources/OH-INF/thing/thing-types.xml
Outdated
Show resolved
Hide resolved
bundles/org.openhab.binding.ephemeris/src/main/resources/OH-INF/thing/thing-types.xml
Outdated
Show resolved
Hide resolved
bundles/org.openhab.binding.ephemeris/src/main/resources/OH-INF/thing/thing-types.xml
Outdated
Show resolved
Hide resolved
...g.ephemeris/src/main/java/org/openhab/binding/ephemeris/internal/handler/HolidayHandler.java
Outdated
Show resolved
Hide resolved
Notes for myself:
|
bundles/org.openhab.binding.ephemeris/src/main/resources/OH-INF/thing/thing-types.xml
Outdated
Show resolved
Hide resolved
bundles/org.openhab.binding.ephemeris/src/main/resources/OH-INF/thing/thing-types.xml
Outdated
Show resolved
Hide resolved
bundles/org.openhab.binding.ephemeris/src/main/resources/OH-INF/thing/thing-types.xml
Outdated
Show resolved
Hide resolved
bundles/org.openhab.binding.ephemeris/src/main/resources/OH-INF/i18n/ephemeris.properties
Outdated
Show resolved
Hide resolved
...ng.ephemeris/src/main/java/org/openhab/binding/ephemeris/internal/handler/DaysetHandler.java
Outdated
Show resolved
Hide resolved
...g.ephemeris/src/main/java/org/openhab/binding/ephemeris/internal/handler/WeekendHandler.java
Outdated
Show resolved
Hide resolved
....ephemeris/src/main/java/org/openhab/binding/ephemeris/internal/handler/JollydayHandler.java
Outdated
Show resolved
Hide resolved
....ephemeris/src/main/java/org/openhab/binding/ephemeris/internal/handler/JollydayHandler.java
Outdated
Show resolved
Hide resolved
...ng.ephemeris/src/main/java/org/openhab/binding/ephemeris/internal/handler/CustomHandler.java
Outdated
Show resolved
Hide resolved
...ng.ephemeris/src/main/java/org/openhab/binding/ephemeris/internal/handler/CustomHandler.java
Show resolved
Hide resolved
...ng.ephemeris/src/main/java/org/openhab/binding/ephemeris/internal/handler/CustomHandler.java
Outdated
Show resolved
Hide resolved
...ng.ephemeris/src/main/java/org/openhab/binding/ephemeris/internal/handler/CustomHandler.java
Outdated
Show resolved
Hide resolved
I don't know why but build of your branch locally in my PC fails during feature verification:
|
I'm facing the same issue on my side. |
I expect it to work once you pull changes from upstream. as karaf has been updated to 4.4.6 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One final question
File file = new File(BINDING_DATA_PATH, config.fileName); | ||
if (file.exists()) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Question: should you also check that !config.fileName.isBlank()
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It can not hurt
Yes, please rebase your branch (merge the current version of main branch in your branch). |
Signed-off-by: gael@lhopital.org <gael@lhopital.org>
Added Description provider for Holiday title channels Added Switches for holiday-today and holiday-tomorrow Signed-off-by: clinique <gael@lhopital.org>
Signed-off-by: clinique <gael@lhopital.org>
Signed-off-by: clinique <gael@lhopital.org>
Signed-off-by: clinique <gael@lhopital.org>
Signed-off-by: gael@lhopital.org <gael@lhopital.org>
Rebasing pom.xml Signed-off-by: gael@lhopital.org <gael@lhopital.org> Signed-off-by: Gaël L'hopital <gael@lhopital.org>
Signed-off-by: Gaël L'hopital <gael@lhopital.org>
Signed-off-by: Gaël L'hopital <gael@lhopital.org>
Signed-off-by: gael@lhopital.org <gael@lhopital.org>
Signed-off-by: Gaël L'hopital <gael@lhopital.org>
Signed-off-by: Gaël L'hopital <gael@lhopital.org>
Signed-off-by: Gaël L'hopital <gael@lhopital.org>
Signed-off-by: clinique <gael@lhopital.org>
Restoring pom.xml + my binding Signed-off-by: Gaël L'hopital <gael@lhopital.org>
71607df
to
9d7cb3a
Compare
You forgot to resolve conflicts in pom.xml. this file is now invalid. |
Signed-off-by: Gaël L'hopital <gael@lhopital.org>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thank you for contributing this new binding.
…penhab#16628) * [ephemeris] Initial commit of the ephemeris binding Signed-off-by: gael@lhopital.org <gael@lhopital.org> Signed-off-by: Paul Smedley <paul@smedley.id.au>
…penhab#16628) * [ephemeris] Initial commit of the ephemeris binding Signed-off-by: gael@lhopital.org <gael@lhopital.org> Signed-off-by: Patrik Gfeller <patrik.gfeller@proton.me>
…penhab#16628) * [ephemeris] Initial commit of the ephemeris binding Signed-off-by: gael@lhopital.org <gael@lhopital.org>
…penhab#16628) * [ephemeris] Initial commit of the ephemeris binding Signed-off-by: gael@lhopital.org <gael@lhopital.org>
The Ephemeris Binding makes the bridge with Ephemeris core actions, providing access via Items to Ephemeris data without requiring usage of scripts.
It provides direct access to:
The binding will auto create a folder in openhab configuration folder where it expects to find your Jollyday event definition files.
For a debian system : /etc/openhab/misc/ephemeris/
Autodiscovery of Weekend and Holiday is available.