Jump to content


Photo

Weatherbug Dll (current Version: 0.1.0)


  • Please log in to reply
40 replies to this topic

#1 Danopia

Danopia

    Just another GMC member

  • GMC Member
  • 124 posts
  • Version:GM7

Posted 01 May 2007 - 11:50 PM

Current version: 0.1.0 | Download .ZIP 361 kilobytes | Help file (online version)

<span style='font-size:14pt;line-height:100%'>WeatherBug DLL</span>
US only, international will be later on since it has much less info and is requested from the server completely different.

Current features:
* Forecasts, 2-day and 3-day
* Current conditions
* Test connection and server

Expected features:
  • Metric or English measurements (currently all English)
  • INTERNATIONAL support! I know you all want that :)
  • WeatherBug station list, starting with closest to the specified zip code
  • Alerts for the specified zip code or station ID. These are severe weather alerts from the NWS. There is a whole range of alert types, mostly watches, warnings, advisories, emergencies, and statements. To me, these would be good for screen savers, so you can show alerts to keep the user informed.
Since it only allowd America at the moment, a whole bunch of info is returned. See the help file for the full list. Among others, here are some values for Current Conditions:
  • Time
  • Date
  • Temperature
  • Wind direction
  • Wind Speed
  • Today Rainfall
  • Rainfall Rate
There are 39 fields total.

Now for the why...
Alerts would be good for screen savers, so you can show alerts to keep the user informed.

Current conditions have a bunch of uses. You can base weather in a game of the current conditions of a real location, either a random location, the server location, or the player's location (best for one-player games).

Don't forget that you can actually create weather programs with this! You might even want to clone the official WeatherBug client if your bored.

<span style='font-size:7pt;line-height:100%'>Legalise: This DLL, help file, any included icons, the example, or any other included files ("DLL"), created by Danopia, danopia.net, FPSCheats, or any related party ("Danopia") is in no way affiliated with WeatherBug, weatherbug.com, weather.com, or AWS ("WeatherBug"). Any damage caused by the usage of this service is not the DLL's or Danopia's fault. Danopia recommends NOT to program triggers for nuclear bombs or rocket launchers using neither this DLL nor WeatherBug. ;) This DLL is only to be used as a substitute for actually coding a weather system, looking out the window, or selecting a weather condition manually.</span>

Download version 0.1.0
  • 0

#2 oakwhiz

oakwhiz

    GMC Member

  • New Member
  • 268 posts

Posted 02 May 2007 - 02:01 AM

You should make it for US, Canada and UK.
  • 0

#3 Shaltif

Shaltif

    The Audio Master

  • GMC Elder
  • 1185 posts

Posted 02 May 2007 - 05:18 AM

2. All topics require a download link to the creation they are showcasing. Any creation which requires a user to contact the creator via e-mail, Personal Messager or other similar means are not allowed.


You can report this topic with a download link. Once this happens, it can be reopened.

~Brandon
  • 0

#4 Smarty

Smarty

    GMC Member

  • GMC Elder
  • 7522 posts
  • Version:GM:Studio

Posted 10 May 2007 - 10:40 PM

Link is back, topic reopened.
  • 0

#5 NEED HELP sorta

NEED HELP sorta

    GMC Member

  • New Member
  • 1501 posts

Posted 11 May 2007 - 06:57 AM

Would it be feasible to use this for the server of an online game to check the weather outside and send that as the weather for all of the clients to set?

I am thinking of implementing this into my own MMORPG, instead of randomizing the weather with the server.
  • 0
http://img159.images...025/scr1ea8.png
http://img374.images...944/scr2hf6.png
Alagaesia Online - Not yet released.

You can bring the release date closer, by helping at the following topics:
Intro Narration
Music Topic

#6 Danopia

Danopia

    Just another GMC member

  • GMC Member
  • 124 posts
  • Version:GM7

Posted 11 May 2007 - 12:04 PM

Would it be feasible to use this for the server of an online game to check the weather outside and send that as the weather for all of the clients to set?

