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.




542 posts

Ultimate Geek
+1 received by user: 173


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

Uber Geek
+1 received by user: 124

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

 
 
 
 


4338 posts

Uber Geek
+1 received by user: 806

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
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.

1876 posts

Uber Geek
+1 received by user: 621

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.




542 posts

Ultimate Geek
+1 received by user: 173


  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.

20368 posts

Uber Geek
+1 received by user: 3873

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



542 posts

Ultimate Geek
+1 received by user: 173


  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

9150 posts

Uber Geek
+1 received by user: 1290


  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 »

From small to medium and beyond: Navigating the ERP battlefield
Posted 21-Nov-2017 21:12


Business owners: ERP software selection starts (and finishes) with you
Posted 21-Nov-2017 21:11


Why I'm not an early adopter
Posted 21-Nov-2017 10:39


Netatmo launches smart home products in New Zealand
Posted 20-Nov-2017 20:06


Huawei Mate 10: Punchy, long battery life, artificial intelligence
Posted 20-Nov-2017 16:30


Propel launch Disney Star Wars Laser Battle Drones
Posted 19-Nov-2017 21:26


UFB killer app: Speed
Posted 17-Nov-2017 17:01


The case for RSS — MacSparky
Posted 13-Nov-2017 14:35


WordPress and Indieweb: Take control of your online presence — 6:30 GridAKL Nov 30
Posted 11-Nov-2017 13:43


Chorus reveals technology upgrade for schools, students
Posted 10-Nov-2017 10:28


Vodafone says Internet of Things (IoT) crucial for digital transformation
Posted 10-Nov-2017 10:06


Police and Facebook launch AMBER Alerts system in NZ
Posted 9-Nov-2017 10:49


Amazon debuts Fire TV Stick Basic Edition in over 100 new countries
Posted 8-Nov-2017 05:34


Vodafone VoIP transition to start this month
Posted 7-Nov-2017 12:33


Spark enhances IoT network capability
Posted 7-Nov-2017 11:33



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.