Cruisers Forum

Join CruisersForum Today

Thread Tools 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
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

Our Communities

Our communities encompass many different hobbies and interests, but each one is built on friendly, intelligent membership.

» More about our Communities

Automotive Communities

Our Automotive communities encompass many different makes and models. From U.S. domestics to European Saloons.

» More about our Automotive Communities

Marine Communities

Our Marine websites focus on Cruising and Sailing Vessels, including forums and the largest cruising Wiki project on the web today.

» More about our Marine Communities

Copyright 2002-2015 Social Knowledge, LLC All Rights Reserved.

All times are GMT -7. The time now is 15:04.

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

ShowCase vBulletin Plugins by Drive Thru Online, Inc.