Results 1 to 10 of 10

Thread: Adding a Weather Mod....

  1. #1
    Join Date
    May 2007
    Location
    NJ, United States
    Posts
    1,651

    Default Adding a Weather Mod....

    Does anyone know how I could add a block onto my site, where a user can input their zip code and see current weather conditions in their area?

  2. #2
    Join Date
    Jun 2002
    Location
    Winnipeg Canada
    Posts
    4,913

    Default

    You can try Weather On Your Website - add weather.com weather to your website

    Or Yahoo! Weather

    OR The Weather Network - Weather Centre - WeatherButton - Overview

    I tried searching for a weather widget based on geolocation but wasn't able to find one right away. That would be the ticket as users wouldn't have to enter any information.

  3. #3
    Join Date
    May 2007
    Location
    NJ, United States
    Posts
    1,651

    Default

    I know there are some great minds here on this site... Anyone think they might be able to create a geolocation widget?? I'd be willing to pay for it

  4. #4
    Join Date
    Nov 2004
    Posts
    1,822

    Default

    Weather Forecasts - UK Weather News - Netweather.tv does weather by latitude and longitude.

    all you need is a service that returns a lat/lon for a visitors IP, they are around, or ou could make your own, by downlaoding a database of IPs/ locations...
    Main IndexU sites : | Campsite Directory | Tourist Guide | Places2B | AfterDirectory <-- Half price submission using coupon DP50 (from just $11 premium, and $10 basic permanent )

  5. #5
    Join Date
    May 2007
    Location
    NJ, United States
    Posts
    1,651

    Default

    Quote Originally Posted by inspireme View Post
    Weather Forecasts - UK Weather News - Netweather.tv does weather by latitude and longitude.

    all you need is a service that returns a lat/lon for a visitors IP, they are around, or ou could make your own, by downlaoding a database of IPs/ locations...
    It sounds easy enough... But for those of us who are only "semi-smart", how would we do something like that?

  6. #6
    Join Date
    Jun 2002
    Location
    Winnipeg Canada
    Posts
    4,913

    Default

    Just as a further to, I've been checking out ip2location databases.

    If you're going to install your own, they aren't small and they aren't cheap. I just got a hold of one sample which lists IP COUNTRY REGION CITY LATITUDE LONGITUDE ISP DOMAIN. This is the type of IP2Location database you want as it breaks down IP's by city, rather than just by country. This database costs $799US per year.

    This database is 466MB. Not for the shared account let me tell you.

    So looking at it, the best way would be to use an external service to pull your lat/long from. I haven't looked at any yet but I'm sure they're not free. You would probably pay some type of subscription fee monthly based on the number of requests.

    Of course to lower the number of requests, you could code the users lat/long in a cookie, rather than requesting it on each page. But that's a different part of the story.

    I was looking over at fraudlabs.com and they offer an XML based IP2location service, but their pricing isn't available without creating an account. I don't want to make an account just to find out their prices so if you're interested take a look over there.

  7. #7
    Join Date
    Nov 2004
    Posts
    1,822

    Default

    Main IndexU sites : | Campsite Directory | Tourist Guide | Places2B | AfterDirectory <-- Half price submission using coupon DP50 (from just $11 premium, and $10 basic permanent )

  8. #8
    Join Date
    Jun 2002
    Location
    Winnipeg Canada
    Posts
    4,913

    Default

    I didn't even consider them due to their admittedly low accuracy for their free service. 55% accuracy just isn't that great. Their paid service is 80% which is a lot better.

    I know IP2location databases are never perfect, but that's a pretty low rate.

    Perhaps there is a better way?

    Maybe make the weather block visible for only registered users. And upon registration require the user to enter their city name. From this you can use one of the tools from theweathernetwork.com and place their city as a variable.

  9. #9
    Join Date
    May 2007
    Location
    NJ, United States
    Posts
    1,651

    Default

    Quote Originally Posted by Bruceper View Post
    IMaybe make the weather block visible for only registered users. And upon registration require the user to enter their city name. From this you can use one of the tools from theweathernetwork.com and place their city as a variable.
    I like this idea Bruce!

  10. #10
    Join Date
    Jul 2003
    Posts
    128

    Default

    FSGDAG

    Replied to your question on other thread that was relevant to this one.

    http://www.nicecoder.com/community/s...?t=4553&page=2

Similar Threads

  1. Adding Images
    By lufc in forum Templates
    Replies: 9
    Last Post: 06-19-2007, 11:32 AM
  2. Adding HTML between n rows
    By beto in forum v5.x
    Replies: 3
    Last Post: 01-17-2007, 05:19 AM
  3. Editor adding links
    By vakil in forum v3.2
    Replies: 3
    Last Post: 07-26-2003, 10:33 AM
  4. Mod for Editor adding links
    By esm in forum v3.2
    Replies: 2
    Last Post: 07-26-2003, 09:53 AM
  5. Adding code before and after a link
    By shanet in forum v5.x
    Replies: 7
    Last Post: 06-07-2003, 05:15 AM

Posting Permissions

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