Commit Graph

1584 Commits (c240c6f4f8a354ffe37ad85f25c37bed959ba442)

Author SHA1 Message Date
dalgwen c240c6f4f8
[audio] Fix hardcoded value for WAV file ()
* Fix hardcoded value for WAV file ()

Signed-off-by: Gwendal Roulleau <gwendal.roulleau@gmail.com>
2022-01-06 14:06:06 +01:00
Christoph Weitkamp 824c0bb77c
Align parsing of startlevel config ()
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2022-01-04 21:03:16 +01:00
Christoph Weitkamp 378aacbbdd
Do not log a warning if QuantityState has unit AbstractUnit.ONE ()
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2022-01-04 21:01:17 +01:00
Yannick Schaus 96e8d3648b
Force English locale to parse marketplace UI components timestamp ()
Related to https://community.openhab.org/t/error-installing-widgets-from-community-in-user-interfaces/128729/16

When the locale is not English the timestamp might fail to be deserialized into a Date:

```
2022-01-02 21:01:42.260 [ERROR] [munity.CommunityUIWidgetAddonHandler] - Unable to parse YAML: Cannot deserialize value of type `java.util.Date` from String "Oct 2, 2021, 9:24:59 PM": not a valid representation (error: Failed to parse Date value 'Oct 2, 2021, 9:24:59 PM': Unparseable date: "Oct 2, 2021, 9:24:59 PM")

 at [Source: (StringReader); line: 36, column: 12] (through reference chain: org.openhab.core.ui.components.RootUIComponent["timestamp"])

2022-01-02 21:01:42.261 [ERROR] [munity.CommunityUIWidgetAddonHandler] - Widget from marketplace is invalid: Unable to parse YAML
```

Signed-off-by: Yannick Schaus <github@schaus.net>
2022-01-04 12:25:15 +01:00
Wouter Born 0bdaeef789
[persistence] Use ZonedDateTime instead of Date in ModifiablePersistenceService interface ()
If PRs are created to implement this interface, it would be better if we can prevent the propagation of old APIs like Date.

Related to:

* https://github.com/openhab/openhab-addons/pull/11922
* https://github.com/openhab/openhab-addons/pull/11923
* https://github.com/openhab/openhab-core/issues/2618#issuecomment-1003544762

Signed-off-by: Wouter Born <github@maindrain.net>
2022-01-02 20:45:10 +01:00
Christoph Weitkamp 33a553fa4d
[core] Added nullness annotations and suppress warning for 'AuthenticationException' ()
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2022-01-02 11:33:16 +01:00
J-N-K d420bee30e
[addonservices] allow offline mode ()
* allow offline mode

Signed-off-by: Jan N. Klug <jan.n.klug@rub.de>
2022-01-01 11:43:26 +01:00
Benjamin Lafois 842eaa5981
allows the use of an HTTP proxy ()
Signed-off-by: LAFOIS Benjamin <mrs.blafois@cma-cgm.com>
2021-12-30 23:18:29 +01:00
Christoph Weitkamp adde43c311
Prevent errors in log when client closes the HTTP connection ()
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2021-12-30 11:37:00 +01:00
Christoph Weitkamp 33f6651972
[mdns] Cancel removal task on manual scan ()
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2021-12-30 10:18:13 +01:00
Christoph Weitkamp 646640094a
Prevent errors in log when there is a connection timeout ()
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2021-12-30 10:10:38 +01:00
Kai Kreuzer e61db5a11a
[rest] Make SSEResource robust against missing parameters ()
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2021-12-29 16:35:51 +01:00
Christoph Weitkamp 9609ffb9b6
[tls] Add a PEMTrustManager to deal with different PEM files (e.g. self-signed or global CA certificates) ()
* Added a PEMTrustManager to deal with different PEM files (e.g.
self-signed or global CA certificates)

Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2021-12-29 09:45:40 +01:00
Matthew Skinner 68fb13f610
Bump netty to 4.1.72.Final for log4j2 2.15.0 fix ()
* Bump netty to 4.1.72.Final for log4j2 2.15.0 fix
* Add netty-tcnative/2.0.46.Final
* Change to netty-tcnative-classes

Signed-off-by: Matthew Skinner <matt@pcmus.com>
2021-12-28 09:44:25 +01:00
openhab-bot 670c64b5c4
New Crowdin updates ()
* New translations units.properties (Romanian)

