summaryrefslogtreecommitdiff
path: root/gpscat
Commit message (Collapse)AuthorAgeFilesLines
* gpscat: Fix for Python without curses package.Fred Wright2019-03-181-3/+5
| | | | | | | | | | Some Python installs (notably some NetBSD versions) lack the curses package. Since its only use here was for the printable character test, derive a test from string.printable instead. TESTED: Tested (in raw mode) with a receiver mixing NMEA and binary, with Python 2.6, 2.7, and 3.2-3.7, observing proper printability filtering.
* gpscat: Add test for PYTHONPATHGary E. Miller2018-11-161-2/+9
|
* Update version to 3.19-dev. back to dev cycle.dev-3.19aGary E. Miller2018-10-191-1/+1
|
* Chnage version to 3.18.1release-3.18.1Gary E. Miller2018-10-191-1/+1
|
* 3.19!dev: Change revisions for 3.19~dev cycle.Gary E. Miller2018-10-021-1/+1
|
* Version bump to 3.18 for release.release-3.18Gary E. Miller2018-10-021-1/+1
|
* Python clients: Opps 3.18~dev, not 3.18-dev.Gary E. Miller2018-10-011-1/+1
| | | | A tilda, not a dash.
* gpscat: pylint cleanupsGary E. Miller2018-09-211-5/+7
|
* gpsfake, gpsfake, gpsprof: pep8 tweaks.Gary E. Miller2018-09-211-4/+5
|
* gpscat: Tweak getopt(), add -V option.Gary E. Miller2018-09-211-8/+20
|
* SPDXify the licerse references.Eric S. Raymond2018-03-081-1/+1
|
* Fixes gpscat raw-mode file-input termination.Fred Wright2017-07-201-4/+3
| | | | | | | | | | | | | | When reading from a file in packetizer mode, gpscat correctly terminates at EOF. However, in raw mode it simply hung in a loop retrying the read. This change makes it exit on EOF. This change also removes the useless buffer append logic in raw mode, which was a leftover from the old code that attempted to break on newlines (removed by commit e4cbd2daf). TESTED: Ran gpscat in raw mode on all test/daemon log files, and observed proper termination. Tested with Python 2.7 and Python 3.5.
* Fixes some pylint issues.Fred Wright2017-07-141-2/+4
| | | | | | | | | | | This doesn't fix all complaints by pylint, but significantly reduces their number. Ditto for pep8 complaints. Also makes a couple of related cosmetic edits. TESTED: Ran "scons build-all check" with no errors. Both "pylint" and "pep8" targets report fewer issues.
* gpscat: pep8 fixesGary E. Miller2017-07-011-2/+2
|
* gpscat: pep8 fixesGary E. Miller2017-07-011-9/+18
|
* Fixes gpscat to avoid the possibly missing select.poll().Fred Wright2016-12-261-5/+2
| | | | | | | | | | | | Although poll() is generally preferred to select() in C code, in Python, select.poll is considered OS-dependent, and is missing in some Python versions, notably in some OSX cases. Since gpscat is not a performance-critical application, simply using the older but more portable select.select is preferable to some fancier scheme using different methods on different OSes. TESTED: Ran gpscat on OSX with all supported Python versions.
* Makes "future imports" and Python version comments consistent.Fred Wright2016-04-101-1/+1
| | | | | | | | | | | | | | | | | | | | This makes the "future import" statements consistently specify absolute_import, print_function, and division, for maximum consistency between Python 2 and Python 3. Although absolute_import is probably a don't care for top-level programs, if unit tests were ever implemented for the programs they would be imported as modules, making the module import behavior relevant. Note that previous Python 3 fixes are a prerequisite for this change. Also makes the "polyglot comment" consistent across sources. TESTED: Using a version of SConstruct patched to use the target Python for build helpers, ran "scons build-all check valgrind-audit www/hardware.html" with all six supported Python versions. Also ran gegps, gpscat, gpsprof, xgps, and xgpsspeed with both Python 2 and Python 3.
* Fixes gpscat and test_maidenhead.py for Python 3.Fred Wright2016-04-091-8/+11
| | | | | | | | | | | | | | | | | | | | | | | This fixes two issues with gpscat in Python 3: 1) The data accumulation buffer needs to be 'bytes' rather than a 'str' in Python 3. This is easily accomplished by using bytes() as the initializer/reinitializer. 2) The hexdump routine (which was also iterating in a rather strange way) needs to obtain int values for the characters of the buffer in a 2/3-independent manner. This is easily accomplished by converting it to a bytearray, which works in both Python 2 and Python 3. This isn't exactly the same as the Python 3 'bytes' type, since it's unnecessarily mutable, but it's an easy fix that doesn't require version conditionals. Also, test_maidenhead.py works with Python 3 after updating the libraries, so the shebang line and comments now reflect that. TESTED: Ran them under Python 2.6, 2.7, and 3.2-3.5 (with appropriate builds of the extensions).
* Bump NMEA_MAX up to 102. Skytraq needs 100.Gary E. Miller2016-03-281-1/+2
|
* Restore language about 2.6 portability, clean up Python imports.Eric S. Raymond2016-03-271-1/+1
|
* Forward-port Python utilities to run polyglot under either Python 2 or 3.Eric S. Raymond2016-03-221-7/+9
| | | | | | For the moment most shebang lines still say 'python2' rather than just 'python'. This is because the client code in gps/ hasn't been touched yet; the internal imports break under Python 3 and that needs to be fixed.
* [pep8] autopep8 whitespace cleanupJon Schlueter2016-02-091-0/+3
| | | | | large scale autopep8 cleanup of several pep8 whitespace warnings
* Change Python hashbang lines to invoke 'python2'Eric S. Raymond2015-07-191-1/+1
| | | | | | We've learned that Ubuntu 15.10 will have python3 as default. The ugly transition gas befun; our only recourse is to hape that all our deployment targets have 'pyton2' do the right thing. Works on 14.10.
* gpscat: pylint cleanup. Works in live testing.Eric S. Raymond2015-02-221-2/+2
|
* More splint and pylint cleanups.Eric S. Raymond2013-11-151-5/+5
| | | | All regression tests pass with pps=tru or pps=false, PPS is live.
* Include a stream counter in the gpscat -t output.Eric S. Raymond2011-03-011-1/+1
|
* Have the Python packet-module interface export the character counter.Eric S. Raymond2011-03-011-1/+1
|
* Update gpscat usage text.Miroslav Lichvar2010-09-151-1/+1
| | | | Signed-off-by: Eric S. Raymond <esr@thyrsus.com>
* Don't crash in gpscat when started without arguments.Miroslav Lichvar2010-09-151-1/+8
| | | | Signed-off-by: Eric S. Raymond <esr@thyrsus.com>
* Merge experimental BluZ support. Code is not yet enabled or tested.Eric S. Raymond2010-06-181-2/+8
| | | | All regression tests pass, codebase splints clean.
* Remove code to terminate gpscat on bad packet.Eric S. Raymond2010-05-081-7/+1
| | | | This wasn't the documented behavior. Add a clarification, too.
* Use setup.py to handle the Python shebangs.Bernd Zeimetz2010-04-201-0/+132
|
* Substitute $PYTHON instead of assuming 'python' is python. Greg Troxel2009-12-021-129/+0
| | | | Now 'make check' runs on NetbSD, and $(prefix)/bin/gpsfake works.
* Trying to be tricky about which things we hexdumped was a lose.Eric S. Raymond2009-11-201-8/+4
| | | | | Addresses Berlios bug #14776: gpsd don't work after python upgrade from 2.5 to 2.6.
* Significant simplification of the packet-getter interface. Eric S. Raymond2009-03-271-3/+2
| | | | | | | | packet_get() now always returns nonzero when it could either read fresh data or assemble a packet from data already read and buffered -- no more returning 0 when it has assembled a packet from buffered data but can't read any new data. I suspect this may have been causing subtle bugs.
* On NMEA packets always insert \n, since the trailing \n gets hexdumped.Eric S. Raymond2009-03-091-2/+1
|
* Address tracker bug #14776 by fixing a logic error in the raw-mode dumping.Eric S. Raymond2009-02-121-3/+4
|
* Make gpscat robust against an initial bad packet fragment from a tty.Eric S. Raymond2009-02-051-7/+11
|
* Improve the packet instrumentation slightly.Eric S. Raymond2009-01-121-2/+8
|
* There is no more EOF_PACKET type, so fix gpscat.Eric S. Raymond2009-01-071-3/+1
|
* Packet state machine now recognizes RTCM3 packets correctly.Eric S. Raymond2008-07-131-2/+5
| | | | | | Update the packet regression test load. Introduce new EOF_PACKET type to signal that the packet getter sees EOF. All regression tests pass.
* Small functional improvement in gpscat -t.Eric S. Raymond2008-07-121-1/+1
|
* Fix gpscat to dump binary packets correctly. Eric S. Raymond2008-07-121-2/+2
| | | | Reenable some debugging in the packet getter, and add a bit more.
* Add verbosity option to gpscat.Eric S. Raymond2008-07-121-1/+13
|
* Fix a help string.Eric S. Raymond2007-12-061-1/+1
|
* Document the fact that the reason we accept oversized NMEA sentences is...Chris Kuethe2007-03-141-0/+1
| | | | ...that my TN-200 with firmware 2.3.2 generates those on occasion.
* While NMEA lines shouldn't be more than 82 characters, one of my receivers...Chris Kuethe2007-03-141-1/+1
| | | | | | ...is currenly emitting 84 character lines. The data is meaningful, the checksum is correct, I think someone just got a format string wrong. GPSD is throwing away usable data.
* Fix a packet-sniffer bug in comment processing. With this, gpscat acquires Eric S. Raymond2006-12-071-1/+10
| | | | some new capabilities.
* Another step toward a Python wrapper for packet.c.Eric S. Raymond2006-12-051-7/+19
| | | | | gpscat now has an option that tried to invoke it. All regression tests pass.
* Make gpscat able to set parity and stopbits.Eric S. Raymond2006-11-231-2/+23
|