Cruisers Forum

Join CruisersForum Today

Thread Tools Search this Thread Rate Thread Display Modes
Old 05-01-2013, 13:00   #1
Registered User

Join Date: Jun 2011
Posts: 17
GPS time python module (for raspberry pi)

Just thought I'd throw this bit of code out there for people to use. I've been using OpenCPN with my raspberry pi and bsb charts quite successfully for a while now. One of my frustrations was that the pi lacks a real time clock, and so the tide charts will not work properly (which is quite important...).

So I made a python script which grabs the nmea stream through GPSd to get the current time from your GPS, which is then used to set the system clock. You can set this up to run automatically upon boot up to set the system time upon each use.

Feel free to download at gpstime - Python module that sets system time in coordination with GPS time. - Google Project Hosting

My gps isn't with me at the moment, so I've been having to use gpsfake to test things out. Everything should still work, but please let me know if not.

nsweeting is offline   Reply With Quote


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Copyright 2002- Social Knowledge, LLC All Rights Reserved.

All times are GMT -7. The time now is 06:24.

Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2019, vBulletin Solutions, Inc.
Social Knowledge Networks
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2019, vBulletin Solutions, Inc.

ShowCase vBulletin Plugins by Drive Thru Online, Inc.