Results 1 to 5 of 5

Thread: weather script

  1. #1
    Join Date
    Jan 2007
    Location
    Davenport, Iowa
    Posts
    1,720
    Thanks
    82
    Thanked 90 Times in 88 Posts

    Default weather script

    I am thinking of adding a weather script to my site that forecasts the next 5 days or so. Has anyone tried this or know of any good ones out there?
    Last edited by james438; 12-27-2012 at 11:04 PM.
    To choose the lesser of two evils is still to choose evil. My personal site

  2. #2
    Join Date
    Jan 2011
    Location
    Southeastern CT
    Posts
    596
    Thanks
    43
    Thanked 28 Times in 28 Posts

    Default

    Most of the websites like weather.com,wunderground.com,accuweather.com all have widgets you ca add to a website.In most cases you have to register with them and in some cases provide your website where the code will be placed.here are a few of my tests to see what some look like:
    http://www.web-user.info/tools/weath.../channel2.html
    http://www.web-user.info/tools/weather/usa/1.html
    http://www.web-user.info/tools/weather/acc/acu1.html
    http://www.web-user.info/tools/weather/wundergound.html
    http://www.web-user.info/tools/weather/testing.html
    http://www.web-user.info/tools/weather/1.html

    As you can see there are a few options available
    Thanks,

    Bud

  3. #3
    Join Date
    Sep 2007
    Location
    The Netherlands
    Posts
    1,366
    Thanks
    31
    Thanked 141 Times in 136 Posts
    Blog Entries
    32

    Default

    Or you just statically include an existing forecasting site in your page, like this:
    Code:
    <div style="position: fixed; left:10px;top: 10px; right: 10px; height:300px">
    <div style="position: relative; text-align: center">The weather brought to you by <i>http://www.weather.com/weather/today/USNY0996</i></div>
    <iframe src="http://www.weather.com/weather/today/USNY0996" style="position: absolute; width: 100%; height: 100%"></iframe>
    </div>
    <div style="position: relative; top: 350px; pdding:20px; font-size: verdana">
    Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.<br><br>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.<br><br>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.<br><br>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.<br><br>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.<br><br>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.<br><br>
    </div>
    Or dynamically, using a link:
    Code:
    <div id="weather"></div>
    <a href="javascript: void(0)" onclick="document.getElementById('weather').innerHTML='<div style=\'position: absolute; left: 50px; top: 50px; right: 50px; bottom: 80px; border:1px solid black\'><div style=\'position: relative; float: right; cursor: pointer\' onclick=\'document.getElementById(&quot;weather&quot;).innerHTML=&quot;&quot;\'>CLOSE<\/div><br><iframe src=\'http://www.weather.com/weather/today/USNY0996\' style=\'position: absolute; width: 100%; height: 100%\' frameborder=\'0\'><\/iframe><\/div>'">The weather brought to you by <i>http://www.weather.com</i></a>

  4. #4
    Join Date
    May 2012
    Location
    Hitchhiking the Galaxy
    Posts
    1,013
    Thanks
    47
    Thanked 139 Times in 139 Posts
    Blog Entries
    1

    Default

    "Most good programmers do programming not because they expect to get paid or get adulation by the public, but because it is fun to program." - Linus Torvalds
    Anime Views Forums
    Bernie

  5. #5
    Join Date
    Jan 2007
    Location
    Davenport, Iowa
    Posts
    1,720
    Thanks
    82
    Thanked 90 Times in 88 Posts

    Default

    Thank you for all of the great information here. After looking through everything I decided to go with the plugin from accuweather.com which is very customizable and what I am looking for. I have added it to my admin page for easy reference.
    To choose the lesser of two evils is still to choose evil. My personal site

Similar Threads

  1. PHP with XML? Google Weather
    By nikomou in forum PHP
    Replies: 1
    Last Post: 12-09-2008, 04:50 PM
  2. Random Weather Generator Script
    By Mydnyte Syn in forum Looking for such a script or service
    Replies: 1
    Last Post: 09-16-2008, 01:45 AM
  3. Weather Code i need some help
    By queerfm in forum PHP
    Replies: 0
    Last Post: 08-29-2006, 11:05 AM
  4. weather indicator
    By erics in forum HTML
    Replies: 1
    Last Post: 06-20-2006, 08:02 PM
  5. Weather Script?
    By Maniac0908 in forum JavaScript
    Replies: 2
    Last Post: 01-24-2005, 08:04 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •