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
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.