Page 1 of 5 12345 LastLast
Results 1 to 10 of 44

Thread: Weather app broken

  1. #1
    FLAC SNOtwistR's Avatar
    Join Date
    Nov 2009
    Location
    Keswick,On Canada
    Posts
    1,582

    Weather app broken

    As quoted by Clockwork: If anyone is trying Driveline for the first time, Google decided to shut down their weather API, so the weather/forecast part of DriveLine doesn't work anymore. I need to switch to a new weather service.. And I'm open to suggestions.

  2. #2
    Constant Bitrate
    Join Date
    Mar 2012
    Location
    New Jersey
    Posts
    114
    ahh no wonder why that stopped working lol.. What does the source have to be? On Android, I use WeatherBug which I find to have pretty accurate forecasts. Is there any way to use their services?
    http://weather.weatherbug.com/
    "It's not worth having if you can't customize it"

  3. #3
    FLAC SNOtwistR's Avatar
    Join Date
    Nov 2009
    Location
    Keswick,On Canada
    Posts
    1,582
    My vote is for World Weather Online. It uses a key provided to the user, that way you only have to worry about coding to their api and not having to do a program update every month or so, as what happens to parser apps. I have my key ready to go SNO

  4. #4
    Mod - Driveline forum
    Auto Apps:loading...
    ClockWorK's Avatar
    Join Date
    Oct 2003
    Location
    Michigan
    Posts
    707
    The wonderful thing about Google's weather API was that you didn't need a key of any kind to access it. To my knowledge, it worked pretty much everywhere. So, my choices are:

    1: Make every user go register on some weather website and get their own access key if they want weather to work. Lame. But I could try to support a few of them.

    2: Find a good weather website that takes parameters through the URL, and write some code to parse the HTML of the website to try to extract the weather information. Not fun. Not reliable. Breaks every time they change their website. But it's not that hard. It can probably be done in a day or two.

    3: Remove weather from DriveLine. Unthinkable. It worked so good for so long.

    4. Go closed-source and hard-code a single API key into the program. Also not gonna happen.

    I've got a hunch that it's gonna be #2 at first. For the user, i want it to just work with no requirements other than GPS and internet present. No sign-up crap.

  5. #5
    FreeDrive Creator CdRsKuLL's Avatar
    Join Date
    Feb 2004
    Location
    Manchester
    Posts
    3,498
    I recently had this problem with googles API in FreeICE. This might be use.. might not but let me know if you need more info. I code in vb.net

    Google was great in finding your location from rubbish you typed in. I now use Yahoo but still google as well.

    1. First I get the users location either by GPS / IP / or what they type in.
    2. This then goes to google to be goecoded to Long / Lat.
    3. I then send this long / lat to yahoo to obtain there crappie woeid or whatever it is.
    4. Poll yahoo in Json feed as it gives you 5 days :-)
    5. Also poll wap feed of weather.com to grab the correct icons.

    No need for any keys.. it just works :-)

    Let me know if you need anymore info fella.

  6. #6
    Mod - Driveline forum
    Auto Apps:loading...
    ClockWorK's Avatar
    Join Date
    Oct 2003
    Location
    Michigan
    Posts
    707
    This sounds like it has potential. Thanks for the lead! I just have to do some reading to see how to look up a WOEID from Lat/Lon, and then parse some JSON.

    I'm in VB.Net as well. I'm never against helping another coder. So if you ever need something, feel free to ask. Always good to see the community working together.

  7. #7
    FreeDrive Creator CdRsKuLL's Avatar
    Join Date
    Feb 2004
    Location
    Manchester
    Posts
    3,498
    Hi fella,

    PM sent...

    OK, I've zipped up my plugin (FI works on plugins :-) ) this plugin also does a couple of things. It checks for internet and also how far you are away from home...

    Anyway, I'm not a coder by trade so apols if it's messy. lol but it works. FI has a flash based frontend so where you se set.variable(....) it's sending it to the flash skin.

    Let me know if you need anything :-)

    Steve

  8. #8
    Mod - Driveline forum
    Auto Apps:loading...
    ClockWorK's Avatar
    Join Date
    Oct 2003
    Location
    Michigan
    Posts
    707
    Thanks. That was everything I needed to see. I put a new version up with weather / forecast added back in. Looks like I can only get an icon for current weather though. I'll have to read through the API documentation tomorrow. I still need to add some "Yahoo Weather" logo too.

    Also, good clean code.

  9. #9
    FLAC SNOtwistR's Avatar
    Join Date
    Nov 2009
    Location
    Keswick,On Canada
    Posts
    1,582
    Man that was quick, and props to CdRsKuLL for the guidance. Downloading new version now. SNO

  10. #10
    FreeDrive Creator CdRsKuLL's Avatar
    Join Date
    Feb 2004
    Location
    Manchester
    Posts
    3,498
    Apologies.. you will need to add / change the code as it's currently pulling the last icons from where I live. Sorry I didn't realise until now.

    ADD. to the newweather structure at the top
    Public location As String

    ADD. to the Select Case in the Grab_Weather sub. (where all the rest is.)
    Case "location"
    .location = dt(2)

    CHANGE the weatherurl = at the top of grabicons sub
    weathercomurl = "http://wap.weather.co.uk/10day/" & newweather.location


    Sorry, missed it :-) You should be good to go then.


    I spent 3 days getting my weather working and wouldn't want someone to go through the same when I've already done it. :-)

    Thanks

    Steve
    Last edited by CdRsKuLL; 09-17-2012 at 03:13 AM.

Page 1 of 5 12345 LastLast

Similar Threads

  1. Replies: 131
    Last Post: 08-09-2008, 06:24 AM
  2. Replies: 0
    Last Post: 04-21-2008, 02:56 PM
  3. Add Interactive Weather Map (Weather.com) to CF?
    By Jistari in forum CF Plugins
    Replies: 4
    Last Post: 02-19-2008, 10:00 PM
  4. Anyone have weather.zip (the weather files)?
    By dmurray14 in forum Road Runner
    Replies: 1
    Last Post: 02-06-2006, 05:49 PM
  5. Replies: 6
    Last Post: 12-06-2004, 02:04 PM

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
  •