I am thinking of implementing this into my own MMORPG, instead of randomizing the weather with the server.

<{POST_SNAPBACK}>

I would go through the server. But if the server is low-bandwidth and can't handle weather, then you can also request from each client. In fact, you can request every 2 seconds. The true WeatherBug client updates secondly.

And, if you want stuff like "Sunny" or "Rain", then I am looking for how to get that.
  • 0

#7 NEED HELP sorta

NEED HELP sorta

    GMC Member

  • New Member
  • 1501 posts

Posted 11 May 2007 - 06:53 PM

Yes, I simply want a few pieces of information about current wheather.
And I can use my server to find the current wheather ever 30 seconds or so and then transfer that to my clients in a string thats more easily readable to them.
Each client will have the same wheather at the same time this way and I won't have to come up with a less-realistic wheather randomizing script.

Edited by NEED HELP sorta, 11 May 2007 - 06:54 PM.

  • 0
http://img159.images...025/scr1ea8.png
http://img374.images...944/scr2hf6.png
Alagaesia Online - Not yet released.

You can bring the release date closer, by helping at the following topics:
Intro Narration
Music Topic

#8 The_Cookie_Monster

The_Cookie_Monster

    GMC Member

  • New Member
  • 217 posts

Posted 11 May 2007 - 07:01 PM

America only? How selfish...
  • 0

#9 Danopia

Danopia

    Just another GMC member

  • GMC Member
  • 124 posts
  • Version:GM7

Posted 11 May 2007 - 07:40 PM

America only? How selfish...

<{POST_SNAPBACK}>

There are two ways to get to the WeatherBug API.
1) XML format (US & Intl)
2) Pipe delimited format (US only)
This DLL uses the pipe-delimited. I can do the RSS/XML but it would be much harder.

Here is an example of XML for international current conditions: http://a6546869447.a...7&zipCode=08341
Now check out what the US-only feed gets: http://www.danopia.n...nt_getvalue.htm

The only advantage of the international system is that you get the current condition icon! (and that it is international). Chris added the icon to the to-do list on the US-only system though:

Chris,
...
Is there any way to get current condition, i.e. "Sunny" or "Cloudy" or "Rain", without parsing the RSS of the international system? Pipe-separated is much easier on me.
...
Sincerely,
Daniel J. Danopia

Dan,

I will add the current condition idea to the "TODO" list for future version of the pipe delimited feed.
...
Chris

I conclude that he lives in Rockville, MD.

And, if anyone wants it, Chris revealed how to get decimal temperatures like the real client.
  • 0

#10 Speewave123

Speewave123

    GMC Member

  • New Member
  • 67 posts

Posted 11 May 2007 - 11:05 PM

This is a good Idea.. This could be good for a little knowitall app or something like a Wii FrontEnd that are manly on the Wii Download site on dl.qj.net with a Weather Channel

I Do think America Only is selfish but no problems here i mean the dude freakin mentioned another DLL for intl weather

-BTW: NEVER CRITIZIZE UNLESS U CAN DO BETTER! :)


hey but keep up the good work...

This is like one of the coolest DLLs iv seen!

next to the Force FeedBack DLL and SXMS ;)
  • 0

#11 darksoft.co.uk

darksoft.co.uk

    GMC Member

  • New Member
  • 379 posts

Posted 12 May 2007 - 08:12 PM

This is a great idea! I won't use it until its Worldwide though, A lot of my users would be in the UK.
  • 0

#12 ardnat

ardnat

    GMC Member

  • New Member
  • 421 posts

Posted 12 May 2007 - 10:00 PM

this is great because downloading weather bug puts spy ware and adware on your coputer
http://www.antivirus...erBug_6775.html
http://www.pchell.co...eatherbug.shtml
http://www.frsirt.co...irus/2006/05580
  • 0

#13 Danopia

Danopia

    Just another GMC member

  • GMC Member
  • 124 posts
  • Version:GM7

Posted 13 May 2007 - 12:23 AM

