WXforum.net
Weather Software => GRLevel X Software => Topic started by: StormChaserOH on October 12, 2021, 09:01:05 AM
-
Does anyone know how to write scripts that will pull temperature data from WeatherUnderground for a Placefile for GRLEvelX?
-
Such placefiles already exists across the web....
-
I want to make my own for just the areas that I cover. That is why I want to make one.
-
As Jim says, there are placefiles that already exist, and even if you could get that info from WU, they most likely have it patented or its equivalent.
http://www.redteamwx.com/grlevelx.html - Donationware site that has such placefiles available, as does Allisonhouse (requires a subscription).
Writing the script is the easy part, getting access to said data is the difficult and expensive part, as you would need access to a NOAAPort system to get said data.
John
-
I want to make my own for just the areas that I cover. That is why I want to make one.
You'll first need to obtain an API key in order to get the data from WU. Then you can write a script using the WU API and get data from as many of the WU sites you want. You'll want to save the results in a file so you can stay within WU's API call limit. Finally, you can create a placefile that pulls the data from the file you save and display it on your GRLevelX map.
I've actually done this and it's not difficult if you're able to write PHP scripts.
Steve
-
I don't know how to write the php script.
-
Here's a good place to start learning about writing a WU API script: https://github.com/initialstate/wunderground-sensehat/wiki/Part-1.-How-to-Use-the-Wunderground-API (https://github.com/initialstate/wunderground-sensehat/wiki/Part-1.-How-to-Use-the-Wunderground-API)
Steve
-
That doesn't help me out much since I don't know how to write the php script for GRLevelX to use WU API.
-
Do you have a WU API key?
-
Yes, I have a WU API Key.
-
I've sent you PM.
Steve