Commit Graph

149 Commits (89187cc645e6152f6f181e97365f8a0431061308)

Author SHA1 Message Date
Wouter Born 8672ed0208
Start license headers with `/*` instead of `/**` (#18061)
Prevents JavaDoc tooling issues because these tools check comments starting with `/**`.

Signed-off-by: Wouter Born <github@maindrain.net>
2025-01-07 22:33:03 +01:00
Holger Friedrich 26749f0fc1
Upgrade plugins (#18037)
* frontend-maven-plugin to 1.15.1
* license-maven-plugin to 4.6
https://github.com/mathieucarbou/license-maven-plugin/releases
* maven-clean-plugin to 3.4.0
https://github.com/apache/maven-clean-plugin/releases/tag/maven-clean-plugin-3.4.0
* maven-dependency-plugin to 3.8.1
* maven-deploy-plugin to 3.1.3
* maven-enforcer-plugin to 3.5.0
https://github.com/apache/maven-enforcer/releases
* maven-failsafe-plugin to 3.5.2
* maven-install-plugin to 3.1.3
https://github.com/apache/maven-install-plugin/releases
* maven-jar-plugin to 3.4.2
https://github.com/apache/maven-jar-plugin/releases/tag/maven-jar-plugin-3.4.2
* maven-javadoc-plugin to 3.11.2
* maven-release-plugin to 3.1.1
* maven-site-plugin to 3.21.0
* maven-surefire-plugin to 3.5.2
* build-helper-maven-plugin to 3.6.0
https://github.com/mojohaus/build-helper-maven-plugin/releases/tag/3.6.0

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2025-01-05 00:47:18 +01:00
Wouter Born d6476042ec
Update license headers to 2025 (#18015)
* Update license headers to 2025

Signed-off-by: Wouter Born <github@maindrain.net>
2025-01-02 00:30:12 +01:00
Florian Hotze 5e7d2fc5da
[jsscripting] Upgrade GraalJS from 22.0.0.2 to 24.1.1 (#17720)
* [jsscripting] Upgrade GraalJS to 23.0.6

Signed-off-by: Florian Hotze <dev@florianhotze.com>
2024-12-22 08:09:09 +01:00
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
Florian Hotze 9b4ee482ab
[jsscripting] Upgrade openhab-js to 5.8.1 (#17885)
Changelog: https://github.com/openhab/openhab-js/blob/main/CHANGELOG.md#581.

Signed-off-by: Florian Hotze <dev@florianhotze.com>
2024-12-11 16:48:05 +01:00
Florian Hotze fc478a7114
[jsscripting] Upgrade openhab-js to 5.8.0 & Add note to check core fix on on upgrade (#17703)
* [jsscripting] Upgrade to openhab-js 5.8.0

Signed-off-by: Florian Hotze <dev@florianhotze.com>
2024-11-05 21:16:43 +01:00
Florian Hotze fcb12d612a
[jsscripting] Upgrade openhab-js to 5.7.1 (#17667)
Changelog: https://github.com/openhab/openhab-js/blob/main/CHANGELOG.md#571.

Signed-off-by: Florian Hotze <dev@florianhotze.com>
2024-10-29 22:35:29 +01:00
Florian Hotze abe819978f
[jsscripting] Remove Thread.sleep workaround for multi-threading issues with UI-based scripts (#17630)
Follow-up for #1710.
Depends on https://github.com/openhab/openhab-core/pull/4426.

Signed-off-by: Florian Hotze <dev@florianhotze.com>
2024-10-26 23:27:41 +02:00
Florian Hotze e6056d3142
[jsscripting] Fix multi-threading issues in UI-based scripts (#17510)
* [jsscripting] Make logger non-static
* [jsscripting] Log lock acquisition and release
* [jsscripting] Implement Lock in DebuggingGraalScriptEngine so openHAB Core can lock and unlock when executing the pre-compiled script
* [jsscripting] Improve comments in ThreadsafeTimers
* [jsscripting] Add a short sleep after unlocking the lock to fix multi-threading issues with UI-based scripts

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-10-24 19:04:34 +02:00
Wouter Born c495b0b44e
Remove unnecessary executable permissions (#17569)
These files are marked as executable for no good reason at all.

Signed-off-by: Wouter Born <github@maindrain.net>
2024-10-15 08:52:01 +02:00
Florian Hotze 856d526d95
[jsscripting] Synchronize context access in logger initialization (#17496)
* [jsscripting] Synchronize context access in logger initialisation to avoid illegal multi-thread access
Fixes #17494.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-10-02 22:53:49 +02:00
Florian Hotze 19c18be297
[jsscripting] Upgrade openhab-js to 5.7.0 (#17441)
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-09-19 23:36:25 +02:00
Florian Hotze 8fb03da095
[jsscripting] Upgrade to openhab-js 5.6.0 (#17424)
Also sync webpack dependency with openhab-js package.json.

* [jsscripting] README changes from ohjs upgrade

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-09-16 12:28:46 +02:00
Florian Hotze e18192f7cc
[jsscripting] Upgrade to openhab-js 5.5.0 (#17311)
See https://github.com/openhab/openhab-js/blob/main/CHANGELOG.md#550 for changelog.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-08-22 22:56:12 +02:00
Florian Hotze 20251feb09
[jsscripting] Fix console logger name & timer identifier missing for UI scripts (#17171)
* [jsscripting] Fix console logger name is missing for UI scripts
* [jsscripting] Fix timer identifier "missing" for setTimeout/setInterval for UI scripts

Fixes #17165.
Caused by https://github.com/openhab/openhab-core/pull/4289.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-07-29 17:07:29 +02:00
Florian Hotze 9ae9adf6f6
[jsscripting] ThreadsafeTimers: Add overrides for double delay for setTimeout & setInterval (#17148)
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-07-25 23:10:27 +02:00
lsiepel 5e0e9ce51e
Update lastnpe EEA to 2.4.0 (#16875)
Signed-off-by: Leo Siepel <leosiepel@gmail.com>
2024-07-11 13:51:10 +02:00
SkyLined 643b4e8c02
Add info about npm requiring path (#17022)
The command to install an npm package that was suggested in the documentation would not work, as it was missing the required path. I've added information to explain this is required.

Signed-off-by: SkyLined <cojmpjum_github.com@sxd.be>
2024-07-10 09:31:32 +02:00
Florian Hotze 405f4023ee
[jsscripting] Implement `javax.script.Compilable` (#16970)
* [jsscripting] Restructure & Comment POM
* [jsscripting] Use OPENHAB_TRANSFORMATION_SCRIPT constant from core

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-07-09 20:08:30 +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
Florian Hotze 5487b9c05d
[jsscripting] Fix notification builder examples (#16999)
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-07-05 10:50:39 +02:00
Florian Hotze 2d412023a9
[jsscripting] Upgrade to openhab-js 5.3.1 (#16985)
Depends on #16979.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-07-04 14:07:21 +02: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
Florian Hotze 001dd6aba7
[jsscripting] Upgrade openhab-js to 5.3.0 (#16951)
This adds the new notification builder.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-06-28 19:15:49 +02:00
Florian Hotze 6ccaf813e6
[jsscripting] Upgrade openhab-js to 5.2.0 (#16935)
Adds support for https://github.com/openhab/openhab-core/pull/4259.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-06-25 20:47:15 +02:00
Florian Hotze 20b5e1c20e
[jsscripting] Upgrade openhab-js to 5.1.2 (#16926)
Second attempt to fix a problem, where persisting TimeSeries failed when injection caching was enabled.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-06-23 19:39:25 +02:00
Florian Hotze 588aac4eba
[jsscripting] Upgrade openhab-js to 5.1.1 (#16892)
Fixes a problem, where persisting TimeSeries failed when injection caching was enabled.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-06-19 14:20:31 +02:00
Florian Hotze 53fa23b957
[jsscripting] Upgrade openhab-js to 5.1.0 (#16881)
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-06-16 20:33:50 +02:00
openhab-bot 659423f857
New Crowdin updates (#16778)
* New translations exec.properties (Hungarian)
* New translations jsscripting.properties (Hungarian)
2024-05-20 20:55:30 +02:00
Florian Hotze 42c297a0ee
[jsscripting] Upgrade openhab-js to 5.0.0 (#16719)
See https://github.com/openhab/openhab-js/blob/main/CHANGELOG.md#500.

Required to adjust to breaking changes from https://github.com/openhab/openhab-core/pull/3736.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-05-05 22:57:06 +02:00
Holger Friedrich cf21184c1b
Update plugins (#16683)
* update multiple dependencies

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2024-04-29 12:24:45 +02:00
Florian Hotze 66e8d7dc94
[jsscripting] Fix memory leak on script execution failure (#16578)
Make engineIdentifier a instance field to ease debugging.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-03-27 21:43:07 +01:00
Florian Hotze 3ca4b4f749
[jsscripting] Upgrade to openhab-js 4.9.0 (#16576)
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-03-25 21:11:24 +01:00
Florian Hotze 6139368d83
[jsscripting] Fix multi-thread access requested by logger initialization (#16497)
* [jsscripting] Fix multi-threading issue with logger initialization

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-03-07 18:49:34 +01:00
Florian Hotze df7a57af96
[jsscripting] Improve logging on JS error (#16445)
* [jsscripting] Improve script error logging
* [jsscripting] Suppress some warnings
* [jsscripting] Throw ISE instead of RE
* [jsscripting] Minor null annotation improvements

Include fileName or ruleUID or transformation UID in the logger name used by the logged error stack trace.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-02-25 00:39:57 +01:00
Florian Hotze c9926ccc47
[jsscripting] Upgrade openhab-js to 4.8.1 (#16353)
* [jsscripting] Upgrade openhab-js to 4.8.0

Changelog: https://github.com/openhab/openhab-js/blob/main/CHANGELOG.md#480

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2024-02-01 10:22:09 +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
Florian Hotze 6540d0dda9
[jsscripting] Upgrade openhab-js to 4.7.3 (#16112)
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2023-12-25 23:52:59 +01:00
Florian Hotze 20a6eee4b5
[jssscripting] Fix JS Quantity to Java QuantityType conversion (#16106)
Regression from https://github.com/openhab/openhab-js/pull/312.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2023-12-25 15:09:00 +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
Florian Hotze 7d7acb5dbf
[jsscripting] Upgrade openhab-js to 4.7.2 (#16072)
Fixes a minor issue introduced by openhab-js 4.7.1.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2023-12-17 12:17:38 +01:00
Florian Hotze 63d71f4865
[jsscripting] Upgrade openhab-js to 4.7.1 (#16069)
You'll find the changelog at the openhab-js repo: https://github.com/openhab/openhab-js/blob/main/CHANGELOG.md#471.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2023-12-16 13:50:41 +01:00
Florian Hotze 7b16ef1de8
[jsscripting] Upgrade openhab-js to 4.7.0 (#16062)
You'll find the changelog at the openhab-js repo: https://github.com/openhab/openhab-js/blob/main/CHANGELOG.md#470.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2023-12-14 20:23:37 +01:00
openhab-bot 62f9f03bbf
New Crowdin updates (#15931)
* New translations openwebnet.properties (Italian)
* New translations jsscripting.properties (Danish)
* New translations hdpowerview.properties (Danish)
2023-11-20 12:30:32 +01:00
Holger Friedrich f24a4305b8
Improve javadoc for some addons (#15701)
Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2023-10-08 00:25:04 +02:00
Holger Friedrich cbf4411034
Improve javadoc for all addons (#15667)
Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2023-09-30 21:49:12 +02:00