]> git.basschouten.com Git - openhab-addons.git/commit
[awattar] Initial contribution (#11976)
authorWolfgang Klimt <github@klimt.de>
Mon, 2 May 2022 06:22:47 +0000 (08:22 +0200)
committerGitHub <noreply@github.com>
Mon, 2 May 2022 06:22:47 +0000 (08:22 +0200)
commit61de1a53878cfaf5b3f9bf50b1cd6e73ec105586
tree7f2186dc11ef8d26b690421cb0b2e9d13a8a329e
parent3cac11b16b4e13db5485d60e7112760c782a317a
[awattar] Initial contribution (#11976)

* First alpha version of the awattar binding

Signed-off-by: wolfii <wolfgang.klimt@consol.de>
Signed-off-by: Wolfgang Klimt <github@klimt.de>
* Corrected typos

Signed-off-by: wolfii <wolfgang.klimt@consol.de>
Signed-off-by: Wolfgang Klimt <github@klimt.de>
* More typos

Signed-off-by: wolfii <wolfgang.klimt@consol.de>
Signed-off-by: Wolfgang Klimt <github@klimt.de>
* Improved time handling to consider time zone.

Signed-off-by: wolfii <wolfgang.klimt@consol.de>
Signed-off-by: Wolfgang Klimt <github@klimt.de>
* Corrected logical time problem, start adding nextprice thing

Signed-off-by: wolfii <wolfgang.klimt@consol.de>
Signed-off-by: Wolfgang Klimt <github@klimt.de>
* Added support for Austria

Signed-off-by: wolfii <wolfgang.klimt@consol.de>
Signed-off-by: Wolfgang Klimt <github@klimt.de>
* Use List instead of Set

Signed-off-by: wolfii <wolfgang.klimt@consol.de>
Signed-off-by: Wolfgang Klimt <github@klimt.de>
* Minor corrections

Signed-off-by: Wolfgang Klimt <github@klimt.de>
* Removed unneeded handler, corrected fetching of prices

Signed-off-by: Wolfgang Klimt <github@klimt.de>
* Added i18n, updated documentation

Signed-off-by: Wolfgang Klimt <github@klimt.de>
* Corrected pom.xml after rebase

Signed-off-by: Wolfgang Klimt <github@klimt.de>
* Updated version to 3.3.0-SNAPSHOT

Signed-off-by: Wolfgang Klimt <github@klimt.de>
* Corrected findings of Code analysis tool

Signed-off-by: Wolfgang Klimt <github@klimt.de>
* Updated copyright notice

Signed-off-by: Wolfgang Klimt <github@klimt.de>
* Updates to get rid of compiler warnings

Signed-off-by: Wolfgang Klimt <github@klimt.de>
* Worked on review comments from @fwolter

Obeyed most of the review comments. Exceptions:

* binding is already added to bom/openhab-addons/pom.xml (at least I found it there and there was a commit notice in git log)
* mvn license:format brought back 2021, so I manually set everything to 2022. Should I try to rebase my whole branch?
* In two places the binding needs to adjust to minute boundaries, hence scheduleWithFixedDelay will not work.
* I removed empty trailing lines, but mvn spotless:apply brought them back
* The OhInfXmlUsageCheck seems to be wrong.
* The ConstantNameCheck in AwattarUtil seems to be mislead by the fact that all members of the class are static, including the logger. From my point of view it is not a real "constant".

Signed-off-by: Wolfgang Klimt <github@klimt.de>
* Updated Readme to match code changes

Signed-off-by: Wolfgang Klimt <github@klimt.de>
* Further work on review comments from @fwolter

Signed-off-by: Wolfgang Klimt <github@klimt.de>
* Corrected config definition

Signed-off-by: Wolfgang Klimt <github@klimt.de>
* Changed Copyright to 2022

Signed-off-by: Wolfgang Klimt <github@klimt.de>
* Review comments from @fwolter. Improved timezone handling

Signed-off-by: Wolfgang Klimt <github@klimt.de>
Co-authored-by: wolfii <wolfgang.klimt@consol.de>
27 files changed:
CODEOWNERS
bom/openhab-addons/pom.xml
bundles/org.openhab.binding.awattar/NOTICE [new file with mode: 0644]
bundles/org.openhab.binding.awattar/README.md [new file with mode: 0644]
bundles/org.openhab.binding.awattar/pom.xml [new file with mode: 0644]
bundles/org.openhab.binding.awattar/src/main/feature/feature.xml [new file with mode: 0644]
bundles/org.openhab.binding.awattar/src/main/java/org/openhab/binding/awattar/internal/AwattarBestPriceResult.java [new file with mode: 0644]
bundles/org.openhab.binding.awattar/src/main/java/org/openhab/binding/awattar/internal/AwattarBestpriceConfiguration.java [new file with mode: 0644]
bundles/org.openhab.binding.awattar/src/main/java/org/openhab/binding/awattar/internal/AwattarBindingConstants.java [new file with mode: 0644]
bundles/org.openhab.binding.awattar/src/main/java/org/openhab/binding/awattar/internal/AwattarBridgeConfiguration.java [new file with mode: 0644]
bundles/org.openhab.binding.awattar/src/main/java/org/openhab/binding/awattar/internal/AwattarConsecutiveBestPriceResult.java [new file with mode: 0644]
bundles/org.openhab.binding.awattar/src/main/java/org/openhab/binding/awattar/internal/AwattarNonConsecutiveBestPriceResult.java [new file with mode: 0644]
bundles/org.openhab.binding.awattar/src/main/java/org/openhab/binding/awattar/internal/AwattarPrice.java [new file with mode: 0644]
bundles/org.openhab.binding.awattar/src/main/java/org/openhab/binding/awattar/internal/AwattarUtil.java [new file with mode: 0644]
bundles/org.openhab.binding.awattar/src/main/java/org/openhab/binding/awattar/internal/dto/AwattarApiData.java [new file with mode: 0644]
bundles/org.openhab.binding.awattar/src/main/java/org/openhab/binding/awattar/internal/dto/Datum.java [new file with mode: 0644]
bundles/org.openhab.binding.awattar/src/main/java/org/openhab/binding/awattar/internal/handler/AwattarBestpriceHandler.java [new file with mode: 0644]
bundles/org.openhab.binding.awattar/src/main/java/org/openhab/binding/awattar/internal/handler/AwattarBridgeHandler.java [new file with mode: 0644]
bundles/org.openhab.binding.awattar/src/main/java/org/openhab/binding/awattar/internal/handler/AwattarHandlerFactory.java [new file with mode: 0644]
bundles/org.openhab.binding.awattar/src/main/java/org/openhab/binding/awattar/internal/handler/AwattarPriceHandler.java [new file with mode: 0644]
bundles/org.openhab.binding.awattar/src/main/resources/OH-INF/binding/binding.xml [new file with mode: 0644]
bundles/org.openhab.binding.awattar/src/main/resources/OH-INF/config/config.xml [new file with mode: 0644]
bundles/org.openhab.binding.awattar/src/main/resources/OH-INF/i18n/awattar.properties [new file with mode: 0644]
bundles/org.openhab.binding.awattar/src/main/resources/OH-INF/i18n/awattar_de.properties [new file with mode: 0644]
bundles/org.openhab.binding.awattar/src/main/resources/OH-INF/thing/bridge-types.xml [new file with mode: 0644]
bundles/org.openhab.binding.awattar/src/main/resources/OH-INF/thing/thing-types.xml [new file with mode: 0644]
bundles/pom.xml