Some JSR223 Javascript Rules

I just wanted to leave this here for anyone tired of Xtext DSL rules / interested in JSR223. I decided to go for Javascript instead of Jython just out of personal preference. I hope these are useful to someone out there. You don’t read much about JSR223 Nashorn, but it’s pretty awesome actually, not sure how it compares to Jython but it openend a whole new level of OpenHAB scripting to me.

i’m using a modded version of Lewie’s basic JSRule helper functions found here:

Maybe you guys have some Javascript rules to share too?

:

3 Likes