Jossep
Posts: 12
Joined: Sat Nov 22, 2014 12:53 pm

Setting the time with GPS and RTC

Fri Apr 10, 2015 10:45 am

Hello,

there's a lot of discussion about setting the time on your pi but I do not find a satisfying answer.

I have the adafruit ultimate GPS breakout connected to my pi. It is RTC battery-compatible.
I have a bicycle, attached with a few sensors + the GPS. I use an external battery to power my pi.
I write the sensor data to a file with every line timestamped. Unfortunately the time isn't right because my pi isn't connected to the internet.
So i bought the cr 1220 backup battery, which can be plugged in to the gps breakout.

My question is: how do I properly set the pi's time with my gps/rtc?


Jossep
Posts: 12
Joined: Sat Nov 22, 2014 12:53 pm

Re: Setting the time with GPS and RTC

Fri Apr 10, 2015 12:04 pm

Thanks for the quick response.

I've checked the url but there's a hell of a lot information there.

I think there must be a much quicker/easier/obvious explanation to set the time with my rtc/gps?

ame
Posts: 3172
Joined: Sat Aug 18, 2012 1:21 am
Location: New Zealand

Re: Setting the time with GPS and RTC

Fri Apr 10, 2015 12:11 pm

Jossep wrote:
Thanks for the quick response.

I've checked the url but there's a hell of a lot information there.

I think there must be a much quicker/easier/obvious explanation to set the time with my rtc/gps?
You're right. There must be something easier. Why not google for a while and see how you get on.

scotty101
Posts: 3958
Joined: Fri Jun 08, 2012 6:03 pm

Re: Setting the time with GPS and RTC

Fri Apr 10, 2015 1:06 pm

A very quick google search turned up the following page. Is this too long?

http://blog.retep.org/2012/06/18/gettin ... pberry-pi/
Electronic and Computer Engineer
Pi Interests: Home Automation, IOT, Python and Tkinter

Return to “Automation, sensing and robotics”