WXforum.net

Weather Software => GRLevel X Software => Topic started by: StormChaserOH on October 12, 2021, 09:01:05 AM

Title: WeatherUnderground to GRLevelX
Post 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?
Title: Re: WeatherUnderground to GRLevelX
Post by: SoMDWx on October 13, 2021, 06:45:06 PM
Such placefiles already exists across the web....
Title: Re: WeatherUnderground to GRLevelX
Post by: StormChaserOH on October 13, 2021, 07:44:30 PM
I want to make my own for just the areas that I cover. That is why I want to make one.
Title: Re: WeatherUnderground to GRLevelX
Post by: sacreyweather on December 10, 2021, 12:03:19 PM
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
Title: Re: WeatherUnderground to GRLevelX
Post by: SteveFitz1 on December 10, 2021, 02:25:01 PM
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
Title: Re: WeatherUnderground to GRLevelX
Post by: StormChaserOH on December 10, 2021, 02:40:11 PM
I don't know how to write the php script.
Title: Re: WeatherUnderground to GRLevelX
Post by: SteveFitz1 on December 10, 2021, 02:47:36 PM
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
Title: Re: WeatherUnderground to GRLevelX
Post by: StormChaserOH on December 10, 2021, 02:55:53 PM
That doesn't help me out much since I don't know how to write the php script for GRLevelX to use WU API.
Title: Re: WeatherUnderground to GRLevelX
Post by: SteveFitz1 on December 10, 2021, 02:59:26 PM
Do you have a WU API key?
Title: Re: WeatherUnderground to GRLevelX
Post by: StormChaserOH on December 10, 2021, 03:06:22 PM
Yes, I have a WU API Key.
Title: Re: WeatherUnderground to GRLevelX
Post by: SteveFitz1 on December 10, 2021, 05:30:40 PM
I've sent you PM.

Steve