Author Topic: Html from Wunderground? RESOLVED!  (Read 8839 times)

0 Members and 1 Guest are viewing this topic.

Offline m77

  • Forecaster
  • *****
  • Posts: 878
Html from Wunderground? RESOLVED!
« on: December 18, 2009, 02:48:53 PM »
Is there a way to embed the graphs that are made in Wunderground into a website using html?
« Last Edit: December 20, 2009, 03:52:32 AM by muppet77 »
Weatherlink ip, Vantage Vue,

Offline DaculaWeather

  • WxElement panel
  • Forecaster
  • *****
  • Posts: 3206
    • North Georgia Weather
Re: Html from Wunderground?
« Reply #1 on: December 18, 2009, 03:09:48 PM »
Which graphs are you talking about? For your weather station? Like these? http://www.daculaweather.com/daculahistory.php
« Last Edit: December 18, 2009, 03:12:24 PM by DaculaWeather »

Offline m77

  • Forecaster
  • *****
  • Posts: 878
Re: Html from Wunderground?
« Reply #2 on: December 18, 2009, 03:44:14 PM »
Yes! Is it possible to separate the graphs and also I am interested in the other info too. I can embed the whole page as html but it looks messy and has ads around it.
Weatherlink ip, Vantage Vue,

Offline Bushman

  • Forecaster
  • *****
  • Posts: 7549
    • Eagle Bay Weather
Need low cost IP monitoring?  http://wirelesstag.net/wta.aspx?link=NisJxz6FhUa4V67/cwCRWA or PM me for 50% off Wirelesstags!!

Offline SlowModem

  • Weather at the speed of dialup!
  • Forecaster
  • *****
  • Posts: 6641
  • WX @ 26.4 kbs
    • Watts Bar Weather
Re: Html from Wunderground?
« Reply #4 on: December 18, 2009, 03:53:18 PM »
Dacula's graphs are  located here:

<img src="http://www.wunderground.com/cgi-bin/wxStationGraphAll?day=18&amp;year=2009&amp;month=12&amp;ID=KGADACUL3&amp;width=500&amp;showsolarradiation=1&amp;showuv=1&amp;showtemp=1&amp;showpressure=1&amp;showwind=1&amp;showwinddir=1&amp;showrain=1&amp;type=type=3" alt="Historical Graphs" id="wxHistoryImage" />

I had wondered about that, too.  I can read what the code is doing, but what tells it to change daily (like where it says day=18)?  My html is really weak, so please bear with me.
Greg Whitehead
Ten Mile, TN USA

Offline DaculaWeather

  • WxElement panel
  • Forecaster
  • *****
  • Posts: 3206
    • North Georgia Weather
Re: Html from Wunderground?
« Reply #5 on: December 18, 2009, 04:30:15 PM »
I use a php script to get my history from Wunderground. They have so many graphs up there, I just wasn't sure which ones he was referring to!


Offline m77

  • Forecaster
  • *****
  • Posts: 878
Re: Html from Wunderground?
« Reply #6 on: December 18, 2009, 04:40:57 PM »
Yes sorry the personal weather station graphs. If you know the station I'd how to you turn that into xml that can be posted into an frame? Also how could you get the customizable archival search option separated out from the rest of the page?
Apologies as i am a novice's novice.
Weatherlink ip, Vantage Vue,

Offline DaculaWeather

  • WxElement panel
  • Forecaster
  • *****
  • Posts: 3206
    • North Georgia Weather
Re: Html from Wunderground?
« Reply #7 on: December 18, 2009, 04:53:25 PM »
Do you just want individual graphs, or all of the data? Picking pieces will be hard.
The php script takes exactly what you see up there for history, and leaves out all the other links, ads, etc, and gives only the history. On my site, the script is loaded and displayed into an iframe. It's very clean and simple. Go to http://www.daculaweather.com/misc.php and the next to last item in the left menu (Dacula Weather History) is the php history script.

Offline Bushman

  • Forecaster
  • *****
  • Posts: 7549
    • Eagle Bay Weather
Re: Html from Wunderground?
« Reply #8 on: December 18, 2009, 05:01:57 PM »
Steve's right - it will be hard for a novice unless you are really familiar with php.   You can grab snippets from other sites if you know Regex (regular expressions) and use PageScrape (which is what I do).  But that ain't easy either.  I would suggest you look elsewhere than WU for your graphs and data.
Need low cost IP monitoring?  http://wirelesstag.net/wta.aspx?link=NisJxz6FhUa4V67/cwCRWA or PM me for 50% off Wirelesstags!!

Offline ironton

  • Contributor
  • ***
  • Posts: 144
    • Irontonwebcams /Weather
Re: Html from Wunderground?
« Reply #9 on: December 18, 2009, 05:18:38 PM »
I have a page that uses the Weather Underground graphs.  The page is html with java script to change which graph is the shown.  I am not sure if this is what you want. 
My page is here:
http://irontonwebcams.com/2007wx.htm

Davis VP2 using VWS
-----
http://www.charlevoixweather.com using Cumulus

Offline m77

  • Forecaster
  • *****
  • Posts: 878
Re: Html from Wunderground?
« Reply #10 on: December 19, 2009, 01:16:36 AM »
Steve that is great. How can I get some thing like that?
Weatherlink ip, Vantage Vue,

Offline jmcmurry

  • Jim McMurry
  • Forecaster
  • *****
  • Posts: 528
  • Davis Vantage Pro 2 Plus Wireless.
    • Juneau County Weather
Re: Html from Wunderground?
« Reply #11 on: December 19, 2009, 07:04:25 AM »
If you are looking for both the graphs and data, I think the script you're looking for is available at http://jcweather.us/scripts.php.  There are examples there to look at.

- Jim

Forum Search and Google Can be Your Best Friends

