nguyenquanghai1993 / openhab

Automatically exported from code.google.com/p/openhab
GNU General Public License v3.0
0 stars 0 forks source link

Clock Widget #305

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Hi, I like to have visibility into the current time of various cities all over 
the world - so basically I would like openhab to function as a world clock. 
Here is what I did so far:

DateTime        dateLocal       "Local [%1$td.%1$tm.%1$tY %1$tT]"               
                        { ntp="Europe/Berlin:de_DE" }
DateTime        dateEastCoast   "New York [%1$td.%1$tm.%1$tY %1$tT]"            
                        { ntp="America/New_York:de_DE" }
DateTime        dateWestCoast   "Los Angeles [%1$td.%1$tm.%1$tY %1$tT]"         
                        { ntp="America/Los_Angeles:de_DE" }
DateTime        dateSingapur    "Singapore [%1$td.%1$tm.%1$tY %1$tT]"           
                        { ntp="Asia/Singapore:de_DE" }

Text item=dateLocal icon="clock-on"
Text item=dateEastCoast icon="clock-on"
Text item=dateWestCoast icon="clock-on"
Text item=dateSingapur icon="clock-on"

Now I can set how often the clocks update using openhab.cfg

ntp:refresh=10

I would like to see a clock widget that picks up the current time from NTP an 
then runs independently updating the time every second without having to query 
NTP every time. Having that clock in analog an digital themes would be great, 
too!

cheers
Mathias

Original issue reported on code.google.com by mathias....@googlemail.com on 19 May 2013 at 8:45

GoogleCodeExporter commented 8 years ago

Original comment by kai.openhab on 22 May 2013 at 8:30

GoogleCodeExporter commented 8 years ago
It would be nice to get the time from the operating system, 'cause often the 
operating system itself is ntp-synchronized, so it's not necessary to 
synchronize twice.

Original comment by udo1t...@gmail.com on 3 Jun 2013 at 8:49

GoogleCodeExporter commented 8 years ago

Original comment by teichsta on 5 Nov 2013 at 10:47

GoogleCodeExporter commented 8 years ago
This issue has been migrated to Github. If this issue id is greater than103 its 
id has been preserved on Github. You can open your issue by calling the URL 
https://github.com/openhab/openhab/issues/<issueid>. Issues with ids less or 
equal 103 new ids were created.

Original comment by teichsta on 17 Nov 2013 at 8:08

GoogleCodeExporter commented 8 years ago
see above!

Issue has been migrated to Github and should be discussed there.

Original comment by teichsta on 21 Nov 2013 at 1:51