This is a great idea! I won't use it until its Worldwide though, A lot of my users would be in the UK.

<{POST_SNAPBACK}>

I am adding international to the list. In order to do international, you must have a City Code - which means that I also need to add a city code finder. :lol:

this is great because downloading weather bug puts spy ware and adware on your coputer
http://www.antivirus...erBug_6775.html
http://www.pchell.co...eatherbug.shtml
http://www.frsirt.co...irus/2006/05580

<{POST_SNAPBACK}>

Correction: only adware. And it is adware - uninstall and all gone.

Adware has ads, right? So then you are saying that Windows Live Messenger is adware - there are ads below the contacts list. AIM has them above. And Google also, and just about any site that doesn't have much of an income unless they have ads on their site.

But, yea, this is great. :wacko:
  • 0

#14 CHFD_113

CHFD_113

    GMC Member

  • GMC Member
  • 187 posts
  • Version:Unknown

Posted 13 May 2007 - 01:35 AM

Hey, how do we access these 'weather alerts' for NOAA advisories and warnings / watches etc...?

Btw...
Adware is usualyl classified by the way it behaves.
- Does it connect to dangerous adservers
- Does it display adult content?
- Does it show ads but doesnt mention ads in a license agreement?
- Do the ads come as popups?
- Are the ads displayed by Browser Hijacking?
- Or are the ads just plain annoying?

That's usually how adware becomes what it is.
And no Windows Live Messenger is not adware.

Adware.WeatherBug is adware.
  • 0

#15 Danopia

Danopia

    Just another GMC member

  • GMC Member
  • 124 posts
  • Version:GM7

Posted 13 May 2007 - 04:11 AM

Hey, how do we access these 'weather alerts' for NOAA advisories and warnings / watches etc...?

<{POST_SNAPBACK}>

Future feature. This will be used differently, probably with next_alert(), returning 1 if there is one and 0 if not, then read alert-by-alert like current conditions. This will be done later on; international support is higher on the list.

Btw...
Adware is usualyl classified by the way it behaves.
- Does it connect to dangerous adservers
- Does it display adult content?
- Does it show ads but doesnt mention ads in a license agreement?
- Do the ads come as popups?
- Are the ads displayed by Browser Hijacking?
- Or are the ads just plain annoying?

That's usually how adware becomes what it is.
And no Windows Live Messenger is not adware.

Adware.WeatherBug is adware.

<{POST_SNAPBACK}>

1. Not if you are good with HOSTS files.
2. No.
3. I'm not sure, but it does mention ads when installing.
4. I've never had a WeatherBug popup.
5. No.
6. No!!! I don't even notice them.
  • 0

#16 darksoft.co.uk

darksoft.co.uk

    GMC Member

  • New Member
  • 379 posts

Posted 13 May 2007 - 09:09 AM

This is a great idea! I won't use it until its Worldwide though, A lot of my users would be in the UK.

<{POST_SNAPBACK}>

I am adding international to the list. In order to do international, you must have a City Code - which means that I also need to add a city code finder. :)

this is great because downloading weather bug puts spy ware and adware on your coputer
http://www.antivirus...erBug_6775.html
http://www.pchell.co...eatherbug.shtml
http://www.frsirt.co...irus/2006/05580

<{POST_SNAPBACK}>

Correction: only adware. And it is adware - uninstall and all gone.

Adware has ads, right? So then you are saying that Windows Live Messenger is adware - there are ads below the contacts list. AIM has them above. And Google also, and just about any site that doesn't have much of an income unless they have ads on their site.

But, yea, this is great. :D

<{POST_SNAPBACK}>


Good! I'd like you to contact me when its gone international ;)
  • 0

#17 mememe

mememe

    GMC Member

  • New Member
  • 1328 posts

Posted 13 May 2007 - 11:19 AM

You should make it for US, Canada and UK.

<{POST_SNAPBACK}>


And Australia...
  • 0


Visit my lifeDevvar blog - The life of a Devvar for tips, hints and reviews to producitivty, useful apps and more.

