Net::G...::POLL(3pm)
πΈ NAME πΈ
Net::GPSD3::Return::POLL β Net::GPSD3 Return POLL Object
okay so real quick, bestie β this is from the User Contributed Perl Documentation collection, and it's the page for Net::GPSD3::Return::POLL. Let's get into it π
β¨ SYNOPSIS β¨
use Net::GPSD3;
use Data::Dumper qw{Dumper};
my $gpsd = Net::GPSD3->new;
my $poll = $gpsd->poll;
print Dumper($poll);
like. that's it. that's the whole vibe. create the object, poll it, dump it, slay β¨
π DESCRIPTION π
This bad boy gives you a Perl object interface to the POLL object that the GPSD daemon hands back to you. It's giving "wrapper energy," and honestly? Obsessed. π«Ά
π METHODS π
class
Returns the object class. periodt.
string
Returns the JSON string. the raw tea, unfiltered β
parent
Return the parent Net::GPSD3 object. iykyk β it's the mama object π§
time
timestamp
datetime
active
not me leaving these four with absolutely zero description π the original page literally just lists them and says nothing else, so that's all we got. no cap.
fix, tpv
Returns the first fix from the Fixes array, or undef if there isn't one. if it's empty, it's giving nothing, and that's valid.
my $fix=$poll->fix #isa Net::GPSD3::Return::TPV or undef
Note: I will try to keep this method consistent β author's words, not mine, but we respect the commitment π
Fixes
Object wrapper around JSON data. it's the whole array, wrapped up cute:
my $fix=$poll->Fixes #isa [] of Net::GPSD3::Return::TPV objects
my @fix=$poll->Fixes #isa () of Net::GPSD3::Return::TPV objects
Note: I'm not sure why this is an array from the protocol but do not count on this staying the same. β οΈ so like, don't build your whole personality around it, bestie.
sky
Returns the first object from the Skyviews array, or undef if there are none. main character of the sky views, basically.
my $sky=$poll->sky #isa Net::GPSD3::Return::SKY or undef
Note: I will try to keep this method consistent π
Skyviews
Object wrapper around JSON data:
my $sky=$poll->Skyviews #isa [] of Net::GPSD3::Return::SKY objects
my @sky=$poll->Skyviews #isa () of Net::GPSD3::Return::SKY objects
Note: I'm not sure why this is an array from the protocol but do not count on this staying the same. β οΈ fr fr, don't get attached.
Gst
Object wrapper around JSON data:
my $gst=$poll->Gst #isa [] of Net::GPSD3::Return::GST objects
my @gst=$poll->Gst #isa () of Net::GPSD3::Return::GST objects
Note: I'm not sure why this is an array from the protocol but do not count on this staying the same. β οΈ same warning, same energy, don't @ me.
π BUGS π
Found something cursed? Log it on RT and send it to the gpsd-dev email list. tell them everything, bestie, they wanna know π
π«Ά SUPPORT π«Ά
DavisNetworks.com supports all Perl applications including this package. iconic behavior, honestly π
Also β try the gpsd-dev email list. the girlies there know things.
π AUTHOR π
Michael R. Davis
CPAN ID: MRDVT
STOP, LLC
domain=>michaelrdavis,tld=>com,account=>perl
http://www.stopllc.com/
the author himself, giving us the whole contact card. respect the craft π
π COPYRIGHT π
This program is free software licensed under the... The BSD License π
The full text of the license can be found in the LICENSE file included with this module. go read it, it's right there, i believe in you.
π SEE ALSO π
Net::GPSD3Net::GPSD3::Return::Unknown::Timestamp
and that's the whole page, bestie!! π
β¨ written by the lovely folks behind perl v5.34.0, dated 2022-06-16, and part of that Net::G...::POLL(3pm) moment we all know and love. go forth and poll responsibly π¦π
π¦ where this page comes from
- debian bookworm: libnet-gpsd3-perl 0.19-2 Β· BSD-3
- debian trixie: libnet-gpsd3-perl 0.19-2 Β· BSD-3
- ubuntu noble: libnet-gpsd3-perl 0.19-2 Β· BSD-3
- ubuntu resolute: libnet-gpsd3-perl 0.19-2 Β· BSD-3
- ubuntu stonking: libnet-gpsd3-perl 0.19-2 Β· BSD-3
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms