Commit Graph

77 Commits

Author SHA1 Message Date
Holger Friedrich
639a1cb263
Prepare for OH 5.0.0 (#17906)
* Switch to 5.0.0-SNAPSHOT
* Fix spotless after unleash
* resolve itest runbundles

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2024-12-15 20:30:05 +01:00
openhab-bot
f80fd3d18c [unleash-maven-plugin] Preparation for next development cycle. 2024-12-15 13:46:58 +00:00
joerg1985
58f59055a4
[persistence] Implement HistoricItem.getInstant (#17578)
Signed-off-by: Jörg Sautter <joerg.sautter@gmx.net>
2024-10-25 22:59:22 +02:00
lsiepel
20b889c029
Markdown Documentation fixes (#17526)
Signed-off-by: Leo Siepel <leosiepel@gmail.com>
2024-10-10 22:42:51 +02:00
lsiepel
1a42353cc9
Multiple binding markdown fixes (#17422)
Signed-off-by: Leo Siepel <leosiepel@gmail.com>
2024-09-28 17:46:53 +02:00
joerg1985
52ea5d66ed
[rrd4j] Avoid RrdDb.getRrdDef calls (#17449)
Signed-off-by: Jörg Sautter <joerg.sautter@gmx.net>
2024-09-20 14:11:55 +02:00
joerg1985
5a3a0c0ea2
[rrd4j] Improved the interpolation workaround (#17437)
Signed-off-by: Jörg Sautter <joerg.sautter@gmx.net>
2024-09-18 19:39:22 +02:00
openhab-bot
a34e61b83d
New Crowdin updates (#17066)
* New translations inmemory.properties (French)

* New translations mapdb.properties (French)

* New translations mongodb.properties (French)

* New translations rrd4j.properties (French)

* New translations mactts.properties (French)

* New translations marytts.properties (French)

* New translations picotts.properties (French)
2024-07-15 20:59:44 +02:00
J-N-K
e735da12ac
[rrd4j] Fix unit retrieval for group items (#17054)
Reported on the forum

Signed-off-by: Jan N. Klug <github@klug.nrw>
2024-07-14 12:18:06 +02:00
lsiepel
71a208b91b
Apply Spotless after release (#17016)
* Spotless

Signed-off-by: Leo Siepel <leosiepel@gmail.com>
2024-07-07 23:20:16 +02:00
openhab-bot
4b5e4646ac [unleash-maven-plugin] Preparation for next development cycle. 2024-07-07 18:09:31 +00:00
openhab-bot
577c73af0e
New Crowdin updates (#16967)
* New translations volumio.properties (French)
* New translations astro.properties (Finnish)
* New translations chromecast.properties (Finnish)
* New translations icloud.properties (Finnish)
* New translations tradfri.properties (Finnish)
* New translations icalendar.properties (Finnish)
* New translations dali.properties (Finnish)
* New translations fmiweather.properties (Finnish)
* New translations modbus.properties (Finnish)
* New translations mybmw.properties (Finnish)
* New translations netatmo.properties (Finnish)
* New translations rollershutter.properties (Finnish)
* New translations vat.properties (Finnish)
* New translations avmfritz.properties (Italian)
* New translations enigma2.properties (Italian)
* New translations astro.properties (Dutch)
* New translations openweathermap.properties (Dutch)
* New translations dsmr.properties (Dutch)
* New translations systeminfo.properties (Dutch)
* New translations unifi.properties (Dutch)
* New translations jsscripting.properties (Dutch)
* New translations inmemory.properties (Dutch)
* New translations mapdb.properties (Dutch)
* New translations rrd4j.properties (Dutch)
* New translations smhi.properties (Swedish)
* New translations plex.properties (Italian)
* New translations openwebnet.properties (Italian)
* New translations solarforecast.properties (Finnish)
* New translations nikohomecontrol.properties (Dutch)
* New translations emotiva.properties (Italian)
* New translations volumio.properties (Italian)
* New translations siemenshvac.properties (Italian)
2024-07-01 17:32:59 +02:00
J-N-K
2d42e2e135
[rrd4j] Fix missing service pid (#16569)
Signed-off-by: Jan N. Klug <github@klug.nrw>
2024-03-27 21:03:44 +01:00
joerg1985
5c4b8f2769
[rrd4j] Improved the internal data structure (#16389)
Signed-off-by: Jörg Sautter <joerg.sautter@gmx.net>
2024-02-17 19:53:07 +01:00
joerg1985
eff44960a4
[rrd4j] Reuse the state for identical values (#16379)
Signed-off-by: Jörg Sautter <joerg.sautter@gmx.net>
2024-02-08 07:49:03 +01:00
joerg1985
e3d5e5d999
Improved querying the RRD4jPersistenceService (#16360)
Signed-off-by: Jörg Sautter <joerg.sautter@gmx.net>
2024-02-05 10:38:56 +01:00
Jacob Laursen
f4596f581e
Update license headers to 2024 (#16168)
* Update copyright year in configuration
* Update license headers
* Manually update nibeheatpump headers (.cpp/.h/.ino)
* Manually update smsmodem header
* Manually update hueemulation header
* Manually update addon-header.xml header

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2024-01-01 18:14:57 +01:00
Wouter Born
c58d894bf0
Use OnOffType.from to reduce code (#16101)
You can create an `OnOffType` using a boolean nowadays which reduces the amount of code.

Signed-off-by: Wouter Born <github@maindrain.net>
2023-12-23 19:06:21 +01:00
Holger Friedrich
533cc666ab
Apply spotless after release (#16097)
* Apply spotless after release
* itests: resolve bundles

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2023-12-22 23:30:38 +01:00
openhab-bot
83e0485219 [unleash-maven-plugin] Preparation for next development cycle. 2023-12-22 14:37:48 +00:00
Kai Kreuzer
ea3e608c81
[rrd4j] Reliably get the latest value, if the filter end date is set to "now" (#16059)
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2023-12-14 07:23:49 +01:00
openhab-bot
7f32499a8a
New Crowdin updates (#15739)
* New translations jpa.properties (Italian)
* New translations inmemory.properties (Italian)
* New translations mapdb.properties (Italian)
* New translations mongodb.properties (Italian)
* New translations rrd4j.properties (Italian)
2023-10-11 21:53:14 +02:00
Florian Hotze
7e1f4b0e1c
[persistence] Capitalize add-on names (#15378)
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2023-10-10 14:04:21 +02:00
Holger Friedrich
1cf57e7dfe
[persistence] Use Java 17 features (#15486)
Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2023-08-26 08:56:27 +02:00
Holger Friedrich
5b42c4b071
Java 17 features (#15493)
- add missing @override
- Java style array syntax
- remove redundant modifiers
- always move String constants to left side in comparisons
- simplify lambda expressions and return statements
- use replace instead of replaceAll w/o regex

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2023-08-26 08:52:11 +02:00
Kai Kreuzer
72607d3bee Apply spotless
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2023-07-24 01:20:31 +02:00
openhab-bot
809fceaff3 [unleash-maven-plugin] Preparation for next development cycle. 2023-07-23 19:19:01 +00:00
J-N-K
0beaada48c
Fix rrd4j database start time (#15277)
Signed-off-by: Jan N. Klug <github@klug.nrw>
2023-07-20 21:42:27 +02:00
J-N-K
571cd6334f
[rrd4j] Improve event handling (#15223)
* [rrd4j] Improve event handling

Signed-off-by: Jan N. Klug <github@klug.nrw>
2023-07-13 22:11:14 +02:00
J-N-K
07e640387c
[rrd4j] Improve timestamp handling (#15107)
* [rrd4j] Improve timestamp handling

Signed-off-by: Jan N. Klug <github@klug.nrw>
2023-06-18 21:14:41 +02:00
lolodomo
6686e18266
[rrd4j] Add console commands to check and clean RRD files (#14960)
Console commands added to detect and remove RRD files associated with items that no longer exist.

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
2023-06-16 09:19:37 +02:00
Holger Friedrich
96d0293913
Declare missing connection attribute (#15016)
* Declare missing connection attribute
* change mactts, marytts, and picotts to none for consistency

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2023-05-23 21:38:13 +02:00
lolodomo
2fc780f3c3
[rrd4j] Do not create RRD file when querying data (#14961) 2023-05-12 14:10:10 +02:00
J-N-K
5fe99a18a9
[rrd4j] Write asynchronously to database (#14913)
* [rrd4j] Write asynchronously to database
* add timestamps to log message

---------

Signed-off-by: Jan N. Klug <github@klug.nrw>
2023-05-08 12:49:23 +02:00
J-N-K
c3a9a4c7b6
Adjust to core changes (#14952)
Signed-off-by: Jan N. Klug <github@klug.nrw>
2023-05-08 09:35:36 +02:00
Boris Krivonog
93d871a88f
[rrd4j] fixed oom when requesting data and boundary=true (#14292)
* Fixed end date when requesting data using rrd4j and boundary=true

Signed-off-by: Boris Krivonog <boris.krivonog@inova.si>
2023-02-01 21:06:27 +01:00
Christoph Weitkamp
a78db1feb2
[rrd4j] Avoid IAE thrown if e.g. invalid start/end time given (#14238)
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2023-01-20 11:58:47 +01:00
J-N-K
5f8214f08a
Adapt to core changes (addon.xml) (#13289)
Signed-off-by: Jan N. Klug <github@klug.nrw>
2023-01-15 20:31:42 +01:00
Jacob Laursen
4dd6d3a8a2
Update license headers to 2023 (#14154)
* Update copyright year in configuration
* Update license headers

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2023-01-06 09:49:54 +01:00
Holger Friedrich
e7938ae357
[rrd4j] Improve logging of exceptions thrown by getDB (#14068)
Add exception message for better identification of root cause.

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2022-12-27 10:55:15 +01:00
Holger Friedrich
3bec273910
[rrd4j] Upgrade base library from 3.8.1 to 3.8.2 (#13956)
Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2022-12-19 22:58:43 +01:00
J-N-K
4d6d6443ef
fix spotless after release (#14014)
Signed-off-by: Jan N. Klug <github@klug.nrw>
2022-12-19 15:22:17 +01:00
openhab-bot
7993786dc9 [unleash-maven-plugin] Preparation for next development cycle. 2022-12-19 00:55:11 +00:00
Wouter Born
83f0f7aa4c
Prevent Markdown rendering issues in Main UI (#13958)
Some add-ons use `---` separators which causes issues when rendering the documentation in Main UI.

Fixes #13953

Signed-off-by: Wouter Born <github@maindrain.net>
2022-12-15 12:28:32 +01:00
Holger Friedrich
6ab0561382
[rrd4j] Error handling for broken rrd4j files (#13955)
* [rrd4j] Error handling for broken rrd4j files

Catch exceptions thrown by getDB(..) and print the name of the affected
database file. This allows to identify a broken rrd4j file.

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2022-12-15 11:31:20 +01:00
Дилян Палаузов
6c1373f7c2
Typos a/an (#13819) 2022-12-02 13:07:31 +01:00
Wouter Born
8eb0d2c16e
[rrd4j] Use RrdDbPool to prevent ClosedByInterruptException (#13332)
Using the pool prevents exceptions like:

```
java.nio.channels.ClosedByInterruptException: null
	at java.nio.channels.spi.AbstractInterruptibleChannel.end(AbstractInterruptibleChannel.java:199) ~[?:?]
	at sun.nio.ch.FileChannelImpl.endBlocking(FileChannelImpl.java:162) ~[?:?]
	at sun.nio.ch.FileChannelImpl.size(FileChannelImpl.java:388) ~[?:?]
	at org.rrd4j.core.RrdNioBackend.<init>(RrdNioBackend.java:94) ~[?:?]
	at org.rrd4j.core.RrdNioBackendFactory.open(RrdNioBackendFactory.java:163) ~[?:?]
	at org.rrd4j.core.RrdBackendFactory.getBackend(RrdBackendFactory.java:521) ~[?:?]
	at org.rrd4j.core.RrdDb.<init>(RrdDb.java:627) ~[?:?]
	at org.rrd4j.core.RrdDb.of(RrdDb.java:500) ~[?:?]
	at org.openhab.persistence.rrd4j.internal.RRD4jPersistenceService.getDB(RRD4jPersistenceService.java:323) ~[?:?]
	at org.openhab.persistence.rrd4j.internal.RRD4jPersistenceService.store(RRD4jPersistenceService.java:141) ~[?:?]
	at org.openhab.persistence.rrd4j.internal.RRD4jPersistenceService.lambda$0(RRD4jPersistenceService.java:211) ~[?:?]
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) [?:?]
	at java.util.concurrent.FutureTask.run(FutureTask.java:264) [?:?]
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304) [?:?]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) [?:?]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) [?:?]
	at java.lang.Thread.run(Thread.java:829) [?:?]
```

Fixes #13297

Also includes a few code improvements.

Signed-off-by: Wouter Born <github@maindrain.net>
2022-08-29 17:15:17 +02:00
Kai Kreuzer
440f603e88
Apply spotless and resolver (#13027)
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2022-06-27 16:00:37 +02:00
openhab-bot
ed4858ebbb [unleash-maven-plugin] Preparation for next development cycle. 2022-06-26 18:18:40 +00:00
Wouter Born
d7d6798a97
[rrd4j] Upgrade to rrd4j 3.8.1 (#12398)
This should prevent a resource leak when generating graphs.

See: https://github.com/rrd4j/rrd4j/blob/master/changelog.txt

Signed-off-by: Wouter Born <github@maindrain.net>
2022-03-02 11:03:17 +01:00