* New translations ephemeris.properties (Romanian)
2021-12-27 07:20:13 +01:00
Kai Kreuzer 9297727112
Revert "Bump netty to 4.1.72.Final for log4j2 2.15.0 fix ()" ()
This reverts commit 2f1ae2c4b8.
2021-12-26 22:40:23 +01:00
Kai Kreuzer e3b07782b4
pom reference update from http to https ()
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2021-12-23 22:55:20 +01:00
Christoph Weitkamp 8074ea7dfe
Replaced Runnable by lambda expression ()
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2021-12-23 09:44:14 +01:00
Christoph Weitkamp 5b7227c35e
Use constructor injection ()
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2021-12-23 09:39:44 +01:00
Matthew Skinner 2f1ae2c4b8
Bump netty to 4.1.72.Final for log4j2 2.15.0 fix ()
* Bump netty to 4.1.72.Final for log4j2 2.15.0 fix

Signed-off-by: Matthew Skinner <matt@pcmus.com>
2021-12-22 20:27:34 +01:00
Wouter Born 3bcbaca6c0
Add i18n-maven-plugin dependency ()
Signed-off-by: Wouter Born <github@maindrain.net>
2021-12-22 20:25:46 +01:00
Andrew Fiddian-Green 459dac9702
[discovery.mdns] Devices may apply a grace period for removal from the Inbox ()
Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
2021-12-22 20:24:48 +01:00
Jacob Laursen 68ff739a50
Fix parameter description. ()
Signed-off-by: Jacob Laursen <jacob@vindvejr.dk>
2021-12-22 07:14:00 +01:00
Christoph Weitkamp 9963d02048
Added nullness annotations to io.net.http ()
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2021-12-21 22:29:36 +01:00
Christoph Weitkamp 2d79990d53
Use static BigDecimal values ()
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2021-12-21 22:13:22 +01:00
Jacob Laursen e72de44351
Fix wrong argument name in javadoc ()
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
2021-12-21 22:12:27 +01:00
Christoph Weitkamp 89fff918ad
Resolve itest runbundles for snapshot 3.3.0 ()
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2021-12-20 08:09:08 +01:00
Kai Kreuzer 1ebf7395d9 Apply spotless
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2021-12-20 06:59:22 +01:00
openhab-bot 5ac05c4968 [unleash-maven-plugin] Preparation for next development cycle. 2021-12-19 21:49:34 +00:00
Yannick Schaus fa682c551e
Improve logic to choose a script engine preferred MIME type ()
As discussed in https://github.com/openhab/openhab-addons/issues/11818.
This should select `application/x-python` for Jython (instead of `application/python` currently)
and allow other script engines to advertise their MIME type:
- JRuby: `application/x-ruby`
- Groovy: `application/x-groovy`

Signed-off-by: Yannick Schaus <github@schaus.net>
2021-12-19 20:01:48 +01:00
openhab-bot 13d2596998
New translations DefaultSystemChannels.properties (French) () 2021-12-19 12:14:07 +01:00
J-N-K ece54ae81f
[addonservices] fix JsonAddonService ()
* [addonservices] fix JsonAddonService

Signed-off-by: Jan N. Klug <jan.n.klug@rub.de>
2021-12-18 19:48:44 +01:00
Wouter Born b285e9be8f
Upgrade to Karaf 4.3.4 ()
* Syncs dependencies with Karaf 4.3.4
* Resolves itest runbundles for these new dependencies

Signed-off-by: Wouter Born <github@maindrain.net>
2021-12-18 10:59:35 +01:00
openhab-bot de7b176dc4
New Crowdin updates ()
* New translations addons.properties (Italian)
* New translations brokerConnectionInstance.properties (Italian)
* New translations i18n.properties (Italian)
* New translations inbox.properties (Italian)
* New translations marketplace.properties (German)
* New translations marketplace.properties (Hebrew)
* New translations marketplace.properties (Hungarian)
* New translations marketplace.properties (Italian)
* New translations restauth.properties (Italian)
* New translations tags.properties (Italian)
* New translations tags.properties (Polish)
* New translations validation.properties (Italian)
2021-12-15 22:14:37 +01:00
J-N-K f0c5aac29f
[marketplace] fix re-installation of marketplace addons ()
Signed-off-by: Jan N. Klug <jan.n.klug@rub.de>
2021-12-15 14:05:17 +01:00
Dan Cunningham eb3f1e92cc
Use the mime types provided by the ScriptEngineFactory ()
* Use the mime types provided by the ScriptEngineFactory and not the underlying script engines they provide. This allows mutliple versions of script engines to co-exist, like Nashorn and GraalVM .

Signed-off-by: Dan Cunningham <dan@digitaldan.com>
2021-12-13 07:13:04 +01:00
Michael Rossner 3b2d2ad4cc
[semantics] Fix typo ()
* Update SemanticTags.csv

fix typo proches -- porches

Signed-off-by: Schrotti <Schrott.Micha@web.de>
2021-12-12 22:09:11 +01:00
Yannick Schaus 198e2eb405
Change the syntax for references in automation modules configuration ()
Fixes .

This changes the placeholder syntax used by the reference resolver notably
used in rule templates from `${reference}` to `{{reference}}`.

The former syntax is also used by other languages, notably JavaScript's
template strings, and therefore writing rule templates including JavaScript
code with template strings wouldn't behave as expected.

This also fixes a bug identified in  where you couldn't have a
single closing brace before the start of the first placeholder - which
could more easily happen than having two closing braces.

Signed-off-by: Yannick Schaus <github@schaus.net>
2021-12-12 19:20:19 +01:00
Jonathan Gilbert 2883dfbc3e
Made script file watchers reusable in preparation for language-specific versions ()
Signed-off-by: Jonathan Gilbert <jpg@trillica.com>
2021-12-12 13:48:38 +01:00
Christoph Weitkamp 8f23e2f04a
Added nullness annotations to Addon related classes ()
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2021-12-12 10:07:05 +01:00
J-N-K 8a29b07855
[marketplace] add a 3rd Party marketplace ()
* [marketplace] add a 3rd Party compatible marketplace

This adds a new marketplace addon provider which allows to add marketplaces maintained by 3rd party organizations (similar to alternative app stores on your smartphone). The configuration allows one or multiple marketplaces which provide their addons via JSON files (instead of a topic in the community forum).

Signed-off-by: Jan N. Klug <jan.n.klug@rub.de>
2021-12-11 16:15:45 +01:00
Christoph Weitkamp 793ced6286
Added basic time-related classes for usage in script and ruled ()
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2021-12-10 23:41:08 +01:00
Yannick Schaus f641d1d6ec
[marketplace] Add add-on handler for block libraries ()
Related to https://github.com/openhab/openhab-webui/pull/1225.

This add-on handler supports installing block libraries in the
UIComponentRegistry, `ui:blocks` namespace.

It is very similar to the CommunityUIWidgetAddonHandler, as the format
is the same, so are the features and implementation, the only
differences being:

- Supported content type: `application/vnd.openhab.uicomponent;type=blocks`
  (vs. `application/vnd.openhab.uicomponent;type=widget`)
- Discourse category nb.: 76 (vs. 75)
- Inferred Add-on type: "automation" (vs. "ui")

Signed-off-by: Yannick Schaus <github@schaus.net>
2021-12-10 23:35:25 +01:00
Wouter Born 0028a3c792
Downgrade Aries JAX-RS Whiteboard from 2.0.1 to 2.0.0 ()
It causes unneccessary bundle refreshes whenever add-ons are installed/uninstalled.
As a result the UI does not get properly notified of installation changes.

Fixes 
Reverts the Aries JAX-RS Whiteboard upgrade of 

Signed-off-by: Wouter Born <github@maindrain.net>
2021-12-10 23:34:01 +01:00
Wouter Born 69043bea74
Use Accept-Language header for locale in ConfigurableServiceResource ()
Most RESTResources already use the LocaleService to get the locale based on the Accept-Language header and use the system locale only as fallback.
Because the ConfigurableServiceResource does not do this, it results in mixed up languages whenever your browser locale is not the same as the configured system locale.

See:

* https://community.openhab.org/t/language-support-question-regional-settings-language-vs-browser-language/128010
* https://github.com/openhab/openhab-webui/issues/1083

Signed-off-by: Wouter Born <github@maindrain.net>
2021-12-10 23:33:13 +01:00
Christoph Weitkamp f30beb5aeb
Added item name to error message ()
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2021-12-07 17:06:19 +01:00
Wouter Born 044aad891e
Remove unnecessary executable permissions ()
These files are marked as executable for no good reason at all.

Signed-off-by: Wouter Born <github@maindrain.net>
2021-12-05 19:58:23 +01:00
Christoph Weitkamp eb982f430d
Fixed nullness anotations for TriggerHandlerCallback ()
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2021-12-04 17:48:18 +01:00
Christoph Weitkamp 3493c85e19
Added nullness anotations to TimerImpl and synchronize reschedule method ()
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2021-12-03 14:33:04 +01:00
Christoph Weitkamp 07ee8e6ffc
Added nullness anotations to ChannelEventTriggerHandler ()
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2021-12-03 14:32:05 +01:00