Rpi internal clock


3 posts
by rooster » Wed Nov 14, 2012 3:57 pm
ok, there isn't one! but my RPi is connected to a GPS, does anyone know how to get the timing from the GPS (which is easy) to become the internal time for the RPi?

When I have the RPi running connected to ethernet it grabs the time over the web somehow - I need it to do the same when running an unconnected remote application

Thanks

R
Posts: 100
Joined: Thu Aug 02, 2012 8:09 pm
by RaTTuS » Wed Nov 14, 2012 4:03 pm
take the output from the GPS and set the date with it ....

you can use the system date function, now how to get the time from the gps ... all depends on which gps
http://www.catb.org/esr/faqs/smart-questions.html <- ask smart Questions
"That's not right, the badgers have moved the goalposts."
1QC43qbL5FySu2Pi51vGqKqxy3UiJgukSX - Prosliver FTW
User avatar
Posts: 5338
Joined: Tue Nov 29, 2011 11:12 am
Location: North West UK
by rooster » Wed Nov 14, 2012 4:31 pm
RaTTuS wrote:take the output from the GPS and set the date with it ....

you can use the system date function, now how to get the time from the gps ... all depends on which gps


i can get date from gps ok, its just an element on a line. I use date a lot but didnt know it could be used to set too, silly of me really...date --s #date#

thanks!!

R
Posts: 100
Joined: Thu Aug 02, 2012 8:09 pm