Florian Hotze
9f7c7c2630
[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>
Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
2025-01-02 09:49:27 +02:00
Florian Hotze
10054a7d5c
[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>
Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
2025-01-02 09:49:26 +02:00
Florian Hotze
9a7c81eda5
[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>
Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
2025-01-02 09:49:25 +02:00
Florian Hotze
cfa65c68ee
[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>
Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
2025-01-02 09:49:24 +02:00
Wouter Born
1cd2e310ca
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>
Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
2025-01-02 09:49:21 +02:00
Florian Hotze
bd7cbed62b
[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>
Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
2025-01-02 09:49:18 +02:00
Florian Hotze
ddc0f5abf2
[jsscripting] Upgrade openhab-js to 5.7.0 ( #17441 )
...
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
2025-01-02 09:49:15 +02:00
Florian Hotze
ed1236c00f
[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>
Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
2025-01-02 09:49:15 +02:00
Florian Hotze
27792c6865
[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>
Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
2025-01-02 09:49:10 +02:00
Florian Hotze
1d8b09e8a3
[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>
Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
2025-01-02 09:49:05 +02:00
Florian Hotze
3808984572
[jsscripting] ThreadsafeTimers: Add overrides for double delay for setTimeout & setInterval ( #17148 )
...
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
2025-01-02 09:49:05 +02:00
lsiepel
e407382bef
Update lastnpe EEA to 2.4.0 ( #16875 )
...
Signed-off-by: Leo Siepel <leosiepel@gmail.com>
Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
2025-01-02 09:49:01 +02:00
SkyLined
0a95aabb5e
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>
Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
2025-01-02 09:49:01 +02:00
Florian Hotze
04271c4007
[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>
Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
2025-01-02 09:49:01 +02:00
lsiepel
90da4e40cc
Apply Spotless after release ( #17016 )
...
* Spotless
Signed-off-by: Leo Siepel <leosiepel@gmail.com>
Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
2025-01-02 09:49:00 +02:00
openhab-bot
5fa59d316f
[unleash-maven-plugin] Preparation for next development cycle.
...
Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
2025-01-02 09:49:00 +02:00
Florian Hotze
d7c01ea428
[jsscripting] Fix notification builder examples ( #16999 )
...
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
2025-01-02 09:48:59 +02:00
Florian Hotze
a429153b5f
[jsscripting] Upgrade to openhab-js 5.3.1 ( #16985 )
...
Depends on #16979 .
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
2025-01-02 09:48:59 +02:00
openhab-bot
5a24cc6f52
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)
Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
2025-01-02 09:48:58 +02:00
Florian Hotze
54b32a2236
[jsscripting] Upgrade openhab-js to 5.3.0 ( #16951 )
...
This adds the new notification builder.
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
2025-01-02 09:48:57 +02:00
Florian Hotze
c81f9635fe
[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>
Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
2025-01-02 09:48:57 +02:00
Florian Hotze
7940822fa8
[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>
Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
2025-01-02 09:48:56 +02:00
Florian Hotze
62e8289938
[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>
Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
2025-01-02 09:48:56 +02:00
Florian Hotze
d8dd139e47
[jsscripting] Upgrade openhab-js to 5.1.0 ( #16881 )
...
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
2025-01-02 09:48:55 +02:00
openhab-bot
8895be2850
New Crowdin updates ( #16778 )
...
* New translations exec.properties (Hungarian)
* New translations jsscripting.properties (Hungarian)
Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
2025-01-02 09:48:51 +02:00
Florian Hotze
b881e06e6b
[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>
Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
2025-01-02 09:48:48 +02:00
Holger Friedrich
a8f8ccb24e
Update plugins ( #16683 )
...
* update multiple dependencies
Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
2025-01-02 09:48:47 +02:00
Florian Hotze
30d32f9357
[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>
Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
2025-01-02 09:48:42 +02:00
Florian Hotze
a52e5fcf7a
[jsscripting] Upgrade to openhab-js 4.9.0 ( #16576 )
...
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
2025-01-02 09:48:42 +02:00
Florian Hotze
afae4d1093
[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>
Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
2025-01-02 09:48:39 +02:00
Florian Hotze
c153944f6f
[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>
Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
2025-01-02 09:48:37 +02:00
Florian Hotze
712edea9fc
[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>
Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
2025-01-02 09:48:30 +02:00
Jacob Laursen
92145428df
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>
Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
2025-01-02 09:48:23 +02: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
openhab-bot
5012381f08
New Crowdin updates ( #15653 )
...
* New translations netatmo.properties (Italian)
* New translations danfossairunit.properties (Danish)
* New translations jsscripting.properties (Italian)
2023-09-29 22:19:03 +02:00
Florian Hotze
99f0512c73
[jsscripting] Rename library injection parameter & Improve docs ( #15547 )
...
* [jsscripting] Rename parameter useIncludedLibrary to injectionCachingEnabled (#4 )
* [jsscripting] Improve README for cached library injection
* Remove settings image
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2023-09-26 22:59:20 +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
Holger Friedrich
7b90fbe162
[automation] Use Java 17 features ( #15484 )
...
* [automation] Code optimization for Java17: instanceof matching and multiline strings
Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
* [automation] Make use of Java17 features
Use Map/Set/List.of instead of Collections.
Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
* review comment
Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
---------
Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2023-08-23 17:27:40 +02:00
Wouter Born
c71a24f8a1
Link to Java 17 documentation ( #15406 )
...
This prevents issues because older documentation may not apply to Java 17.
Signed-off-by: Wouter Born <github@maindrain.net>
2023-08-13 13:44:05 +02:00
voruti
faceef6fd4
Fix missing cast ( #15356 )
...
Signed-off-by: Till von Rüden <dev@tillvonrueden.de>
2023-08-06 10:43:06 +02:00
Florian Hotze
bf7f24c099
[jsscripting] Upgrade openhab-js to 4.5.1 to fix cached injection ( #15336 )
...
It was found out that a recent change to the webpack config for the library injection bundle heavily affected performance of the evaluation of the cached injection.
openhab-js 4.5.1 fixes that regression and one minor bug, see https://github.com/openhab/openhab-js/blob/main/CHANGELOG.md#451 .
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
2023-07-30 14:47:03 +02:00