[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
✘gpscsv
From: |
Gary E. Miller |
Subject: |
✘gpscsv |
Date: |
Mon, 17 Aug 2020 12:00:13 -0700 |
Yo All!
Many end users seem to have difficulty with the statement:
"It is just JSON, import it!"
To make export of gpsd JSON easier, I just created gpscsv. Not surprising
that it takes gpsd JSON and outputs csv.
$ contrib/gpscsv
time,lat,lon,altHAE
2020-08-17T18:51:53.000Z,44.0687686,-121.3142749,1088.794,
2020-08-17T18:51:54.000Z,44.0687659,-121.3142797,1088.363,
2020-08-17T18:51:55.000Z,44.068765,-121.3142819,1087.858,
[...]
Or, maybe you want different fields, in a different order:
$ contrib/gpscsv -f lat,lon,altMSL,sep,time
lat,lon,altMSL,sep,time
44.0689005,-121.3142571,1102.692,50.191,2020-08-17T18:54:21.000Z,
44.0689033,-121.3142541,1102.416,50.191,2020-08-17T18:54:22.000Z,
44.0689016,-121.3142559,1102.162,50.191,2020-08-17T18:54:23.000Z,
44.0689059,-121.3142574,1101.977,50.191,2020-08-17T18:54:24.000Z,
If nothing else, an easy way to grab data to use with gnuplot.
Or, maybe you want the SKY messages off another host:
$ contrib/gpscsv -c SKY pi
class,device,xdop,ydop,vdop,tdop,hdop,gdop,pdop,satellites
SKY,/dev/ttyUSB0,0.61,0.62,1.49,0.92,0.86,1.96,1.73,[<dictwrapper: {'PRN': 2,
'el': 6.0,
[...]
Needless to say that one is a mess. Not sure how to handle JSON arrays...
There are more options, like [-n count] to quite after count samples.
"Not Ready For Prime Time"(tm), it will mutate a lot for a while, so is
in contrib/
Ideas anyone?
RGDS
GARY
---------------------------------------------------------------------------
Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97703
gem@rellim.com Tel:+1 541 382 8588
Veritas liberabit vos. -- Quid est veritas?
"If you can't measure it, you can't improve it." - Lord Kelvin
pgpgudFPsOx0S.pgp
Description: OpenPGP digital signature
- ✘gpscsv,
Gary E. Miller <=