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

REST Custom Sensor - Wunderground

Votes:

0

Your Vote:

Up

Down

Hello there,

Please could you provide an example of a REST query to get the Wunderground JSON to return local weather data as per the one in the photo on the blog page about it?

(https://blog.paessler.com/take-a-rest-and-monitor-everything)

Many thanks,

Daniel

api example json rest rest-custom wunderground

Created on Sep 12, 2017 2:35:16 PM by  danielearl (0) 1

Last change on Feb 14, 2018 8:38:43 AM by  Brandy Greger [Paessler Support]



2 Replies

Accepted Answer

Votes:

0

Your Vote:

Up

Down

Hello Daniel,
we appreciate your contact.

Please have a look in the following PRTG program directory:

C:\Program Files (x86)\PRTG Network Monitor\Custom Sensors\rest\

You'll locate a file called wunderground.template, which is the one used for that blog post. The first lines of the file (it's a JSON template file, which can be opened with any text editor) will tell you how to use the file:

Deviceapi.wunderground.com
Query/api/<API-KEY>/conditions/q/pws:<STATION-ID>.json
CommentsYou need a custom api key from weather underground to access the api. Documentation and a free developer key can be found on https://www.wunderground.com/weather/api/

Deploying the sensor:

Essentially, this is what you need to get the sensor working. Create a new device with any name and the following address: api.wunderground.com

Head to the website and sign up, create an account, and note your <API-KEY> and <STATION-ID>.

Now in PRTG, deploy a new Rest Custom sensor. You'll need to update the following settings accordingly:

Query/api/<API-KEY>/conditions/q/pws:<STATION-ID>.json
Rest Configurationwunderground.template

Note the limit of daily requests for your free account and adjust the sensor's scanning interval accordingly. The sensor will display the weather information based on what the Weather API reports.

Best Regards,
Luciano Lingnau [Paessler Support]

Created on Sep 13, 2017 8:56:26 AM by  Luciano Lingnau [Paessler]

Last change on Feb 14, 2018 8:50:08 AM by  Brandy Greger [Paessler Support]



Votes:

0

Your Vote:

Up

Down

Thanks very much Luciano; all up and running now! Nice feature.

Created on Sep 13, 2017 12:06:50 PM by  danielearl (0) 1



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.