Author Topic: HTML code to get Wunderground Forecast  (Read 6838 times)

0 Members and 1 Guest are viewing this topic.

Offline jackson

  • Member
  • *
  • Posts: 7
HTML code to get Wunderground Forecast
« on: September 06, 2007, 01:17:37 PM »
Does anyone have some nice and easy HTML code to get the Weather Underground Forecasts and put them on my web-site? I have a Davis VP with WeatherLink. I don't like VWS, so I'm trying to build my own, nice and easy, nothing too fancy web-site with current data from the ISS and the local forecast, and maybe, if I get carried away, a local radar shot. I can barely spell HTML so, obviously, I'm struggling and looking for help. I'm a programmer by trade (SAS / SQL) so I'm not completely useless, just mostly. Thanks for your help. Glad to be a new member of the forum.

Offline ncpilot

  • Forecaster
  • *****
  • Posts: 937
    • Monkey Junction Weather
Re: HTML code to get Wunderground Forecast
« Reply #1 on: September 06, 2007, 02:36:28 PM »
I'd help you if you were a "real" programmer and used something like FORTRAN! LOL  :lol:

I'm sure the following original owners will chime in soon...

http://saratoga-weather.org/scripts.php

http://www.carterlake.org/weatherphp.php
Marc
Wilmington, NC
"Monkey Junction Weather"
Davis VP2 wireless, WeatherLink

Offline racenet

  • Forecaster
  • *****
  • Posts: 1306
    • NH Weather Data
Re: HTML code to get Wunderground Forecast
« Reply #2 on: September 06, 2007, 03:29:14 PM »
Quote from: "ncpilot"
I'd help you if you were a "real" programmer and used something like FORTRAN! LOL  :lol:


Ah, those Fortran guys had it easy!  :)  :wink:
www.theamericanflagstore.com - The American Flag Store



www.nhweatherdata.com - NH Weather Data

Offline WeatherBeacon

  • Chief
  • Forecaster
  • *****
  • Posts: 1369
    • http://www.wxbeacon.com
Re: HTML code to get Wunderground Forecast
« Reply #3 on: September 06, 2007, 03:51:59 PM »
I'll still take FORTRAN any day of the week! 8)

