Cruisers Forum
 

Go Back   Cruisers & Sailing Forums > Seamanship, Navigation & Boat Handling > Navigation
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 19-02-2022, 09:52   #1
Registered User

Join Date: Jul 2020
Location: Chicago
Boat: Catalina 34
Posts: 54
Set Raspberry PI clock from NMEA Device

Hello,

What's the best way to set Raspberry PI time from NMEA (connection from USB/NMEA adapter or over the network via data from a NMEA 2000 Wifi Gateway)?

Use Case: I return to my boat after several days or longer and power up the Raspberry Pi I use for navigation. I don't have internet connection so I want the clock to be set from one of my GPS devices. My AIS transponder, with GPS, is connected via USB/NMEA adapter. NMEA data including GPS time is also available over the boat's wifi via NMEA 2000 Wifi gateway.

I've set time on another Raspberry PI via an inexpensive USB GPS and GPSD software but I don't have a spare USB port.

I've searched this forum and broader internet with no luck.

Thanks in advance for your help!
Donnybrook is offline   Reply With Quote
Old 19-02-2022, 10:34   #2
Registered User

Join Date: Nov 2015
Location: Ireland
Posts: 467
Re: Set Raspberry PI clock from NMEA Device

I have Python code to do that if you don’t find anything ready-cooked. Just send me a pm if you would like a copy.
AedanC is offline   Reply With Quote
Old 08-03-2022, 08:35   #3
Registered User

Join Date: Jul 2016
Location: Europe
Boat: Scampi
Posts: 15
Re: Set Raspberry PI clock from NMEA Device

Your question prompted me to write up my previous work on this problem.



https://river.cat/2022/03/boat-time


tldr; I use ntpd to set the clock from NMEA data, and also from a laptop.
river is offline   Reply With Quote
Reply

Tags
nmea


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
New NMEA 2000 and NMEA 0183 board for Raspberry Pi Tenedos Marine Electronics 6 24-02-2021 03:28
For Sale: Chelsea Clock and Barometer Set bad.wabbit General Classifieds (no boats) 1 22-10-2017 13:09
For Sale: "Boston" Series Brass Clock and Barometer - chelsea clock co. pressuredrop Classifieds Archive 0 26-04-2016 13:12
For Sale: 7" bronze clock/barometer set "victory" pressuredrop Classifieds Archive 6 12-08-2015 10:04
Set the Chimes on a Winding Clock CaptMarc General Sailing Forum 5 13-07-2010 04:48

Advertise Here


All times are GMT -7. The time now is 22:51.


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.