Yo Mike!

On Thu, 5 Jun 2025 18:08:50 +0100
Mike via <[email protected]> wrote:

> 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.

There are no "officlal" examples of talking to gpsd from perl.

> I've happened upon Net::GPSD3 and there's a simple demon in the docs:

That is not from us.  You need to talk to them about there code.

> Sadly, this doesn't really result in anything useful.  Here's what
> tcpdump has to say about it:

Looks good to me.  What does "gpspipe -w -x 4" say?

> ?POLL;

POLL mode is much harder to use than it looks.  And never worked well.
So it is almost never used.

> 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.

You don't change that, that is output from gpsd to you.  It is telling
you that your gpsd is not connected to any GNSS receivers.  Since there
is no pinput to gpsd from a receiver, it can not tell you your location.

Rather than playing 20 questsions with you.  Maybe you should run
gpsdenuginfo, as root, and send us the output of that.  Finr it here:

https://gpsd.io/gpsdebuginfo

> There's also a watch method,

Not out code, old code, can't help you with that.

> This activates all devices without enabling streaming of reports. You
> can then say "?POLL;" to poll gpsd’s recorded data."

Let me once again dicourage use of "?POLL;"

RGDS
GARY
---------------------------------------------------------------------------
Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97703
        [email protected]  Tel:+1 541 382 8588

            Veritas liberabit vos. -- Quid est veritas?
    "If you can't measure it, you can't improve it." - Lord Kelvin

Attachment: pgpcoSrPB5ORm.pgp
Description: OpenPGP digital signature

Reply via email to