On Thursday, June 5, 2025 10:08:50 AM Pacific Daylight Time Mike via wrote:
> Hi all,
> 
> I've recently found myself trying to write a PERL script to query GPSd,
> with the intention of tying it into Apache, so that one might be able to
> fetch GPS coordinates for a page.
> 
> I've happened upon Net::GPSD3 and there's a simple demon in the docs:
> 
> use Net::GPSD3;
> use Data::Dumper qw{Dumper};
> my $gpsd=Net::GPSD3->new;
> my $poll=$gpsd->poll;
> print Dumper($poll);
> 
> Sadly, this doesn't really result in anything useful.  Here's what
> tcpdump has to say about it:

:::snip:::

> I think that perhaps the bit where it says "active:0" is a bit of an
> area of suspecion, although I don't see any way to change that.
> 
> There's also a watch method, $gpsd->watch; which does actually get a lot
> of the GPS data, on the downside, it sits in a loop, printing the data
> to screen, which isn't exactly the effect that I'm looking for.
> 
> The docs over at https://gpsd.gitlab.io/gpsd/client-howto.html have this
> to say:
> 
> "?WATCH={"enable":true}
> 
> This activates all devices without enabling streaming of reports. You
> can then say "?POLL;" to poll gpsd’s recorded data."
> 
> Which implies one has to issue a WATCH before a POLL, this seems to
> contradict the Net::GPSD3 docs, which give an example with just a poll
> method, which TCPdump shows doesn't issue a WATCH.
> 
> Can anyone please offer any advise on this?

The files at CPAN are all 11y5mish old; I do not suppose it is possible thing 
have changed in that time. It also looks like some joker touched the 
directories as the timestamps there are only six or so years old.

Reality trumps the documentation everywhere.



Reply via email to