Skip to content
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

Open
wants to merge 26 commits into
base: main
Choose a base branch
from
Open

[pihole] New binding PiHole #16627

wants to merge 26 commits into from

Conversation

magx2
Copy link
Contributor

@magx2 magx2 commented Apr 7, 2024

Hey,

I'm finishing writing readme but the code can be reviewed.

Cheers

@magx2 magx2 requested a review from a team as a code owner April 7, 2024 17:52
@holgerfriedrich holgerfriedrich added the new binding If someone has started to work on a binding. For a new binding PR. label Apr 7, 2024
@jlaur jlaur changed the title New binding PiHole [pihole] New binding PiHole Apr 7, 2024
bundles/org.openhab.binding.pihole/README.md Show resolved Hide resolved

<dependencies>
<dependency>
<groupId>ch.qos.logback</groupId>
Copy link
Contributor

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 ?

Copy link
Contributor Author

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

Copy link
Contributor

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.

Copy link
Contributor Author

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

Copy link
Contributor

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:

<dependencies>
<dependency>
<groupId>jcifs</groupId>
<artifactId>jcifs</artifactId>
<version>1.3.17</version>
<scope>compile</scope>
</dependency>
</dependencies>

Copy link
Contributor Author

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>

@magx2 magx2 requested a review from clinique April 12, 2024 13:45
@magx2 magx2 force-pushed the pihole/master branch 3 times, most recently from e0c41a3 to 80109b4 Compare April 14, 2024 12:34
@magx2
Copy link
Contributor Author

magx2 commented Apr 15, 2024

@clinique any update?

@miloit
Copy link
Contributor

miloit commented Apr 17, 2024

Hello, binding is only for pihole v5 ? Also V6?

@magx2
Copy link
Contributor Author

magx2 commented Apr 17, 2024

Hello, binding is only for pihole v5 ? Also V6?

Is there v6? I see only v5 in releases.

Personally I was testing it with:

Docker Tag 2024.02.2 · Pi-hole v5.17.3 FTL v5.25.1 Web Interface v5.21

magx2 added 16 commits April 24, 2024 21:00
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>
magx2 added 10 commits April 24, 2024 21:00
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>
@miloit
Copy link
Contributor

miloit commented May 21, 2024

Here you can test....
https://discourse.pi-hole.net/t/pi-hole-v6-beta-testing/65413

No official release date....but I would go for the pihole v5 integration first and than it's easier to implement v6 api

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new binding If someone has started to work on a binding. For a new binding PR.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants