Commit Graph

365 Commits

Author SHA1 Message Date
Markus Rathgeb
849753befe small improvements of hexutils API and impl. (#862)
Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>
2019-06-10 17:07:04 +02:00
Markus Rathgeb
3b74ea1dad use separate class for named thread factory (#860)
... to make it usable for others

Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>
2019-06-09 20:32:01 +02:00
Markus Rathgeb
9018e9ae80 move event logging for better analyze options (#856)
* move event logging for better analyze options
* add another optional event handling logging

Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>
2019-06-09 10:33:42 +02:00
Christoph Weitkamp
64a466ff7d Added nullness annotations (#850)
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2019-06-03 14:05:33 +02:00
Christoph Weitkamp
eef779e91a Added nullness annotations (#837)
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2019-05-28 17:56:48 +02:00
Christoph Weitkamp
0f74348f51 Factored out 'LocalizedKey' into separate class (#808)
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2019-05-09 11:57:40 +02:00
Markus Rathgeb
eaaf01a5fd use mandatory storage services (#787)
Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>
2019-05-02 21:11:00 +02:00
Christoph Weitkamp
b8de327e15 Added i18n feature for dynamic command descriptions (#771)
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2019-04-29 19:16:47 +02:00
Christoph Weitkamp
31760bf3a7 Updated xml schema locations to openhab (#769)
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2019-04-29 19:15:24 +02:00
Markus Rathgeb
25d7f14dfc safe caller: respect classloader of the class and the interfaces (#763)
Related to: https://github.com/openhab/openhab2-addons/issues/5519

Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>
2019-04-28 16:20:53 +02:00
Christoph Weitkamp
bc91446ae1 Added i18n feature for dynamic state descriptions (#655)
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2019-04-26 12:54:40 +02:00
Christoph Weitkamp
387b439509 Reduced logging level in AbstractRegistry (#755)
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2019-04-25 15:10:33 +02:00
David Gräff
8819eb6ef9 add default constructor to MetadataKey (Gson deserialization support) (#727)
Signed-off-by: David Gräff <david.graeff@web.de>
2019-04-15 15:42:46 +02:00
David Gräff
7838a6a46f Update Metadata.java (#704)
Fixes #699 

Signed-off-by: David Gräff <david.graeff@web.de>
2019-04-08 21:07:33 +02:00
Hilbrand Bouwkamp
1d8b7be59b Added units kvarh and kvar. (#695)
Also simplified gravity unit.

Signed-off-by: Hilbrand Bouwkamp <hilbrand@h72.nl>
2019-04-07 11:12:06 +02:00
Gaël L'hopital
c6a9085a74 Adding DataAmount (bit and derivatives) and DataTransferRates (bits per second) (#681)
* Adding DataAmount (bit and derivatives) and DataTransferRates (bits per second) to UoM

Signed-off-by: Gaël L'hopital <gael@lhopital.org>
2019-03-30 21:43:15 +01:00
Wouter Born
cbb96945f0 Ignore and remove Eclipse project specific settings (#677)
Signed-off-by: Wouter Born <github@maindrain.net>
2019-03-26 13:04:09 +01:00
Wouter Born
1acb9c8ff2 [core] Increase DateTimeType parsing and formatting precision (#668)
Since Java 9 (JDK-8164428) the maximum resolution from the underlying clock is used.
Instead of just milliseconds the resolution can now even be tenth of microseconds.

According to the Type JavaDocs toFullString() should return the full string representation of the type to be consumed by 'valueOf(String)'.

With the changes in this PR toFullString() may return higher resolution date time strings on newer Java versions and valueOf(value) is able to parse these.

Code depending on a certain resolution returned by toFullString() should use the format(pattern) method instead so the resolution will not change.

Fixes #667

Signed-off-by: Wouter Born <github@maindrain.net>
2019-03-17 13:18:30 +01:00
Markus Rathgeb
fdb23778dc improve nullness of events (#657)
Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>
2019-03-15 09:10:52 +01:00
Wouter Born
48d873a32b Use openHAB license headers (#632)
Signed-off-by: Wouter Born <github@maindrain.net>
2019-03-06 16:10:00 +01:00
Hilbrand Bouwkamp
caa9b71c21 Added new parent class for units to fix import problems. (#618)
The change with unit classes parent (#617) causes it to report missing imports of tec.uom.se when using static import. Before the change this was not a problem because the parent class was SmartHomeUnits. This change adds a new parent class for all units.

Signed-off-by: Hilbrand Bouwkamp <hilbrand@h72.nl>
2019-03-02 14:26:01 +01:00
Hilbrand Bouwkamp
4517f3959b Added standard gravity and dBm units.
Signed-off-by: Hilbrand Bouwkamp <hilbrand@h72.nl>
2019-03-01 23:50:13 +00:00
Hilbrand Bouwkamp
21bf4d9ef0 Reordered units alphabetical, changed extends on SmartHomeUnits
The classes ImperialUnits and SIUnits both extended SmartHomeUnits. But the classes are used a singletons.

Signed-off-by: Hilbrand Bouwkamp <hilbrand@h72.nl>
2019-03-01 23:50:13 +00:00
Gaël L'hopital
32bee0e22c Small UoM evolutions (#588)
Signed-off-by: Gaël L'hopital <gael@lhopital.org>
2019-02-20 09:41:29 +00:00
Hilbrand Bouwkamp
09e2292a58 Replaces 'Eclipse SmartHome' with 'openHAB' in text (#581)
Adapted CONTRIBUTING.md file.

Signed-off-by: Hilbrand Bouwkamp <hilbrand@h72.nl>
2019-02-15 10:46:37 +01:00
Hilbrand Bouwkamp
d342afbc4e Updated NOTICE files to openHAB (#578)
Signed-off-by: Hilbrand Bouwkamp <hilbrand@h72.nl>
2019-02-15 10:46:18 +01:00
Henning Treu
3c8e3efa93 Extend ChannelType by command options (#540)
This addresses https://github.com/eclipse/smarthome/issues/5099 by adding a command description with command options along with the state description.
Command options will give a hint to UIs about the specific commands a channel provides. Command options could be rendered as a drop down and also represent the current state or rendered as push buttons to simply send a command to the ThingHandler.
The infrstructure basically copies the StateDescription infrastructure with CommandDescriptionProviders and an `DynamicCommandDescriptionProvider` interface for bindings to hook in and provide dynamic command options.

Signed-off-by: Henning Treu <henning.treu@googlemail.com>
2019-02-12 13:41:01 +00:00
Markus Rathgeb
fd95b86b36 centralize the bundle identifier construction
The ready marker logic is created to hide the real usage. The ready
marker uses an "identifier" that is not specific or limited to bundles.

Currently the bundle symbolic name is used as bundle identifier.
That "convention" needs to be known at several different places.

There should be one method that created an identifier for a bundle and
"no one" needs to care about the implementation details.

Another point is that the bundle symbolic name that has been used is
optional. It may be null e.g. for bundles that has been installed by the
synthetic bundle installer mechanism etc.

The runtime assigns a bundle ID to an installed bundle that remains the
same for the bundle (see JavaDoc). The bundle ID is present all the
time.

The implementation of the "get identifier for bundle" has been choosen
to use the BSN -- if available -- (as before) but fallback to a custom
one using also the bundle ID (to be unique).
So we can provide always a non null identifier for a bundle.
It should be easily to change the identifier creation now if there is
every any need for.

Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>
2019-02-06 15:56:00 +01:00
Markus Rathgeb
fbca7e806f remove project specific JDT settings (#481)
Done per request by @wborn.
Related to: https://github.com/openhab/openhab-core/pull/476#discussion_r251566034

Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>
2019-01-29 10:24:39 +01:00
Markus Rathgeb
a37cceab67 mavenize openHAB and integrate mavenized ESH repository (#467)
* mavenize openHAB and integrate mavenized ESH repository

Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>
2019-01-28 13:07:31 +01:00
Kai Kreuzer
10acf5cf46 Changed license from EPL v1 to EPL v2 (#466)
* updated license headers
* added NOTICE files
* moved about.html to NOTICE files
* changed main project license
* updated build.properties
* added files to check to prevent error about missing about.html
* removed license info on p2 feature

Signed-off-by: Kai Kreuzer <kai@openhab.org>
2019-01-16 22:59:49 +01:00
Kai Kreuzer
eb8abdc894 updated to 2019 (#464)
* updated to 2019
* updated checkstyle check to 2019

Signed-off-by: Kai Kreuzer <kai@openhab.org>
2019-01-07 22:53:19 +01:00
openhab-bot
61e21d4866 [unleash-maven-plugin] Preparation for next development cycle. 2018-12-16 21:49:16 +00:00
Kai Kreuzer
b51bf275b9 leave non-numeric qualifiers in place for version (#439)
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2018-11-28 10:51:24 +01:00
Kai Kreuzer
d3ffb2db5a prevent System.exit() calls (#409)
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2018-10-01 21:18:46 +02:00
Wouter Born
8091914a4b Apply POM Code Convention (#392)
Applies the POM Code Covention as used in OH2/ESH projects.

See also: https://maven.apache.org/developers/conventions/code.html

The executed command is:

mvn \
  com.github.ekryd.sortpom:sortpom-maven-plugin:sort \
  -Dsort.keepBlankLines=true \
  -Dsort.predefinedSortOrder=recommended_2008_06

Signed-off-by: Wouter Born <eclipse@maindrain.net>
2018-09-10 13:45:11 +02:00
Wouter Born
dbed3db57d Remove Eclipse project specific settings and some Groovy leftovers (#391)
Signed-off-by: Wouter Born <eclipse@maindrain.net>
2018-09-08 17:38:56 +02:00
Wouter Born
33c7f838fc Add Automatic-Module-Name entry to manifests (#369)
Signed-off-by: Wouter Born <eclipse@maindrain.net>
2018-07-21 16:07:17 +02:00
CloudBees DEV@Cloud
cabe7c4528 [unleash-maven-plugin] Preparation for next development cycle. 2018-05-28 01:54:21 +02:00
Kai Kreuzer
47bfddeecd
added new methods for breaking ESH change (#339)
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2018-05-03 19:21:40 +02:00
Tanya Georgieva
8a3b3d1074 Changed the indentation for some XML files from spaces to tabs (#310)
Signed-off-by: Tanya D. Georgieva <tanya.dancheva.georgieva@gmail.com>
2018-03-12 18:17:58 +01:00
Martin van Wingerden
5a21ca6b02 Updated copyrights to 2018 (#271)
Signed-off-by: Martin van Wingerden <martinvw@mtin.nl>
2018-01-03 09:26:13 +01:00
CloudBees DEV@Cloud
5c6bfba450 [unleash-maven-plugin] Preparation for next development cycle. 2017-12-17 23:40:22 +01:00
Markus Rathgeb
e57044e13c Rework / formatted manifest (#211)
* reworked and formatted manifest
* added missing jdt.annotation

Related to: https://github.com/eclipse/smarthome/pull/4308

Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>
2017-09-21 08:16:38 +02:00
Kai Kreuzer
cd9d02ab94 removed auto-approve service as this is now contained in ESH (#202)
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2017-08-29 11:13:36 +02:00
Martin van Wingerden
6bb1ba1057 Updated outdated copyrights (#197)
Signed-off-by: Martin van Wingerden <martinvw@mtin.nl>
2017-08-20 09:56:41 +02:00
Kai Kreuzer
16bfd38548 removed httpclient dependency (#168)
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2017-07-19 10:08:41 +07:00
Martin van Wingerden
6fcb85b311 Version bump to version 2.2.0-SNAPSHOT (#160)
Signed-off-by: Martin van Wingerden <martinvw@mtin.nl>
2017-06-29 08:45:25 +02:00
Kai Kreuzer
14e503736c code cleanup to match expectations of static analysis tool (#151)
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2017-06-02 16:40:55 +02:00
Kai Kreuzer
841f238eea add openHAB version and build info to dashboard footer (#149)
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2017-05-16 12:54:20 +02:00
Kai Kreuzer
f089cd912f
added about files
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2017-04-07 16:26:59 +02:00
Kai Kreuzer
485a65e739 applied code formatter (#132)
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2017-04-07 03:42:37 -07:00
Kai Kreuzer
3be8099728 switched to Java8 (#130)
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2017-04-05 01:06:43 -07:00
Kai Kreuzer
ceef9a9fe0
moved on to 2.1.0-SNAPSHOT
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2017-01-20 10:48:55 +01:00
Kai Kreuzer
053c073d9e Refactoring of package handling (#81)
* adapted FeatureInstaller to adapt addons info in ConfigAdmin, so that this info is stored in a file
* removed experimental features
* removed package selection from UI as it is meant to be only set once
* introduced new packages: minimal, simple and expert
* introduced a setup page on the dashboard, if no package is set (and thus openHAB is uninitialized)
* added auto-refresh of dashboard to have new entries appear automatically

Signed-off-by: Kai Kreuzer <kai@openhab.org>
2016-11-24 20:09:52 +01:00
Kai Kreuzer
703b2f043d adapted code to ESH API change (#72)
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2016-11-01 09:09:05 +01:00
Kai Kreuzer
a2ca9c590a removed dependency on ThingSetupManager (#52)
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2016-06-27 18:12:52 +02:00
Kai Kreuzer
25cd02baf4 Sitemap (#46)
* updated default sitemap provider to new ESH concept

Signed-off-by: Kai Kreuzer <kai@openhab.org>
2016-05-21 22:14:21 +02:00
Kai Kreuzer
c55513a8c0 switched to snapshot
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2016-05-21 14:00:58 +02:00
Kai Kreuzer
8bd77e32c5 Releasing 2.0.0.b3
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2016-05-21 13:51:10 +02:00
Kai Kreuzer
04cfa9cee3 applied updated and neutral copyright header
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2016-03-27 22:14:00 +02:00
Kai Kreuzer
51d1e95150 removed logging of version on bundle start&stop
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2016-02-22 19:45:36 +01:00
Kai Kreuzer
ded1a0c51a updated year to 2016
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2016-01-08 22:17:05 +01:00
Kai Kreuzer
78a586b378 changed groupId to org.openhab.core
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2015-12-27 23:48:19 +01:00
Kai Kreuzer
a5b86617a6 initial commit of openhab core components
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2015-12-26 23:22:23 +01:00