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

REST Custom Sensor - Wunderground

Votes:

0

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

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



6 Replies

Accepted Answer

Votes:

0

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

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

Created on Sep 13, 2017 12:06:50 PM



Votes:

0

Does this still work? Having issues getting it to connect to ours.

Thanks!

Created on Nov 17, 2022 8:43:52 PM



Votes:

0

Hi David,

Thanks for contacting us.

- What version of PRTG are you currently running? - Which sensor are you using for REST is it REST Custom or REST Custom v2?

If you have issues with REST Custom V2 sensor would be good to address this issue via a ticket. You can submit one using the email [email protected]

Kind regards,

Miguel Aikens

Created on Nov 22, 2022 6:49:41 PM by  Miguel Aikens [Paessler Technical Support]



Votes:

0

HI Miguel,

Thanks for the response. We are using version 22.3.79.2108. I just activated the Beta Sensor to get access to the Rest V2 sensor, the required fields with the V2 sensor don't seem to line up with the information above. It also on the V2, it does not seem to give us access to select the weather underground template. Let me know if there are any other suggestions, otherwise I will open a ticket for further review with support.

Created on Nov 26, 2022 7:54:04 PM



Votes:

0

Hi David,

This guide doesnt apply to the REST custom v2 sensor, only to the REST custom sensor If you select that one it will allow you to use the wunderground template.

Created on Dec 1, 2022 4:18:22 AM by  Jonathan Mena [Paessler Technical 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.