What is this?

This knowledgebase contains questions and answers about PRTG Network Monitor and network monitoring in general. You are invited to get involved by asking and answering questions!

Learn more

PRTG Network Monitor

Intuitive to Use. Easy to manage.
300.000 administrators have chosen PRTG to monitor their network. Find out how you can reduce cost, increase QoS and ease planning, as well.

Free Download

Top Tags


View all Tags

Extract Minutes and Seconds GPS coordinates from Message

Votes:

0

Your Vote:

Up

Down

As a disclaimer... the devices I monitor are mobile and I need to be able to derive the GPS coordinates from an onboard system.

My Question: I have a custom sensor that can give me the Latitude and Longitude, but the onboard system only provides it in the degrees decimal minutes format, and I need it in the decimal degrees format. Using the Regular Expression coding, I can only get the degrees, as the message has spaces and other non-numerical data. Example: 41 19' 42.465"

Is there any way to derive this data that includes the spaces and tic marks? Eventually I will take that data and push it to the parent group's location information via API.

api geo-maps gps

Created on Aug 5, 2015 8:31:19 PM by  JWatson (0) 1



1 Reply

Votes:

0

Your Vote:

Up

Down

In the case you have a problem with the correct regex here is a link

http://regexr.com/?32vj8

to a regex that extracts degrees minutes and seconds from a string.

Created on Aug 7, 2015 9:26:44 AM by  Stefan Messner [Paessler Support]



Please log in or register to enter your reply.


Disclaimer: The information in the Paessler Knowledge Base comes without warranty of any kind. Use at your own risk. Before applying any instructions please exercise proper system administrator housekeeping. You must make sure that a proper backup of all your data is available.