Decoding the Guppy LoRaWAN® Payload
You can find the full payload specification and example decoder here.
The decoder below is written in Java Script and may be freely used as example code. To inspect the code, open this link and inspect the Java Script source. Usually this is done with F12 in your browser.
Note that the "xyz" elements of the output are derived from the inclinationDeg and azimithDeg. The derived fields are not sent by the Guppy.
Guppy LoRaWAN Uplink Decoder