Ideas and Discussion: What Features Do You Want in openHAB 5.0?

That wasn’t documented anywhere (at least not in the places I usually look). Good to know.

So the full code becomes:

// Current Version
console.info(org.openhab.core.OpenHAB.version);

// Latest Release
var releasePage = actions.HTTP.sendHttpGetRequest('https://api.github.com/repos/openhab/openhab-distro/releases/latest');
parsed = JSON.parse(releasePage);
var latestVersion = parsed.tag_name;
console.info(latestVersion);
1 Like