How to use js tranformation in OpenHAB

Give me some code regarding JS transformation(i.e., How to use call js function when event occurs)

Please be more specific or use the documentation

1 Like

http://docs.openhab.org/addons/transformations.html

http://docs.openhab.org/addons/transformations/javascript/readme.html