Geekzone: technology news, blogs, forums
Guest
Welcome Guest.
You haven't logged in yet. If you don't have an account you can register now.




346 posts

Ultimate Geek
+1 received by user: 81


Topic # 180970 28-Sep-2015 12:28
Send private message

Another daylight savings event passed. I think it's sole purpose it to mess up my sleep pattern.

NTP, for those who don't know, stands for Network Time Protocol. Pretty much every thing supports it.

A commercial NTP clock are hard to find in New Zealand, and expensive, at $300 or more.

Anyhow my friend came up with almost free wall clock, that automatically adjust the time, by using an unused cell phone.

He had an old Android cell phone, with no phone provider / no SIMM card.

He uses it as a wall clock, by hanging it on the wall, with a USB charger. It uses NTP to sync time to his wireless access point. Obviously it has a battery, so a quick power loss has no affect.

Just about everywhere sells cheap Android tablets. In New Zealand there are a lot for $100.

UNRELATED FUN TIME FACTS

Though most devices use NTP, an alternate way of getting time is GPS, which essentially are flying atomic clocks.

However GPS time is off by more than 19 seconds.

Also GPS time is set to Coordinated Universal Time (UTC), which doesn't use daylight savings.

Don't believe me?

"GPS cannot tolerate the introduction of leap seconds. Hence, in 1980, when the Department of Defense started keeping time on the GPS satellites, its system time and frequency were set to agree with UTC(USNO MC). At that time, TAI minus UTC was 19 seconds. Since then, UTC has been delayed many leap seconds and GPS time has not. Hence, GPS time is still very close to TAI minus 19 seconds."

http://www.allanstime.com/Publications/DWA/Science_Timekeeping/index.html

http://www.timeanddate.com/time/gmt-utc-time.html

Create new topic
1420 posts

Uber Geek
+1 received by user: 122

Trusted

  Reply # 1395706 28-Sep-2015 12:45
Send private message

Do you have examples of how he did it?

What tablet?
Which app is he using etc etc?

Does it display weather as well or just the time?




CPU: Intel 3770k| RAM: F3-2400C10D-16GTX G.Skill Trident X |MB:  Gigabyte Z77X-UD5H-WB | GFX: GV-N660OC-2GD gv-n660oc-2gd GeForce GTX 660 | Monitor: Qnix 27" 2560x1440

 

Want to be with an awesome ISP? Want $20 credit too? Use this link to sign up to BigPipe.


1241 posts

Uber Geek
+1 received by user: 134


  Reply # 1395708 28-Sep-2015 12:55
Send private message

Geez and I thought repurposing an old iPad as a wall clock/weather HUD was over the top

 
 
 
 


4308 posts

Uber Geek
+1 received by user: 799

Trusted

  Reply # 1395710 28-Sep-2015 12:56
Send private message

Get a cheap tablet. Lots of wall clock app available.

Hang onto the wall... Done!





Fully Operational
3324 posts

Uber Geek
+1 received by user: 1081

Trusted
Vocus
Subscriber

  Reply # 1395712 28-Sep-2015 12:58
Send private message

NTP also uses UTC.  Each device has to know when local time daylight saving starts and ends.

And of course you can use GPS time, you just need to make the appropriate adjustments to match UTC and then the appropriate adjustments to match your current time zone.

1807 posts

Uber Geek
+1 received by user: 563

Trusted

  Reply # 1395724 28-Sep-2015 13:04
One person supports this post
Send private message

"GPS, which essentially are flying atomic clocks." - best thing I've read all day :)




It looks like I'm using an adblocker. I should consider whitelisting Geekzone in my adblocker or a subscription. The Quick Reply box will appear for me when Geekzone is whitelisted. Hooray for me! If I want to reply to this topic I should click on Compose Reply.




346 posts

Ultimate Geek
+1 received by user: 81


  Reply # 1395803 28-Sep-2015 14:34
Send private message

mentalinc: Do you have examples of how he did it?

What tablet?
Which app is he using etc etc?

Does it display weather as well or just the time?


He told me the NTP was already available, so nothing to download there.

I'd guess getting time from GPS would work, but since more people have networking experience NTP seems the more natural choice.

He had to disable the lock screen, obviously.

As mentioned, there's apparently no shortage of clocks, so try several freebies and pick the one you like.