(Okay, so now I'm dating myself. #-o)
Mae govannen!
Kevin  (Member AMS) http://www.wxbeacon.com               Genesee County, Michigan
Hardware:  Davis Vantage Pro Wireless, Midland WR-300
Software: VWS 14.01p43, WeatherFlash, & GRLevel3

Offline Anole

  • Forecaster
  • *****
  • Posts: 585
    • http://pineislandweather.com
Re: HTML code to get Wunderground Forecast
« Reply #4 on: September 06, 2007, 04:36:26 PM »
Wimps! Where the hell did I put my 8086 reference........

Code: [Select]

mov ax, 3
int 10h
mov ax, 1003h
mov bx, 0
int 10h
mov ax, 0b800h
mov ds, ax
mov [02h], 'w'
mov [04h], 'x'
mov [06h], 'f'
mov [08h], 'o'
mov [0ah], 'r'
mov [0ch], 'u'
mov [0eh], 'm'
mov [10h], '.'
mov [12h], 'n'
mov [14h], 't'
mov [16h], 't'
mov [18h], '!'
mov cx, 12
mov di, 03h
c:  mov [di], 11101100b
    add di, 2
    loop c
mov ah, 0
int 16h
ret


Oww!! Now you guys made me go and hurt my brain!  :wink:

(not really sure if the above would actually work, it's been a long time!)

Offline carterlake

  • Senior Contributor
  • ****
  • Posts: 243
    • CarterLake.org
Re: HTML code to get Wunderground Forecast
« Reply #5 on: September 06, 2007, 07:31:02 PM »
Quote from: "ncpilot"
I'd help you if you were a "real" programmer and used something like FORTRAN! LOL  :lol:

I'm sure the following original owners will chime in soon...

http://saratoga-weather.org/scripts.php

http://www.carterlake.org/weatherphp.php


I think you've pretty much covered it. There are free NOAA versions available. WU has stated that if you want to use WU images and products, you must be a contributing weather station user.

Davis VP2 6153; Weather Display (LIVE w/ Ajax); Quickcam for Notebooks Pro; Boltek w/ Nexstorm; GRLevel3; live NOAA Radio

Offline Mark / Ohio

  • Live from Mars!
  • Forecaster
  • *****
  • Posts: 2511
    • Fairfield County Weather
Re: HTML code to get Wunderground Forecast
« Reply #6 on: September 06, 2007, 08:21:08 PM »
Quote from: "Anole"
Wimps! Where the hell did I put my 8086 reference........

Code: [Select]

mov ax, 3
int 10h
mov ax, 1003h
mov bx, 0
int 10h
mov ax, 0b800h
mov ds, ax
mov [02h], 'w'
mov [04h], 'x'
mov [06h], 'f'
mov [08h], 'o'
mov [0ah], 'r'
mov [0ch], 'u'
mov [0eh], 'm'
mov [10h], '.'
mov [12h], 'n'
mov [14h], 't'
mov [16h], 't'
mov [18h], '!'
mov cx, 12
mov di, 03h
c:  mov [di], 11101100b
    add di, 2
    loop c
mov ah, 0
int 16h
ret


Oww!! Now you guys made me go and hurt my brain!  :wink:

(not really sure if the above would actually work, it's been a long time!)


wxforum.ntt!  :-k



 :lol:  Once upon a time 20+ years ago I did some Basic and Assembly programming but no way no how now.  I never used it once after I graduated from college.
Mark 
2002 Davis VP I Wireless, WeatherLink (Serial), GRLevel3, VirtualVP, StartWatch, Weather Display, Windows 10


Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9257
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: HTML code to get Wunderground Forecast
« Reply #7 on: September 06, 2007, 08:39:56 PM »
Hi and welcome to WXForum.net!

I did a Perl script a while back that got the NWS and WU forecasts for my area, converted the resulting text to a JavaScript inclusion so on my former (free) comcast.net website, I could have the forecast.

The script is still available (and I think it still runs with current website changes), but it does require ActiveState Perl to be installed on your Windows system (or regular Perl on a Linux system).  

There's no 'easy' way to scrape off a forecast from WU, but you could use an <iframe> to include the point-printable forecast from the NWS for your areas on your page -- I've seen other sites do that when they only have HTML and JavaScript available.

If you're interested, the Perl script is at http://saratoga-weather.org/scripts-perl.php#WRHperl -- it uses the Western Region NOAA site (which has recently changed), so I don't guarantee that the NWS forecast will work.  I think the WU forecast does still work.

Best regards,
Ken

BTW.. Assembler on x86 is gnarly Anole.  I did assembler or Xerox Sigma 6 and IBM 360/370 for a while.  In 34 years of programming stuff, my favorite languages were PL/1, SAS, Turbo Pascal, Perl and now PHP.
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline SLOweather

  • Global Moderator
  • Forecaster
  • *****
  • Posts: 3456
    • Weatherelement Moline IL
Re: HTML code to get Wunderground Forecast
« Reply #8 on: September 07, 2007, 12:15:10 AM »
Quote from: "saratogaWX"
In 34 years of programming stuff, my favorite languages were PL/1, SAS, Turbo Pascal, Perl and now PHP.


Now if I could just find a microcontroller that programs in PHP....

(Would that be a kluge, or what??)

Offline Ravenstar

  • Senior Contributor
  • ****
  • Posts: 180
    • http://veronaweather.com
Re: HTML code to get Wunderground Forecast
« Reply #9 on: September 07, 2007, 02:25:40 AM »
Oracle with embedded C++ by far my fav, was even fun using on the job. Perl for home. Whatever happened to you COBOL programmers???  :roll:


Vantage pro 2 (wireless)

Offline Anole

  • Forecaster
  • *****
  • Posts: 585
    • http://pineislandweather.com
Re: HTML code to get Wunderground Forecast
« Reply #10 on: September 07, 2007, 06:16:35 AM »
Quote from: "Mark / Ohio"

wxforum.ntt!  :-k


BWAH!! I typoed the easy part.  :lol:

Offline jackson

  • Member
  • *
  • Posts: 7
Re: HTML code to get Wunderground Forecast
« Reply #11 on: September 07, 2007, 08:59:12 AM »
Thanks Ken. I'll give it a try.

Offline ncpilot

  • Forecaster
  • *****
  • Posts: 937
    • Monkey Junction Weather
Re: HTML code to get Wunderground Forecast
« Reply #12 on: September 07, 2007, 10:21:49 AM »
While going down memory lane, I recall entering the boot sequence on toggle switches on a really old DEC PDP 11 series mini... it still had magnetic core memory... that's when I first learned that a bad power supply can cause all kinds of strange errors that lead you down the wrong diagnostic path...
Marc
Wilmington, NC
"Monkey Junction Weather"
Davis VP2 wireless, WeatherLink

Offline weatherforyou

  • Forecaster
  • *****
  • Posts: 545
  • My weather is on WeatherForYou.com. Is yours?
    • http://www.weatherforyou.com
Re: HTML code to get Wunderground Forecast
« Reply #13 on: September 07, 2007, 06:13:37 PM »
Joe Torsitano


Offline Anole

  • Forecaster
  • *****
  • Posts: 585
    • http://pineislandweather.com
Re: HTML code to get Wunderground Forecast
« Reply #14 on: September 07, 2007, 09:11:55 PM »
Quote from: "ncpilot"
While going down memory lane, I recall entering the boot sequence on toggle switches on a really old DEC PDP 11 series mini... it still had magnetic core memory... that's when I first learned that a bad power supply can cause all kinds of strange errors that lead you down the wrong diagnostic path...


My favorite was one of our switching systems at Northern Telecom. The good old NT 40. Hex thumbwheel and a push button for entering codes and a two digit hex display for the results. That I/O was primarily useful for troubleshooting dead systems. You'd get a solid indicator followed by a flashing indicator to indicate the error codes. Then you had to look it up and figure out what to do next to fix it. No on screen display to look at since nothing would come up on the display until the system was up. Looking back at it now, it was certainly much more fun and challenging than today's systems which actually tell you in plain english (well sort of) what's wrong.

I spent a good part of my career at Nortel doing emergency and disaster recovery work helping telcos recover dead systems when everything they tried failed or when tornados, floods, earthquakes and hurricanes wiped equipment off the map. One of my proudest moments was walking a janitor through the NT 40 boot sequence to get a system back up. It was no easy feat mind you but the guy was great and did everything exactly as I told him and most folks in Ephrata, PA never even knew their telephones were down.

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9257
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: HTML code to get Wunderground Forecast
« Reply #15 on: September 07, 2007, 09:36:04 PM »
Quote from: "weatherforyou"
http://www.weatherforyou.com/snapshots/

;)


Good point Joe!

Jackson, you should take a look at the graphic forecasts offered by WeatherForYou -- it would be a lot simpler to add one of Joe's graphics than to fetch, munge, upload a scraped-off Wunderground forecast ;-)

BTW.. when I was comparing Wunderground v.s. NWS point forecast, I found they matched pretty consistently +/- 1 F for my area (using the point-printable NWS forecast).

Best regards,
Ken
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline jackson

  • Member
  • *
  • Posts: 7
Re: HTML code to get Wunderground Forecast
« Reply #16 on: September 07, 2007, 09:41:42 PM »
Joe / Ken - That's what I'm talking about. Some nice, easy code for a beginner like myself. Thanks a lot.

Offline lulu836

  • Linda
  • Member
  • *
  • Posts: 10
Re: HTML code to get Wunderground Forecast
« Reply #17 on: September 14, 2007, 10:26:31 PM »
Quote from: "Ravenstar"
. Whatever happened to you COBOL programmers???  :roll:


We're still kicking! :D

Offline Ravenstar

  • Senior Contributor
  • ****
  • Posts: 180
    • http://veronaweather.com
Re: HTML code to get Wunderground Forecast
« Reply #18 on: September 16, 2007, 09:26:39 AM »
Quote from: "lulu836"
Quote from: "Ravenstar"
. Whatever happened to you COBOL programmers???  :roll:


We're still kicking! :D


When you kick like that does it stir up the moth balls??


Vantage pro 2 (wireless)

 

anything