#18 coolsmile

coolsmile

    Programmer

  • New Member
  • 1346 posts

Posted 13 May 2007 - 01:31 PM

This dll rocks. Very nice job. I'm not going to complain because I'm from the US :D
Again, nice job. This dll rocks ;)
  • 0

#19 Danopia

Danopia

    Just another GMC member

  • GMC Member
  • 124 posts
  • Version:GM7

Posted 14 May 2007 - 11:01 PM

I'm working on international now. I just made a BIG discovery...

You know how I said that international has very little information? Well, it has much more info! Open this link: http://api.wxbug.net...0874&unittype=0

Have it? Good. now pull up the source. Look for the line that begins with:
<aws:weather xmlns:aws="http://www.aws.com/a...m/aws"><aws:api version="2.0" />

See that line? If has more info than the other methods. In fact, I need to modify how it is returned to GM to make room! I'll probably format the date and stuff into a single string.

I'll probably post the international DLL later tonight or tomorrow.
  • 0

#20 darksoft.co.uk

darksoft.co.uk

    GMC Member

  • New Member
  • 379 posts

Posted 16 May 2007 - 04:24 PM

I'm working on international now. I just made a BIG discovery...

You know how I said that international has very little information? Well, it has much more info! Open this link: http://api.wxbug.net...0874&unittype=0

Have it? Good. now pull up the source. Look for the line that begins with:
<aws:weather xmlns:aws="http://www.aws.com/a...m/aws"><aws:api version="2.0" />

See that line? If has more info than the other methods. In fact, I need to modify how it is returned to GM to make room! I'll probably format the date and stuff into a single string.

I'll probably post the international DLL later tonight or tomorrow.

<{POST_SNAPBACK}>


Thats awesome!

Is it done?
  • 0

#21 Danopia

Danopia

    Just another GMC member

  • GMC Member
  • 124 posts
  • Version:GM7

Posted 16 May 2007 - 08:16 PM

...

<{POST_SNAPBACK}>


Thats awesome!

Is it done?

<{POST_SNAPBACK}>

No - I was struck with the deadly C++ error known as "Access violation writing location 0x#######." Well, I think I fixed it.

Now the program just hangs when receiving info from the server. I think that it is not the DLL's fault. Why? Here is the domain: http://api.wxbug.net/

As of the time of writing, this URL does not work for me. :)

[ EDIT ]
Now I get: "Server is too busy" I think WeatherBug crashed or something.

Which is weird, since the America-only system still works fine.

Edited by Danopia, 16 May 2007 - 08:22 PM.

  • 0

#22 darksoft.co.uk

darksoft.co.uk

    GMC Member

  • New Member
  • 379 posts

Posted 16 May 2007 - 08:39 PM

...

<{POST_SNAPBACK}>


Thats awesome!

Is it done?

<{POST_SNAPBACK}>

No - I was struck with the deadly C++ error known as "Access violation writing location 0x#######." Well, I think I fixed it.

Now the program just hangs when receiving info from the server. I think that it is not the DLL's fault. Why? Here is the domain: http://api.wxbug.net/

As of the time of writing, this URL does not work for me. :D

[ EDIT ]
Now I get: "Server is too busy" I think WeatherBug crashed or something.

Which is weird, since the America-only system still works fine.

<{POST_SNAPBACK}>


Does it work now?

And please upload the DLL, i really want to use it! :P
  • 0

#23 darksoft.co.uk

darksoft.co.uk

    GMC Member

  • New Member
  • 379 posts

Posted 19 May 2007 - 08:51 PM

Is it ready?
  • 0

#24 Danopia

Danopia

    Just another GMC member

  • GMC Member
  • 124 posts
  • Version:GM7

Posted 21 May 2007 - 11:16 AM

Is it ready?

<{POST_SNAPBACK}>

Sorry. I just got back from a camping trip.

It works, but you can't use it yet because I didn't say what goes where in the help file. PM me if you want the help-file-less version. Please note that I still have to package it too.
  • 0

