Hi Andy, to show hours and minutes you need to define your channel as the date item.
Install the ntp binding and you will able to define the channel to your dateTime item.
Example:
DateTime Time "[%1$tH:%1$tM]" <calendar> { channel="ntp:ntp:local:dateTime" }
If you want to show a clock icon, download a .svg clock image and save with the name clock.svg on the /icon/classic folder
I’m trying to do the same thing, but it will not show. I get the data in Paper UI, but not in Basic UI. So far, none of the suggestions in the message boards or the OpenHAB instruction files seem to be working.
Sitemap:
sitemap home label="Hutchins Home Automation" {
Frame label="Date" {
Text item=Date
Text item=Time
}
Frame label="Main Menu" {
Group item=gUS label="Upstairs" icon="firstfloor"
Group item=gDS label="Downstairs" icon="groundfloor"
Group item=gOS label="Outside" icon="garden"
Group item=gHVAC label="Heating & Air" icon="heating"
Group item=gA label="Alarms" icon="alarm"
Group item=gM label="Mobile" icon="qualityofservice"
Group item=gW label="Weather" icon="sun"
Group item=gH label="Holiday Lights" icon="tree_96"
}
}
rossko57, you were right. I didn’t realize that I duplicated the entries. I removed them from the items file and everything is working again. Sometime a second set of eyes is all that is needed.