gpsd-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ✘gpscsv


From: Andreas B
Subject: Re: ✘gpscsv
Date: Tue, 18 Aug 2020 09:17:17 +0200

Hi Gary,

I like it. Any idea why time is not included in the -c SKY output?

$ python3 gpscsv -c SKY <ip:port>
# time,xdop,ydop,vdop,tdop,hdop,gdop,pdop
,0.37,0.35,0.75,0.47,0.51,1.02,0.91,

Is there any way to get number of sats seen and number of sats used out of this?

Best,
Andreas

On Mon, Aug 17, 2020 at 9:00 PM Gary E. Miller <gem@rellim.com> wrote:
>
> 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]