-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
[pihole] New binding PiHole #16627
base: main
Are you sure you want to change the base?
[pihole] New binding PiHole #16627
Conversation
....openhab.binding.pihole/src/main/java/org/openhab/binding/pihole/internal/PiHoleHandler.java
Show resolved
Hide resolved
....openhab.binding.pihole/src/main/java/org/openhab/binding/pihole/internal/PiHoleHandler.java
Outdated
Show resolved
Hide resolved
...nding.pihole/src/main/java/org/openhab/binding/pihole/internal/rest/model/DnsStatistics.java
Outdated
Show resolved
Hide resolved
....pihole/src/main/java/org/openhab/binding/pihole/internal/rest/model/GravityLastUpdated.java
Outdated
Show resolved
Hide resolved
bundles/org.openhab.binding.pihole/src/main/resources/OH-INF/thing/thing-types.xml
Outdated
Show resolved
Hide resolved
|
||
<dependencies> | ||
<dependency> | ||
<groupId>ch.qos.logback</groupId> |
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.
Why is this dependency required ?
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.
To run unit tests and have logging
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.
Take a look at how it's done in other bindings . Tests should not be in the binding pom apparently.
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.
You are talking about integration tests not unit https://www.openhab.org/docs/developer/tests.html#unit-tests
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.
Didn't check details, but might help:
openhab-addons/bundles/org.openhab.binding.hdpowerview/pom.xml
Lines 23 to 30 in a9f7e0f
<dependencies> | |
<dependency> | |
<groupId>jcifs</groupId> | |
<artifactId>jcifs</artifactId> | |
<version>1.3.17</version> | |
<scope>compile</scope> | |
</dependency> | |
</dependencies> |
Lines 37 to 38 in a9f7e0f
import ch.qos.logback.classic.Level; | |
import ch.qos.logback.classic.Logger; |
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.
You both see that this dep is in test scope, right?
<dependencies>
<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-classic</artifactId>
<version>1.2.3</version>
<scope>test</scope> <!-- here -->
</dependency>
....openhab.binding.pihole/src/main/java/org/openhab/binding/pihole/internal/PiHoleHandler.java
Outdated
Show resolved
Hide resolved
....openhab.binding.pihole/src/main/java/org/openhab/binding/pihole/internal/PiHoleHandler.java
Show resolved
Hide resolved
....openhab.binding.pihole/src/main/java/org/openhab/binding/pihole/internal/PiHoleHandler.java
Show resolved
Hide resolved
...binding.pihole/src/main/java/org/openhab/binding/pihole/internal/rest/JettyAdminService.java
Outdated
Show resolved
Hide resolved
...binding.pihole/src/main/java/org/openhab/binding/pihole/internal/rest/JettyAdminService.java
Outdated
Show resolved
Hide resolved
...binding.pihole/src/main/java/org/openhab/binding/pihole/internal/rest/JettyAdminService.java
Outdated
Show resolved
Hide resolved
...binding.pihole/src/main/java/org/openhab/binding/pihole/internal/rest/JettyAdminService.java
Outdated
Show resolved
Hide resolved
...nding.pihole/src/main/java/org/openhab/binding/pihole/internal/rest/model/DnsStatistics.java
Show resolved
Hide resolved
e0c41a3
to
80109b4
Compare
@clinique any update? |
Hello, binding is only for pihole v5 ? Also V6? |
God save the King! Signed-off-by: Martin Grześlowski <martin.grzeslowski@gmail.com>
Signed-off-by: Martin Grześlowski <martin.grzeslowski@gmail.com>
Signed-off-by: Martin Grześlowski <martin.grzeslowski@gmail.com>
Signed-off-by: Martin Grześlowski <martin.grzeslowski@gmail.com>
Signed-off-by: Martin Grześlowski <martin.grzeslowski@gmail.com>
Signed-off-by: Martin Grześlowski <martin.grzeslowski@gmail.com>
Signed-off-by: Martin Grześlowski <martin.grzeslowski@gmail.com>
Signed-off-by: Martin Grześlowski <martin.grzeslowski@gmail.com>
Signed-off-by: Martin Grześlowski <martin.grzeslowski@gmail.com>
Signed-off-by: Martin Grześlowski <martin.grzeslowski@gmail.com>
Signed-off-by: Martin Grześlowski <martin.grzeslowski@gmail.com>
Signed-off-by: Martin Grześlowski <martin.grzeslowski@gmail.com>
Signed-off-by: Martin Grześlowski <martin.grzeslowski@gmail.com>
Signed-off-by: Martin Grześlowski <martin.grzeslowski@gmail.com>
Signed-off-by: Martin Grześlowski <martin.grzeslowski@gmail.com>
Signed-off-by: Martin Grześlowski <martin.grzeslowski@gmail.com>
Signed-off-by: Martin Grześlowski <martin.grzeslowski@gmail.com>
Signed-off-by: Martin Grześlowski <martin.grzeslowski@gmail.com>
Signed-off-by: Martin Grześlowski <martin.grzeslowski@gmail.com>
Signed-off-by: Martin Grześlowski <martin.grzeslowski@gmail.com>
Signed-off-by: Martin Grześlowski <martin.grzeslowski@gmail.com>
Signed-off-by: Martin Grześlowski <martin.grzeslowski@gmail.com>
Signed-off-by: Martin Grześlowski <martin.grzeslowski@gmail.com>
Signed-off-by: Martin Grześlowski <martin.grzeslowski@gmail.com>
Here you can test.... No official release date....but I would go for the pihole v5 integration first and than it's easier to implement v6 api |
Hey,
I'm finishing writing readme but the code can be reviewed.
Cheers