Hello,
is there a widget to show the current day scheduler inside another page?
- Platform information:
- openHAB version: 5.1.1
I know there’s scheduler dedicated page but I need a read only view of the current day.
Thanks, BR
Hello,
is there a widget to show the current day scheduler inside another page?
I know there’s scheduler dedicated page but I need a read only view of the current day.
Thanks, BR
I don’t think so. I’m not entirely certain how the Schedule view gets its information to determine when the rule is scheduled to run.
I do know that the only rules that appear there are those with the tag “Schedule” but I don’t know how it calculates when the rule will run. I suspect there’s a JS library that MainUI uses to calculate when the rules are going to run.
To do this I think you’d need to use a rule. In the rule you’d pull all the rules with the tag “Schedule”, examine their triggers and figure out when they will run for today. In JS rules you should be able to install and use the cron-parser library from npm to do this for the cron expressions. time.toZDT() I think will handle the time of day triggers.
To display them in MainUI you’d probably want to us an oh-repeater card. You can put the schedule times into the Item’s metadata and then build the entries for the repeater based on the metadata.
I’ve never done anything like this myself so I can’t really provide much more than these broad outlines.
Thank you for your reply, but I was hoping in a ready to go solution, was expecting something like “give readonly permisison on the schedule page to a user group”.