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.
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?
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
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.
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.
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.
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 :-)
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.
Man that was quick, and props to CdRsKuLL for the guidance. Downloading new version now. SNO
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.)
.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. :-)