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

[ahawastecollection] Initial Contribution #10387

Merged
merged 12 commits into from
Apr 30, 2021

Conversation

soenkekueper
Copy link
Contributor

Signed-off-by: Sönke Küper [email protected]

Closes: #10386

This PR implements an binding for the aha waste collection schedule.
It allows users to request the next collection days for several waste types at an specified location.

It therefore basically uses the schedule provided at aha Abfuhrkalender and retrieves the next collection days and supplies them as date channel values.

@soenkekueper soenkekueper requested a review from a team as a code owner March 24, 2021 19:45
@fwolter fwolter changed the title [ahawastecollection] 10386: created binding for aha waste collection schedule [ahawastecollection] Initial Contribution Mar 26, 2021
@fwolter fwolter added the new binding If someone has started to work on a binding. For a new binding PR. label Mar 26, 2021
@fwolter fwolter self-assigned this Mar 26, 2021
Copy link
Member

@fwolter fwolter left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your contribution!

There is one reasonable checkstyle warning left.

Please add yourself to the CODEOWNERS file and add the binding to bom\openhab-addons\pom.xml.

@fwolter
Copy link
Member

fwolter commented Mar 26, 2021

I installed the binding successfully on my productive OH system. I find the grabbing of the data from the form a bit confusing as the "Abholplatz" didn't show up at the first request and the form variable is called "ladeort". Maybe you could add a screenshot of the developer console showing the values.

The "_DE" in the i18n filename needs to be removed to function properly.

@soenkekueper
Copy link
Contributor Author

@fwolter Thanks for your review and the remarks - most of them are already fixed.
The i18n file was generated by the create_openhab_binding_skeleton script - and i followed the instructions inside.
In my installation this works fine, do you have any idea whats wrong?

Configuration

@fwolter
Copy link
Member

fwolter commented Mar 28, 2021

I opened and issue: openhab/openhab-core#2261

@fwolter
Copy link
Member

fwolter commented Apr 10, 2021

See the discussion in above issue. The locale identifier should be de to work properly with all browsers.

bundles/org.openhab.binding.ahawastecollection/README.md Outdated Show resolved Hide resolved
if (command instanceof RefreshType) {
this.scheduler.execute(this::updateCollectionDates);
} else {
this.logger.warn("The AHA Abfuhrkalender is a read-only binding and can not handle commands"); //$NON-NLS-1$
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove the comment.

soenkekueper and others added 4 commits April 29, 2021 20:33
Signed-off-by: Sönke Küper <[email protected]>
Co-authored-by: Fabian Wolter <[email protected]>
Signed-off-by: Sönke Küper <[email protected]>
@fwolter
Copy link
Member

fwolter commented Apr 29, 2021

Your code doesn't compile as it has formatting issues.

Signed-off-by: Sönke Küper <[email protected]>
Copy link
Member

@fwolter fwolter left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@fwolter fwolter merged commit 710aa76 into openhab:main Apr 30, 2021
@fwolter fwolter added this to the 3.1 milestone Apr 30, 2021
themillhousegroup pushed a commit to themillhousegroup/openhab2-addons that referenced this pull request May 10, 2021
Signed-off-by: Sönke Küper <[email protected]>
Signed-off-by: John Marshall <[email protected]>
computergeek1507 pushed a commit to computergeek1507/openhab-addons that referenced this pull request Jul 13, 2021
frederictobiasc pushed a commit to frederictobiasc/openhab-addons that referenced this pull request Oct 26, 2021
thinkingstone pushed a commit to thinkingstone/openhab-addons that referenced this pull request Nov 7, 2021
marcfischerboschio pushed a commit to bosch-io/openhab-addons that referenced this pull request May 5, 2022
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.

Binding for aha waste collection schedule
2 participants