WARNING: Users who have this template already installed for versions of OH 5.1 and before, after removing the old template and installing this new one, open your rule(s), click on the code tab, and change the ruleTemplate property to ohrt-upgradeCheck before regenerating the rule.
A rule which runs at midnight that checks GitHub for a new release of OH. It updates three Items, one with the current version of OH, one with the latest version and a Switch which will be ON when the current version doesn’t match the latest. It also logs at the info level when there is an upgrade available and at the debug level when there isn’t.
TODO: handle milestone releases
Language: JS Scripting
Dependencies:
JS Scripting.
May depend on OHRT in the future
Changelog
Version 1.1
- migration to new YAML file format for OH 5.2
- use wrapper
- standardized logger names
Version 1.0
- Reformatted to new YAML file format
- Added logs
Sponsorship
If you want to send a tip my way or sponsor my work you can through Sponsor @rkoshak on GitHub or PayPal. It won’t change what I contribute to OH but it might keep me in coffee or let me buy hardware to test out new things.