#25 darksoft.co.uk

darksoft.co.uk

    GMC Member

  • New Member
  • 379 posts

Posted 21 May 2007 - 04:00 PM

Is it ready?

<{POST_SNAPBACK}>

Sorry. I just got back from a camping trip.

It works, but you can't use it yet because I didn't say what goes where in the help file. PM me if you want the help-file-less version. Please note that I still have to package it too.

<{POST_SNAPBACK}>


I e-mailed you.

Also, when will the version with the help file be ready?
  • 0

#26 oakwhiz

oakwhiz

    GMC Member

  • New Member
  • 268 posts

Posted 24 May 2007 - 03:55 PM

I think he's close!

Yay!
  • 0

#27 justin123

justin123

    GMC Member

  • New Member
  • 124 posts

Posted 26 May 2007 - 06:25 AM

Never mind. Problem solved. :D

Edited by justin123, 28 May 2007 - 05:00 AM.

  • 0

#28 Ussyless

Ussyless

    Objective

  • GMC Member
  • 962 posts
  • Version:Unknown

Posted 26 May 2007 - 03:17 PM

wow, that would be cool, imagine a game that relates to you're local weather.
  • 0

#29 guitarbball0092

guitarbball0092

    Ruthless Gamer

  • New Member
  • 325 posts

Posted 17 September 2007 - 02:05 AM

You should have it download a picture of the radar, like normal doppler radar, and other kinds.
  • 0
13" MacBook Pro AND PROUD OF IT!! Parallels user, but only for GM. :)

Musician: Composer, mixing, piano, guitar, vocals, clarinet.
Soon to have an EP out on all online stores :D

#30 guitarbball0092

guitarbball0092

    Ruthless Gamer

  • New Member
  • 325 posts

Posted 20 July 2008 - 01:55 AM

I'm using this for my WXController (see info on my site in siggy ;)) and I get frequent the "WXController.exe has encountered a problem and needs to close. We're sorry for the inconvenience" thing all the time. Same thing happens with your example.

Is this just Weatherbug servers?
  • 0
13" MacBook Pro AND PROUD OF IT!! Parallels user, but only for GM. :)

Musician: Composer, mixing, piano, guitar, vocals, clarinet.
Soon to have an EP out on all online stores :D

#31 Recreate

Recreate

    Furry

  • GMC Member
  • 2992 posts
  • Version:GM:Studio

Posted 28 July 2008 - 08:43 PM

Link is back, topic reopened.

Your not a mod.
Mini-mod

wow, that would be cool, imagine a game that relates to you're local weather.

Im thinking about using that!

Edited by Recreate, 28 July 2008 - 08:45 PM.

  • 0

If the post that you are reading was created prior to 2011. For the safety of the general public, It is not to be regarded under any circumstances.
Please don't ask me to join your group at anything.


#32 Southman

Southman

    I simply am not here

  • GMC Member
  • 1662 posts
  • Version:GM:Studio

Posted 29 July 2008 - 09:35 PM

if the default zip code is yours, then we live really close by.
i think
i live in 08050
EDIT: we live 38.2 miles apart

Edited by bikekid2222, 29 July 2008 - 09:52 PM.

  • 0

#33 prog

prog

    GMC Member

  • New Member
  • 1121 posts

Posted 26 September 2009 - 03:26 AM

This dll is really useful for my program. How reliable is the information? Where is it recieved from.
  • 0
Progames

NEW WEBSITE!
I have a large collection of music on my website. If you need some, take a look.
If you need a script, PM me. I'll make you one for free.

#34 death-droid

death-droid

    GMC Member

  • GMC Member
  • 2600 posts

Posted 26 September 2009 - 04:41 AM

It is received from http://weather.weatherbug.com/ (From what i gather)
  • 0

Posted Image


#35 Danopia

Danopia

    Just another GMC member

  • GMC Member
  • 124 posts
  • Version:GM7

Posted 26 September 2009 - 04:57 AM

