Cruisers Forum
 

Go Back   Cruisers & Sailing Forums > Seamanship, Navigation & Boat Handling > OpenCPN
Cruiser Wiki Click Here to Login
Register Vendors FAQ Community Calendar Today's Posts Log in

Reply
  This discussion is proudly sponsored by:
Please support our sponsors and let them know you heard about their products on Cruisers Forums. Advertise Here
 
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.

Cheers
Nick
nsweeting is offline   Reply With Quote
Reply

Tags
gps


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


Advertise Here


All times are GMT -7. The time now is 16:09.


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

ShowCase vBulletin Plugins by Drive Thru Online, Inc.