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

Rpi internal clock

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

User avatar
RaTTuS
Posts: 9486
Joined: Tue Nov 29, 2011 11:12 am
Location: North West UK

Re: Rpi internal clock

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
How To ask Questions :- http://www.catb.org/esr/faqs/smart-questions.html
WARNING - some parts of this post may be erroneous YMMV

1QC43qbL5FySu2Pi51vGqKqxy3UiJgukSX
Covfefe

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

Re: Rpi internal clock

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

Return to “Automation, sensing and robotics”

Who is online

Users browsing this forum: No registered users and 9 guests