-
-
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
[wundergroundupdatereceiver] Initial contribution #10105
Conversation
...openhab.binding.wundergroundupdatereceiver/src/main/resources/OH-INF/thing/channel-types.xml
Outdated
Show resolved
Hide resolved
bundles/org.openhab.binding.wundergroundupdatereceiver/README.md
Outdated
Show resolved
Hide resolved
...g/openhab/binding/wundergroundupdatereceiver/internal/WundergroundUpdateReceiverServlet.java
Outdated
Show resolved
Hide resolved
...g/openhab/binding/wundergroundupdatereceiver/internal/WundergroundUpdateReceiverServlet.java
Outdated
Show resolved
Hide resolved
...g/openhab/binding/wundergroundupdatereceiver/internal/WundergroundUpdateReceiverHandler.java
Outdated
Show resolved
Hide resolved
...openhab.binding.wundergroundupdatereceiver/src/main/resources/OH-INF/thing/channel-types.xml
Outdated
Show resolved
Hide resolved
...org.openhab.binding.wundergroundupdatereceiver/src/main/resources/OH-INF/binding/binding.xml
Outdated
Show resolved
Hide resolved
bundles/org.openhab.binding.wundergroundupdatereceiver/README.md
Outdated
Show resolved
Hide resolved
bundles/org.openhab.binding.wundergroundupdatereceiver/README.md
Outdated
Show resolved
Hide resolved
...b.binding.wundergroundupdatereceiver/src/main/resources/OH-INF/thing/channel-group-types.xml
Outdated
Show resolved
Hide resolved
...b.binding.wundergroundupdatereceiver/src/main/resources/OH-INF/thing/channel-group-types.xml
Outdated
Show resolved
Hide resolved
...b.binding.wundergroundupdatereceiver/src/main/resources/OH-INF/thing/channel-group-types.xml
Show resolved
Hide resolved
...openhab.binding.wundergroundupdatereceiver/src/main/resources/OH-INF/thing/channel-types.xml
Show resolved
Hide resolved
...openhab.binding.wundergroundupdatereceiver/src/main/resources/OH-INF/thing/channel-types.xml
Outdated
Show resolved
Hide resolved
bundles/org.openhab.binding.wundergroundupdatereceiver/README.md
Outdated
Show resolved
Hide resolved
6764d77
to
1b4a05b
Compare
bundles/org.openhab.binding.wundergroundupdatereceiver/README.md
Outdated
Show resolved
Hide resolved
bundles/org.openhab.binding.wundergroundupdatereceiver/README.md
Outdated
Show resolved
Hide resolved
0421ec4
to
3f21be9
Compare
3f21be9
to
89dee9d
Compare
...g/openhab/binding/wundergroundupdatereceiver/internal/WundergroundUpdateReceiverServlet.java
Show resolved
Hide resolved
Also add som emore constants Signed-off-by: Daniel Demus <daniel-github@demus.dk>
Signed-off-by: Daniel Demus <daniel-github@demus.dk>
Signed-off-by: Daniel Demus <daniel-github@demus.dk>
Signed-off-by: Daniel Demus <daniel-github@demus.dk>
Signed-off-by: Daniel Demus <daniel-github@demus.dk> Ie. those that can have an index number in the name, fx. temp1f, temp2f
To support multiple devices any new parameters that are submitted cause a new channel to be created Signed-off-by: Daniel Demus <daniel-github@demus.dk>
Also documentation additions Signed-off-by: Daniel Demus <daniel-github@demus.dk>
Signed-off-by: Daniel Demus <daniel-github@demus.dk>
Signed-off-by: Daniel Demus <daniel-github@demus.dk>
b7cf972
to
53f562b
Compare
Signed-off-by: Daniel Demus <daniel-github@demus.dk>
53f562b
to
799619d
Compare
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://www.openhab.org/docs/developer/bindings/#add-your-binding-s-logo-to-the-openhab-website
@jlaur Could you review the danish translation and load it into Crowdin? |
@kaikreuzer Can you invite @danieldemus to the contributors? |
Yes, although in the opposite order since now merged. :-) |
@fwolter, @danieldemus - I have now done first review walk-through:
@danieldemus - please have a look at the comments and missing translations in Crowdin: Since the Danish strings were merged directly into the codebase with this PR, the identified mistakes will be present in 3.3 unless all missing strings are provided and mistakes corrected before then. This is because the synchronization back to the repository is only triggered when 100% strings are provided and approved. |
@danieldemus - I went through another round, please have another look at Crowdin to fix the last few translations. Will you create a PR for fixing the default string issues? At least this, don't remember if there are more: (actually outdoor)
|
* [wundergroundupdatereceiver] Initial implementation Signed-off-by: Daniel Demus <daniel-github@demus.dk> * [wundergroundupdatereceiver] Code review Signed-off-by: Daniel Demus <daniel-github@demus.dk> * [wundergroundupdatereceiver] Fix some description formatting Signed-off-by: Daniel Demus <daniel-github@demus.dk> * [wundergroundupdatereceiver] Add some more channel types per request Signed-off-by: Daniel Demus <daniel-github@demus.dk> * [wundergroundupdatereceiver] Add more headers to response Signed-off-by: Daniel Demus <daniel-github@demus.dk> Based on the observed headers from actual traffic to wunderground.com. * [wundergroundupdatereceiver] Discovery service Signed-off-by: Daniel Demus <daniel-github@demus.dk> * [wundergroundupdatereceiver] Upgrade to 3.2, fix group name constants Signed-off-by: Daniel Demus <daniel-github@demus.dk> * [wundergroundupdatereceiver] Add a list of channel types Signed-off-by: Daniel Demus <daniel-github@demus.dk> * [wundergroundupdatereceiver] Add dateutc as synthetic DateTime channel Also add som emore constants Signed-off-by: Daniel Demus <daniel-github@demus.dk> * [wundergroundupdatereceiver] Do more programmatic configuration Signed-off-by: Daniel Demus <daniel-github@demus.dk> * [wundergroundupdatereceiver] More readme Signed-off-by: Daniel Demus <daniel-github@demus.dk> * [wundergroundupdatereceiver] Update copyright year Signed-off-by: Daniel Demus <daniel-github@demus.dk> * [wundergroundupdatereceiver] Handle multiple instance request parameters Signed-off-by: Daniel Demus <daniel-github@demus.dk> Ie. those that can have an index number in the name, fx. temp1f, temp2f * [wundergroundupdatereceiver] Add unmapped but mappable channels To support multiple devices any new parameters that are submitted cause a new channel to be created Signed-off-by: Daniel Demus <daniel-github@demus.dk> * [wundergroundupdatereceiver] Don't pass superfluous config to channels Also documentation additions Signed-off-by: Daniel Demus <daniel-github@demus.dk> * [wundergroundupdatereceiver] Add generated i18n file Signed-off-by: Daniel Demus <daniel-github@demus.dk> * [wundergroundupdatereceiver] Re-case test method names Signed-off-by: Daniel Demus <daniel-github@demus.dk> * [wundergroundupdatereceiver] Re-word thing file section of README Signed-off-by: Daniel Demus <daniel-github@demus.dk> Co-authored-by: Daniel Demus <dde@nine.dk>
* [wundergroundupdatereceiver] Initial implementation Signed-off-by: Daniel Demus <daniel-github@demus.dk> * [wundergroundupdatereceiver] Code review Signed-off-by: Daniel Demus <daniel-github@demus.dk> * [wundergroundupdatereceiver] Fix some description formatting Signed-off-by: Daniel Demus <daniel-github@demus.dk> * [wundergroundupdatereceiver] Add some more channel types per request Signed-off-by: Daniel Demus <daniel-github@demus.dk> * [wundergroundupdatereceiver] Add more headers to response Signed-off-by: Daniel Demus <daniel-github@demus.dk> Based on the observed headers from actual traffic to wunderground.com. * [wundergroundupdatereceiver] Discovery service Signed-off-by: Daniel Demus <daniel-github@demus.dk> * [wundergroundupdatereceiver] Upgrade to 3.2, fix group name constants Signed-off-by: Daniel Demus <daniel-github@demus.dk> * [wundergroundupdatereceiver] Add a list of channel types Signed-off-by: Daniel Demus <daniel-github@demus.dk> * [wundergroundupdatereceiver] Add dateutc as synthetic DateTime channel Also add som emore constants Signed-off-by: Daniel Demus <daniel-github@demus.dk> * [wundergroundupdatereceiver] Do more programmatic configuration Signed-off-by: Daniel Demus <daniel-github@demus.dk> * [wundergroundupdatereceiver] More readme Signed-off-by: Daniel Demus <daniel-github@demus.dk> * [wundergroundupdatereceiver] Update copyright year Signed-off-by: Daniel Demus <daniel-github@demus.dk> * [wundergroundupdatereceiver] Handle multiple instance request parameters Signed-off-by: Daniel Demus <daniel-github@demus.dk> Ie. those that can have an index number in the name, fx. temp1f, temp2f * [wundergroundupdatereceiver] Add unmapped but mappable channels To support multiple devices any new parameters that are submitted cause a new channel to be created Signed-off-by: Daniel Demus <daniel-github@demus.dk> * [wundergroundupdatereceiver] Don't pass superfluous config to channels Also documentation additions Signed-off-by: Daniel Demus <daniel-github@demus.dk> * [wundergroundupdatereceiver] Add generated i18n file Signed-off-by: Daniel Demus <daniel-github@demus.dk> * [wundergroundupdatereceiver] Re-case test method names Signed-off-by: Daniel Demus <daniel-github@demus.dk> * [wundergroundupdatereceiver] Re-word thing file section of README Signed-off-by: Daniel Demus <daniel-github@demus.dk> Co-authored-by: Daniel Demus <dde@nine.dk>
* [wundergroundupdatereceiver] Initial implementation Signed-off-by: Daniel Demus <daniel-github@demus.dk> * [wundergroundupdatereceiver] Code review Signed-off-by: Daniel Demus <daniel-github@demus.dk> * [wundergroundupdatereceiver] Fix some description formatting Signed-off-by: Daniel Demus <daniel-github@demus.dk> * [wundergroundupdatereceiver] Add some more channel types per request Signed-off-by: Daniel Demus <daniel-github@demus.dk> * [wundergroundupdatereceiver] Add more headers to response Signed-off-by: Daniel Demus <daniel-github@demus.dk> Based on the observed headers from actual traffic to wunderground.com. * [wundergroundupdatereceiver] Discovery service Signed-off-by: Daniel Demus <daniel-github@demus.dk> * [wundergroundupdatereceiver] Upgrade to 3.2, fix group name constants Signed-off-by: Daniel Demus <daniel-github@demus.dk> * [wundergroundupdatereceiver] Add a list of channel types Signed-off-by: Daniel Demus <daniel-github@demus.dk> * [wundergroundupdatereceiver] Add dateutc as synthetic DateTime channel Also add som emore constants Signed-off-by: Daniel Demus <daniel-github@demus.dk> * [wundergroundupdatereceiver] Do more programmatic configuration Signed-off-by: Daniel Demus <daniel-github@demus.dk> * [wundergroundupdatereceiver] More readme Signed-off-by: Daniel Demus <daniel-github@demus.dk> * [wundergroundupdatereceiver] Update copyright year Signed-off-by: Daniel Demus <daniel-github@demus.dk> * [wundergroundupdatereceiver] Handle multiple instance request parameters Signed-off-by: Daniel Demus <daniel-github@demus.dk> Ie. those that can have an index number in the name, fx. temp1f, temp2f * [wundergroundupdatereceiver] Add unmapped but mappable channels To support multiple devices any new parameters that are submitted cause a new channel to be created Signed-off-by: Daniel Demus <daniel-github@demus.dk> * [wundergroundupdatereceiver] Don't pass superfluous config to channels Also documentation additions Signed-off-by: Daniel Demus <daniel-github@demus.dk> * [wundergroundupdatereceiver] Add generated i18n file Signed-off-by: Daniel Demus <daniel-github@demus.dk> * [wundergroundupdatereceiver] Re-case test method names Signed-off-by: Daniel Demus <daniel-github@demus.dk> * [wundergroundupdatereceiver] Re-word thing file section of README Signed-off-by: Daniel Demus <daniel-github@demus.dk> Co-authored-by: Daniel Demus <dde@nine.dk> Signed-off-by: Andras Uhrin <andras.uhrin@gmail.com>
* [wundergroundupdatereceiver] Initial implementation Signed-off-by: Daniel Demus <daniel-github@demus.dk> * [wundergroundupdatereceiver] Code review Signed-off-by: Daniel Demus <daniel-github@demus.dk> * [wundergroundupdatereceiver] Fix some description formatting Signed-off-by: Daniel Demus <daniel-github@demus.dk> * [wundergroundupdatereceiver] Add some more channel types per request Signed-off-by: Daniel Demus <daniel-github@demus.dk> * [wundergroundupdatereceiver] Add more headers to response Signed-off-by: Daniel Demus <daniel-github@demus.dk> Based on the observed headers from actual traffic to wunderground.com. * [wundergroundupdatereceiver] Discovery service Signed-off-by: Daniel Demus <daniel-github@demus.dk> * [wundergroundupdatereceiver] Upgrade to 3.2, fix group name constants Signed-off-by: Daniel Demus <daniel-github@demus.dk> * [wundergroundupdatereceiver] Add a list of channel types Signed-off-by: Daniel Demus <daniel-github@demus.dk> * [wundergroundupdatereceiver] Add dateutc as synthetic DateTime channel Also add som emore constants Signed-off-by: Daniel Demus <daniel-github@demus.dk> * [wundergroundupdatereceiver] Do more programmatic configuration Signed-off-by: Daniel Demus <daniel-github@demus.dk> * [wundergroundupdatereceiver] More readme Signed-off-by: Daniel Demus <daniel-github@demus.dk> * [wundergroundupdatereceiver] Update copyright year Signed-off-by: Daniel Demus <daniel-github@demus.dk> * [wundergroundupdatereceiver] Handle multiple instance request parameters Signed-off-by: Daniel Demus <daniel-github@demus.dk> Ie. those that can have an index number in the name, fx. temp1f, temp2f * [wundergroundupdatereceiver] Add unmapped but mappable channels To support multiple devices any new parameters that are submitted cause a new channel to be created Signed-off-by: Daniel Demus <daniel-github@demus.dk> * [wundergroundupdatereceiver] Don't pass superfluous config to channels Also documentation additions Signed-off-by: Daniel Demus <daniel-github@demus.dk> * [wundergroundupdatereceiver] Add generated i18n file Signed-off-by: Daniel Demus <daniel-github@demus.dk> * [wundergroundupdatereceiver] Re-case test method names Signed-off-by: Daniel Demus <daniel-github@demus.dk> * [wundergroundupdatereceiver] Re-word thing file section of README Signed-off-by: Daniel Demus <daniel-github@demus.dk> Co-authored-by: Daniel Demus <dde@nine.dk>
* [wundergroundupdatereceiver] Initial implementation Signed-off-by: Daniel Demus <daniel-github@demus.dk> * [wundergroundupdatereceiver] Code review Signed-off-by: Daniel Demus <daniel-github@demus.dk> * [wundergroundupdatereceiver] Fix some description formatting Signed-off-by: Daniel Demus <daniel-github@demus.dk> * [wundergroundupdatereceiver] Add some more channel types per request Signed-off-by: Daniel Demus <daniel-github@demus.dk> * [wundergroundupdatereceiver] Add more headers to response Signed-off-by: Daniel Demus <daniel-github@demus.dk> Based on the observed headers from actual traffic to wunderground.com. * [wundergroundupdatereceiver] Discovery service Signed-off-by: Daniel Demus <daniel-github@demus.dk> * [wundergroundupdatereceiver] Upgrade to 3.2, fix group name constants Signed-off-by: Daniel Demus <daniel-github@demus.dk> * [wundergroundupdatereceiver] Add a list of channel types Signed-off-by: Daniel Demus <daniel-github@demus.dk> * [wundergroundupdatereceiver] Add dateutc as synthetic DateTime channel Also add som emore constants Signed-off-by: Daniel Demus <daniel-github@demus.dk> * [wundergroundupdatereceiver] Do more programmatic configuration Signed-off-by: Daniel Demus <daniel-github@demus.dk> * [wundergroundupdatereceiver] More readme Signed-off-by: Daniel Demus <daniel-github@demus.dk> * [wundergroundupdatereceiver] Update copyright year Signed-off-by: Daniel Demus <daniel-github@demus.dk> * [wundergroundupdatereceiver] Handle multiple instance request parameters Signed-off-by: Daniel Demus <daniel-github@demus.dk> Ie. those that can have an index number in the name, fx. temp1f, temp2f * [wundergroundupdatereceiver] Add unmapped but mappable channels To support multiple devices any new parameters that are submitted cause a new channel to be created Signed-off-by: Daniel Demus <daniel-github@demus.dk> * [wundergroundupdatereceiver] Don't pass superfluous config to channels Also documentation additions Signed-off-by: Daniel Demus <daniel-github@demus.dk> * [wundergroundupdatereceiver] Add generated i18n file Signed-off-by: Daniel Demus <daniel-github@demus.dk> * [wundergroundupdatereceiver] Re-case test method names Signed-off-by: Daniel Demus <daniel-github@demus.dk> * [wundergroundupdatereceiver] Re-word thing file section of README Signed-off-by: Daniel Demus <daniel-github@demus.dk> Co-authored-by: Daniel Demus <dde@nine.dk>
Signed-off-by: Daniel Demus daniel-github@demus.dk
Being the owner of a weather station that is able to submit measurements to wunderground.com via the update URL, I looked for a binding to capture the values and use them locally on my openhab instance to fx. open and close windows or awnings depending on weather conditions, or just to display current weather on a weather page.
I couldn't find any thus this binding. It registers a servlet listening on the wunderground.com update URL path and gathers the submitted values into channels on the thing. Multiple wunderground accounts can be supported by configuring the station id of the thing. The station id must match the ID parameter in the requests from the weather station. Every update is also passed along in a trigger channel, which can then resend the update to wunderground.com in a trivial rule script. In addition you can also submit measurements to other weather services in whatever format they accept.
The build artifact can be found here:
https://openhab.jfrog.io/artifactory/libs-pullrequest-local/org/openhab/addons/bundles/org.openhab.binding.wundergroundupdatereceiver/3.2.0-SNAPSHOT/