It would be appreciated if someone could confirm this still works. (I'm not sure myself, even though it's my DLL.)
  • 0

#36 prog

prog

    GMC Member

  • New Member
  • 1121 posts

Posted 26 September 2009 - 01:30 PM

Yes, it does work. If you want to see for yourself, download Laptop Helper (link is in my signature).
  • 0
Progames

NEW WEBSITE!
I have a large collection of music on my website. If you need some, take a look.
If you need a script, PM me. I'll make you one for free.

#37 Danopia

Danopia

    Just another GMC member

  • GMC Member
  • 124 posts
  • Version:GM7

Posted 26 September 2009 - 01:50 PM

Ok, thanks. I'm on Linux nowadays so I'd have to install Dev-CPP on my mom's Dell if I want to develop this further ^_^ And if I can find the source....
  • 0

#38 prog

prog

    GMC Member

  • New Member
  • 1121 posts

Posted 27 September 2009 - 04:44 PM

How do you get the info from the website?
  • 0
Progames

NEW WEBSITE!
I have a large collection of music on my website. If you need some, take a look.
If you need a script, PM me. I'll make you one for free.

#39 Danopia

Danopia

    Just another GMC member

  • GMC Member
  • 124 posts
  • Version:GM7

Posted 27 September 2009 - 06:03 PM

It uses a special interface to WeatherBug, the pipe-deliminated API. (It is also that API that limits the DLL to the USA.)
  • 0

#40 tomster1996

tomster1996

    GMC Member

  • New Member
  • 312 posts

Posted 25 December 2009 - 10:21 PM

Current version: 0.1.0 | Download .ZIP 361 kilobytes | Help file (online version)

<span style='font-size:14pt;line-height:100%'>WeatherBug DLL</span>
US only, international will be later on since it has much less info and is requested from the server completely different.

Current features:
* Forecasts, 2-day and 3-day
* Current conditions
* Test connection and server

Expected features:

  • Metric or English measurements (currently all English)
  • INTERNATIONAL support! I know you all want that :snitch:
  • WeatherBug station list, starting with closest to the specified zip code
  • Alerts for the specified zip code or station ID. These are severe weather alerts from the NWS. There is a whole range of alert types, mostly watches, warnings, advisories, emergencies, and statements. To me, these would be good for screen savers, so you can show alerts to keep the user informed.
Since it only allowd America at the moment, a whole bunch of info is returned. See the help file for the full list. Among others, here are some values for Current Conditions:
  • Time
  • Date
  • Temperature
  • Wind direction
  • Wind Speed
  • Today Rainfall
  • Rainfall Rate
There are 39 fields total.

Now for the why...
Alerts would be good for screen savers, so you can show alerts to keep the user informed.

Current conditions have a bunch of uses. You can base weather in a game of the current conditions of a real location, either a random location, the server location, or the player's location (best for one-player games).

Don't forget that you can actually create weather programs with this! You might even want to clone the official WeatherBug client if your bored.

<span style='font-size:7pt;line-height:100%'>Legalise: This DLL, help file, any included icons, the example, or any other included files ("DLL"), created by Danopia, danopia.net, FPSCheats, or any related party ("Danopia") is in no way affiliated with WeatherBug, weatherbug.com, weather.com, or AWS ("WeatherBug"). Any damage caused by the usage of this service is not the DLL's or Danopia's fault. Danopia recommends NOT to program triggers for nuclear bombs or rocket launchers using neither this DLL nor WeatherBug. :snitch: This DLL is only to be used as a substitute for actually coding a weather system, looking out the window, or selecting a weather condition manually.</span>

Download version 0.1.0


Cool, is this like the iPhone/iPod Touch app?
  • 0

#41 gmx0

gmx0

    The Messenger

  • GMC Member
  • 1220 posts
  • Version:GM:Studio

Posted 28 December 2009 - 07:24 PM

This will be useful 4 my RTS so it can simulate local weather on the battlefield coupled with the real time day/night system.
  • 0