In openhab 3.4 the item had a display transformation “JS(clockfmt.js):%s” to show a formatted time.
As JS transformation are gone in oh4 i added the “javascript” add-on to my oh4 installation. Then I tried different syntax.e.g
SCRIPT(graaljs:clockfmt.script):%s
script:graaljs:clockfmt.script:%s
No luck!
In the log are many "The transformation add-on 'javascript' does not exist " appear.
Oh - simpler than expected. Thanks!
I did install the nashorn Javascript too - is it required for this?
Do you know, how I can get rid of obsolete add-on:
" The transformation add-on ‘javascript’ does not exist - ignoring it."
Hm - it looks like I still have a small problem. When startng up i got several messages like:
“couldn’t transform response because transformationService of type ‘JS’ is unavailable”