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
[hccrubbishcollection] HCC Rubbish Collection Binding - Initial Contribution #9975
Conversation
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.
Thanks for your contribution! I reviewed your code and here is my feedback.
Please add yourself to the CODEOWNERS
file and add an entry to bom\openhab-addons\pom.xml
.
bundles/org.openhab.binding.hccrubbishcollection/src/main/feature/feature.xml
Outdated
Show resolved
Hide resolved
bundles/org.openhab.binding.hccrubbishcollection/src/main/resources/OH-INF/binding/binding.xml
Outdated
Show resolved
Hide resolved
...les/org.openhab.binding.hccrubbishcollection/src/main/resources/OH-INF/thing/thing-types.xml
Outdated
Show resolved
Hide resolved
Thanks @fwolter for the feedback, I will go ahead and make required corrections. |
eea4b36
to
d1d2e4a
Compare
@fwolter all done. Thanks for reviewing. |
Signed-off-by: Stewart Cossey <stewart.cossey@gmail.com>
Signed-off-by: Stewart Cossey <stewart.cossey@gmail.com>
Signed-off-by: Stewart Cossey <stewart.cossey@gmail.com>
Add pattern to Collection Date items. Add Options to Collection day channel. Signed-off-by: Stewart Cossey <stewart.cossey@gmail.com>
Signed-off-by: Stewart Cossey <stewart.cossey@gmail.com>
Signed-off-by: Stewart Cossey <stewart.cossey@gmail.com>
Remove incorrect commented tag. Fix binding naming in XML files. Signed-off-by: Stewart Cossey <stewart.cossey@gmail.com>
Signed-off-by: Stewart Cossey <stewart.cossey@gmail.com>
Signed-off-by: Stewart Cossey <stewart.cossey@gmail.com>
fcf5402
to
bdc44aa
Compare
Signed-off-by: Stewart Cossey <stewart.cossey@gmail.com>
Added additional comments into code. Checks if binding is disposing to make sure already started processes do not execute. Signed-off-by: Stewart Cossey <stewart.cossey@gmail.com>
I made a fix with gson and commented the code further. I made additional improvements based on #10549 since I have designed these bindings in the same way. |
@fwolter Can you review please and approve if it all looks okay? Thanks heaps! |
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.
Your code doesn't compile as there are some formatting issues. You can fix them with mvn spotless:apply
.
Signed-off-by: Stewart Cossey <stewart.cossey@gmail.com>
Apologies @fwolter, I missed that check after that last set of changes. All fixed now. |
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
Now, you could add your binding's logo to the openHAB website. See https://deploy-preview-1540--openhab-docs-preview.netlify.app/docs/developer/bindings/#add-your-binding-s-logo-to-the-openhab-website
…ibution (openhab#9975) Signed-off-by: Stewart Cossey <stewart.cossey@gmail.com> Signed-off-by: John Marshall <john.marshall.au@gmail.com>
…ibution (openhab#9975) Signed-off-by: Stewart Cossey <stewart.cossey@gmail.com>
…ibution (openhab#9975) Signed-off-by: Stewart Cossey <stewart.cossey@gmail.com>
…ibution (openhab#9975) Signed-off-by: Stewart Cossey <stewart.cossey@gmail.com>
…ibution (openhab#9975) Signed-off-by: Stewart Cossey <stewart.cossey@gmail.com>
A binding that displays rubbish collection days for Hamilton City Council (New Zealand).
This binding is simple and polls a web API. It uses to the Fight the Landfill website rubbish collection API that I had discovered. This API displays the date when the recycling and the general rubbish will be collected as well as the collection day of week for an address, which gets pulled into channels.
There is also an event that triggers for the day of collection that also supports an offset of up to +- 2 days, in minutes. You can use the event in a rule so that you can do what you need, in my case I send myself a notification reminder to put out the rubbish the night before, using an offset of
-300
.