Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New Coder
    Join Date
    Sep 2012
    Posts
    47
    Thanks
    13
    Thanked 0 Times in 0 Posts

    Simple weather script (with built in graphics)

    I've been looking around for a javascript/jquery script that will allow the weather to display on the website. I've only come across two that seem to fit the bill of what I'm looking for but neither one works for some reason once I get it down from the web.

    http://codecanyon.net/item/weathersl...widget/1058937 (Which ticks me off because I paid for it)

    and

    http://www.radoslavdimov.com/jquery-...gin-digiclock/
    Which works online but as soon as I download and run, the weather will not update. This have something to do with PHP? I can not run PHP/ASP on this website. It's just a digital display running from a stand alone box.

    So... is there a simple way to display a weather widget which pulls the weather say from yahoo? Then tell javascript to display an animated picture (I'll be drawing them) dependent upon what the weather is?

    Does this make sense?

  • #2
    Senior Coder
    Join Date
    Jan 2011
    Location
    Missouri
    Posts
    3,763
    Thanks
    23
    Thanked 548 Times in 547 Posts
    Your first widget has the magic word WordPress in the description, so I would have backed away.
    Your second one uses php. So that's causing your problem.
    You say " I can not run PHP/ASP on this website." Maybe time to look for another site. Plenty of free ones out there that allow php or asp.

    I use firefox with Speed Dial and one of the sites is http://www.weather.gov/ set to my little town. There are a number of weather sites that you can open in a browser and a number of widgets that displays weather on your desk top. I got one with vista.

  • #3
    Supreme Master coder! Old Pedant's Avatar
    Join Date
    Feb 2009
    Posts
    25,020
    Thanks
    75
    Thanked 4,323 Times in 4,289 Posts
    Another free one, with several options on what gets displayed:
    http://netweather.accuweather.com/

    There are usage limitations, but a personal website shouldn't run into any of them.
    An optimist sees the glass as half full.
    A pessimist sees the glass as half empty.
    A realist drinks it no matter how much there is.

  • #4
    Senior Coder xelawho's Avatar
    Join Date
    Nov 2010
    Posts
    2,768
    Thanks
    55
    Thanked 518 Times in 515 Posts
    this thread may be of some use. If you want to use your own graphics you would have to supply your own logic, to dictate which graphic to show under which conditions , but that's not complicated

  • Users who have thanked xelawho for this post:

    themoon (05-22-2013)


  •  

    Posting Permissions

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