Seite 1 von 1

OH-4.0.0.M2 Java-Script Add-On -Warnung

Verfasst: 25. Apr 2023 17:58
von peter-pan
Ich habe beim Starten von OH,diverse Fehlermeldungen bekommen.

Code: Alles auswählen

2023-04-25 16:09:01.016 [WARN ] [core.karaf.internal.FeatureInstaller] - The transformation add-on 'javascript' does not exist - ignoring it.
2023-04-25 16:10:00.973 [WARN ] [core.karaf.internal.FeatureInstaller] - The transformation add-on 'javascript' does not exist - ignoring it.
Ich finde jedoch keinen Ansatzpunkt, was ich machen muss, bzw. wo ich schauen muss, damit ich diese Meldung eliminieren kann. Ich habe auch kein Java-Scripting installiert.

Hat mir hier jemand einen Tipp ?

Re: OH-4.0.0.M2 Java-Script Add-On -Warnung

Verfasst: 25. Apr 2023 19:00
von udo1toni
Hast Du die Konfiguration aus einem bestehenden System übernommen?

Re: OH-4.0.0.M2 Java-Script Add-On -Warnung

Verfasst: 25. Apr 2023 22:37
von peter-pan
@udo1toni
Hallo Udo,
ich habe ganz normal ein Update(Upgrade) über "openhab-config" gemacht, über Menüpunkt 02. Allerdings zuerst von OH-3.4.3 auf OH-4.0.0.M1. Aber da hatte ich auch schon die Warnungen, hab sie aber einfach ignoriert :oops: , da ich bisher keine Einbußen feststellen konnte.
Systeminfo:

Code: Alles auswählen

runtimeInfo:
  version: 4.0.0.M2
  buildString: Milestone Build
locale: de-DE
systemInfo:
  configFolder: /etc/openhab
  userdataFolder: /var/lib/openhab
  logFolder: /var/log/openhab
  javaVersion: 17.0.6
  javaVendor: Raspbian
  osName: Linux
  osVersion: 6.1.21-v8+
  osArchitecture: arm
  availableProcessors: 4
  freeMemory: 28738032
  totalMemory: 259522560
  startLevel: 100
bindings: null
Hast du eine Idee ?

Re: OH-4.0.0.M2 Java-Script Add-On -Warnung

Verfasst: 26. Apr 2023 01:24
von udo1toni
In 4.0.0-M2 gibt es nur die SCRIPT Transformation (also statt JS, kann dafür alle Scriptsprachen, die von openHAB unterstützt werden).
Aber bevor Du jetzt anfängst, die Konfiguration anzupassen: im aktuellen Snapshot ist das bereits anders (und um so vieles besser).
Mein Tipp: Wenn Du die JS Transformation nicht nutzt, warte einfach auf 4.0.0-M3.

Re: OH-4.0.0.M2 Java-Script Add-On -Warnung

Verfasst: 26. Apr 2023 12:00
von peter-pan
Danke erst mal für die Info.
Dann warte ich mal ab, auf das neue Milestone, obwohl ich nicht ganz verstanden habe worum es eigentlich geht.

Grüssle - Peter

Re: OH-4.0.0.M2 Java-Script Add-On -Warnung

Verfasst: 26. Apr 2023 21:39
von J-N-K
In M2 geht es schon mit der neuen "Transformation". Aber es gibt noch kein Migration-Tool, ist aber in Arbeit (https://github.com/openhab/openhab-core/pull/3268). Manuell muss das, was vorher in "function" stand in "toItemScript" eingetragen werden und in "toHandlerScript" muss "|input" eingetragen werden.

Wenn Du die addons.cfg zur Installation der Add-ons verwendest, kannst Du "javascript" da aus den transformations löschen. Wenn Du die Add-ons über UI installierst: Meldung ignorieren, tut nicht weh, werde ich vor dem Release noch beseitigen.

Re: OH-4.0.0.M2 Java-Script Add-On -Warnung

Verfasst: 27. Apr 2023 11:03
von peter-pan
@J-N-K

Hallo Jan,
Danke für die Info.
Eigentlich mache ich mit der addons.cfg nichts. Die sieht bei mir so aus:

Code: Alles auswählen

# The installation package of this openHAB instance
#
# Valid options:
#   - standard : Standard setup for normal use of openHAB with persistence (rrd4j) and additional UI add-ons (basic,habpanel).
#   - minimal  : Installation of core components without additional add-ons.
#
# Note: The add-ons in the installation package are only installed at the VERY FIRST START of openHAB
# Note: If you want to specify your add-ons yourself through entries below, set the package to "minimal"
# as otherwise your definition might be in conflict with what the installation package defines.
#
package = standard

# Access Remote Add-on Repository
# Defines whether the remote openHAB add-on repository should be used for browsing and installing add-ons. (default is true)
#
#remote = true

# Some add-on services may provide add-ons where compatibility with the currently running system is not expected.
# Enabling this option will include these entries in the list of available add-ons.
#
#includeIncompatible = false

# The add-on configuration in the lists below is applied EVERY TIME openHAB is started.
# Add-ons installed using the UI that do not occur in the lists will be uninstalled each startup.
# When lists are commented again any add-ons in the list remain installed and are not removed.
# So if you want to uninstall all add-ons part of a list, first remove all add-ons from it, restart
# openHAB and then comment the list.

# A comma-separated list of automation services to install (e.g. "automation = groovyscripting")
#automation = 

# A comma-separated list of bindings to install (e.g. "binding = knx,sonos,zwave")
#binding = 

# A comma-separated list of miscellaneous services to install (e.g. "misc = openhabcloud")
#misc = 

# A comma-separated list of persistence services to install (e.g. "persistence = jpa,rrd4j")
#persistence = 

# A comma-separated list of transformation services to install (e.g. "transformation = jsonpath,map")
#transformation = 

# A comma-separated list of UIs to install (e.g. "ui = basic,habpanel")
#ui = 

# A comma-separated list of voice services to install (e.g. "voice = googletts,marytts")
#voice = 
Hast eventuell ein konkretes Beispiel ? Hängt das mit textbasierenden Items zusammen ?
Ansonsten ignoriere ich die Warnung, wie du und Udo schon geschrieben haben.
Danke nochmals.

Re: OH-4.0.0.M2 Java-Script Add-On -Warnung

Verfasst: 27. Apr 2023 18:38
von J-N-K
Du hast das über UI konfiguriert und du kannst es im Augenblick ignorieren.