Offline m77

  • Forecaster
  • *****
  • Posts: 878
Re: Html from Wunderground?
« Reply #12 on: December 19, 2009, 08:05:55 AM »
Thanks mate.

Does it involve downloading a zip file of stuff?

I thought that it would just be code that I can change the station Id for and paste it in or have I got it wrong?

An example in this thread looks good but only ever gives graphs for the 18th. December?
Weatherlink ip, Vantage Vue,

Offline up10ad N9RJH

  • USA Weather Finder
  • WxElement panel
  • Forecaster
  • *****
  • Posts: 578
  • Station will be back up someday...
    • Forecaster without a site
Re: Html from Wunderground?
« Reply #13 on: December 19, 2009, 09:24:39 AM »
I use Jim's script on DeltaWeatherCam to pull from WU. [Thanks Jim!] 

The graphs on WU are dynamically generated by the html code (the cgi-bin part).  WU doesn't keep the graphs as image files, they just store the raw data and generate the graphs and other elements as needed for every web visitor.  Because of that you will have to include the date you want every time you request the graphs.  This is the reason that php is used rather than html. 
Rick (N9RJH)
Have you joined USAWeatherFinder.com yet?

Offline m77

  • Forecaster
  • *****
  • Posts: 878
Re: Html from Wunderground?
« Reply #14 on: December 19, 2009, 09:49:37 AM »
oh, i was just after something that i could easily cut and paste in - for example like the code for the WU sticker, but except for the table of historical data or the graphs (that auto changes the date).
« Last Edit: December 19, 2009, 09:52:33 AM by muppet77 »
Weatherlink ip, Vantage Vue,

Offline Bushman

  • Forecaster
  • *****
  • Posts: 7549
    • Eagle Bay Weather
Re: Html from Wunderground?
« Reply #15 on: December 19, 2009, 10:21:01 AM »
Why not just use the graphs your weather station software generates??
Need low cost IP monitoring?  http://wirelesstag.net/wta.aspx?link=NisJxz6FhUa4V67/cwCRWA or PM me for 50% off Wirelesstags!!

Offline m77

  • Forecaster
  • *****
  • Posts: 878
Re: Html from Wunderground?
« Reply #16 on: December 19, 2009, 10:35:54 AM »
As I think this means 24.7 pc which I cannot do. I am trying to get WL ip to feed data to wu so would like some sort of internet graph option.
Weatherlink ip, Vantage Vue,


Offline SlowModem

  • Weather at the speed of dialup!
  • Forecaster
  • *****
  • Posts: 6641
  • WX @ 26.4 kbs
    • Watts Bar Weather
Re: Html from Wunderground? RESOLVED!
« Reply #18 on: December 20, 2009, 04:45:04 AM »
That's great.  Thanks.   =D&gt; \:D/
Greg Whitehead
Ten Mile, TN USA

Offline m77

  • Forecaster
  • *****
  • Posts: 878
Re: Html from Wunderground? RESOLVED!
« Reply #19 on: December 20, 2009, 05:38:23 AM »
Weatherlink ip, Vantage Vue,

Offline SlowModem

  • Weather at the speed of dialup!
  • Forecaster
  • *****
  • Posts: 6641
  • WX @ 26.4 kbs
    • Watts Bar Weather
Re: Html from Wunderground? RESOLVED!
« Reply #20 on: December 20, 2009, 08:49:40 AM »
revised page
Greg Whitehead
Ten Mile, TN USA

Offline m77

  • Forecaster
  • *****
  • Posts: 878
Re: Html from Wunderground? RESOLVED!
« Reply #21 on: December 20, 2009, 11:10:59 AM »
Nice one.

I just need custom search dates in html then I will be a happy bunny.
Weatherlink ip, Vantage Vue,

Offline Bushman

  • Forecaster
  • *****
  • Posts: 7549
    • Eagle Bay Weather
Re: Html from Wunderground? RESOLVED!
« Reply #22 on: December 20, 2009, 12:31:55 PM »
Well that takes all the fun out of it!  :)  Nice.  Thanks for the idea.
Need low cost IP monitoring?  http://wirelesstag.net/wta.aspx?link=NisJxz6FhUa4V67/cwCRWA or PM me for 50% off Wirelesstags!!

Offline WeatherGoose

  • Forecaster
  • *****
  • Posts: 603
  • LIVE from the Southern Sierra Nevada!
    • Sierra Springs Village - MADIS Station D2149 - Bass Lake Ca.
Re: Html from Wunderground?
« Reply #23 on: December 20, 2009, 01:26:44 PM »
RESOLVED!

how cool is this?!

 \:D/ \:D/

AWESOME FIND!!  =D&gt;

This is SO FUNNY, as I had just such a project on my TO-DO list, but I was dreading having to dig out the code and everything myself!  SO GLAD that someone else already went through all that trouble!  LOL!

Only problem I am finding with these with my PWS data is that my SOLAR and UV are not included in any of the main graph sections even though I have checked the boxes for them to be included.  I used all the available options, and did see the SOLAR and UV graphs on the LAST SIX MONTHS versions, but there is no data in them.  :-k

Might drop a line to the developer since I see references in the code, but it may be wrong or WU changed the calls for those and this guy hasn't realized it?

I'll report back on that specific issue if I find out anything.

Meanwhile... Here is my version... Took me less than 10 minutes to make this page.  I LOVE short projects!  LOL!

http://basslake-weather.com/WU_graphs.html

Thanks again for sharing this time saver!   \:D/


HARDWARE: Davis VP2 wireless w/daytime FARS - Logitech Quickcam Pro 9000 - Apple 24" iMAC - OSX 10.6.2
SOFTWARE: Lightsoft Weather Center for Mac OSX -  EVOcam 2.6.5