diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2011-11-10 17:42:54 -0500 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2011-11-10 17:42:54 -0500 |
commit | 0427b4227a3195a67a04bcbb6f95677b145f2918 (patch) | |
tree | 83a8968adf948e44bee7f65b5cf178dfd45bda5b /www/faq.html.in | |
parent | 315f13286e5f3afeae4f5b3a540c0f259e55b3e6 (diff) | |
download | gpsd-0427b4227a3195a67a04bcbb6f95677b145f2918.tar.gz |
Workaround for Savannah tracker bug #34710.
This is the missing tinfo file in Ubuntu 11.10.
Diffstat (limited to 'www/faq.html.in')
-rw-r--r-- | www/faq.html.in | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/www/faq.html.in b/www/faq.html.in index e2eacb7a..9e8f413f 100644 --- a/www/faq.html.in +++ b/www/faq.html.in @@ -84,6 +84,8 @@ GPSD Frequently Asked Questions <li><a href='#tiocmwait'>PPS is failing to work under Linux</a></li> <li><a href='#time'>How can I improve time reference accuracy from my GPS?</a></li> <li><a href='#sleep'>Why does my GPS get lost when I sleep/wake my laptop?</a></li> +<li><a href='#clock'>How can I initialize my system clock from a GPS?</a></li> +<li><a href='#web'>How do I get gpsd data into a web page?</a></li> <li><a href='#baud'>Why is there no option to fix baud rate?</a></li> <li><a href='#willitwork'>Will this GPS work? It's not on the hardware list.</a></li> <li><a href='#nmea2000'>Does gpsd support NMEA2000?.</a></li> @@ -635,6 +637,23 @@ href="70-persistent-usb-gps.rules">these replacement udev rules</a>, and the experience required to patch them so the vendor ID in the last one matches your GPS hardware (look in your lsusb output).</p> +<h1 id='clock'>How can I initialize my system clock from a GPS?</h1> + +<para>To set the time on a box that has no real-time clock and no +network connection, you need to set the clock to any date in the +currebt century, then run the following:</p> + +<pre><code> +date -s 2010.01.01-01:01 +date -s \ + $(echo '?WATCH="enable":true,"json":false,"nmea":true}' \ + | nc localhost 2947 \ + | awk '/GPRMC/{FS=","; print 20 substr($10,5,2) "." substr ($10,3,2) "." +substr($10,0,2) "-" substr($2,0,2) ":" substr($2,3,2) ":" substr($ +</code></pre> + +<p>(The actual requirt + <h1 id='web'>How do I get gpsd data into a web page?</h1> <p>The <code>gpsd</code> source-code distribution now includes a PHP |