What is this?

This knowledgebase contains questions and answers about PRTG Network Monitor and network monitoring in general.

Learn more

PRTG Network Monitor

Intuitive to Use. Easy to manage.
More than 500,000 users rely on Paessler PRTG every day. 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

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



1 Reply

Votes:

0

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]




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.