The clock with weather idea is good. I'd guess a news ticker wouldn't be out of the question on a tablet.

I'll ask him what clock he used.

19937 posts

Uber Geek
+1 received by user: 3659

Trusted
Subscriber

  Reply # 1395812 28-Sep-2015 14:51
Send private message

My phones ignore the NTP server from the DHCP server and go off and get the time themselves from elsewhere. Not sure if it's GSM or NTP but it's out from my domain controller which I have to periodically bring back to correct time.

I have a 3/4 finished arduino and ethernet shield clock that does NTP and outputs to some 7 segment displays. Of course if I was starting it now would use a esp8266 module for wifi clock instead.

Am wondering how quickly the mechanism from a cheap wall clock could step in order to have it go forward /back at daylight saving changeover too.




Richard rich.ms



346 posts

Ultimate Geek
+1 received by user: 81


  Reply # 1395830 28-Sep-2015 15:07
Send private message

Short answer: NTP is one the simple network protocols to get working.

If you're local DHCP doesn't support NTP, try this list in New Zealand, otherwise Google NTP:

https://ntp.net.nz/aup.html

The US Naval NTP clocks are also good, since they are related to the GPS clocks.

Long answer, which may be incorrect.

NTP uses a "Daemon" to get the time, and adjust the clock.

How the Daemon works is up to the manufacturer / programmer.

As mentioned, these use UTC, the location information (what country are you in?) and the daylight savings information (every countries adjustments to daylight savings)

If the time reading is wildly different, it's ignored for some period (again up to the manufacturer).

If it's a small change

* less critical device like phones, it's instantly change.

* more critical devices like server, it's slowly change over an extended period

As a sidenote, Windows uses the "slowly change" technique to adjust times

gzt

8838 posts

Uber Geek
+1 received by user: 1167


  Reply # 1395838 28-Sep-2015 15:12
Send private message

Now if he can add PIR to detect when someone is around and only then display the clock I would be impressed.

Internal camera is a possibility for movement detection but keeping it powered defeats the purpose of reducing power consumption and increasing safety. Still it would be worth a look.

4123 posts

Uber Geek
+1 received by user: 842
Inactive user


  Reply # 1395840 28-Sep-2015 15:16
Send private message

GPS time receivers compensate for the 19 seconds and give accurate time, just so that no one thinks a GPS based clock is 19 seconds out.

Create new topic



Twitter »

Follow us to receive Twitter updates when new discussions are posted in our forums:



Follow us to receive Twitter updates when news items and blogs are posted in our frontpage:



Follow us to receive Twitter updates when tech item prices are listed in our price comparison site:





News »

IDC thinks ANZ is a nation
Posted 27-Jul-2017 11:51


British new home buyers see ultrafast broadband as vital
Posted 27-Jul-2017 09:46


Australians want NZ-style gigabit, but for less
Posted 27-Jul-2017 08:57


Push notifications: A productivity killer
Posted 25-Jul-2017 14:15


Intergen takes SKYCITY to the cloud
Posted 25-Jul-2017 14:04


Nothing nebulous about Microsoft’s cloud-transition
Posted 21-Jul-2017 15:34


We’re spending more on tech, but not as much as Australians
Posted 21-Jul-2017 11:43


Endace announces EndaceFabric for network-wide packet recording
Posted 20-Jul-2017 20:49


Acorn 6: MacOS image editing for the rest of us
Posted 20-Jul-2017 17:04


HTC faces backlash over keyboard pop-up ads
Posted 19-Jul-2017 15:53


BNZ adds Visa credit cards to Android Pay wallet
Posted 18-Jul-2017 19:44


Still living in a Notification hell – Om Malik
Posted 18-Jul-2017 13:00


Duet Display uses iPad to extend Mac, PC
Posted 18-Jul-2017 10:58


PC sales could be worse
Posted 17-Jul-2017 07:34


Crypto-currencies, tulips, market bubbles
Posted 17-Jul-2017 06:38



Geekzone Live »

Try automatic live updates from Geekzone directly in your browser, without refreshing the page, with Geekzone Live now.



Are you subscribed to our RSS feed? You can download the latest headlines and summaries from our stories directly to your computer or smartphone by using a feed reader.

Alternatively, you can receive a daily email with Geekzone updates.