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.




833 posts

Ultimate Geek
+1 received by user: 337


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
1493 posts

Uber Geek
+1 received by user: 131

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.


1245 posts

Uber Geek
+1 received by user: 137


  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

 
 
 
 


Try Wrike: fast, easy, and efficient project collaboration software
4384 posts

Uber Geek
+1 received by user: 819

Trusted
Lifetime subscriber

  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
3343 posts

Uber Geek
+1 received by user: 1088

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.

1934 posts

Uber Geek
+1 received by user: 702

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.




833 posts

Ultimate Geek
+1 received by user: 337


  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.

20882 posts

Uber Geek
+1 received by user: 4094

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



833 posts

Ultimate Geek
+1 received by user: 337


  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

9579 posts

Uber Geek
+1 received by user: 1399


  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 »

Amazon launches the International Shopping Experience in the Amazon Shopping App
Posted 19-Apr-2018 08:38


Spark New Zealand and TVNZ to bring coverage of Rugby World Cup 2019
Posted 16-Apr-2018 06:55


How Google can seize Microsoft Office crown
Posted 14-Apr-2018 11:08


How back office transformation drives IRD efficiency
Posted 12-Apr-2018 21:15


iPod laws in a smartphone world: will we ever get copyright right?
Posted 12-Apr-2018 21:13


Lightbox service using big data and analytics to learn more about customers
Posted 9-Apr-2018 12:11


111 mobile caller location extended to iOS
Posted 6-Apr-2018 13:50


Huawei announces the HUAWEI P20 series
Posted 29-Mar-2018 11:41


Symantec Internet Security Threat Report shows increased endpoint technology risks
Posted 26-Mar-2018 18:29


Spark switches on long-range IoT network across New Zealand
Posted 26-Mar-2018 18:22


Stuff Pix enters streaming video market
Posted 21-Mar-2018 09:18


Windows no longer Microsoft’s main focus
Posted 13-Mar-2018 07:47


Why phone makers are obsessed with cameras
Posted 11-Mar-2018 12:25


New Zealand Adopts International Open Data Charter
Posted 3-Mar-2018 12:48


Shipments tumble as NZ phone upgrades slow
Posted 2-Mar-2018 11:48



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.