Weather Script w/5-day Forecast
mIRC Code
+ 11 likes
Please Register to submit score.
| Average Score | 9.0 (of 15 scores) |
| Date Added | Apr 25, 2009 |
| Last Updated | Jun 18, 2009 |
| Tags | dialog forecast picture weather wunderground |
Introduction
Wunderground weather script with dialogs pictures and 5-day forecast.
This also has a trigger w/on-off switch. The trigger is !Forecast because I figure most people already have one thats !weather. Syntax for the trigger is !Forecast city state
or !Forecast country city or !wunderground zipcode or !Forecast airportcode.
You can find the dialogs on any menu and they are fairly self explanatory. One easy change you can make is the default city in the script. I have it set to my city.
To change it goto line 37.
It will look like this
| Code: |
On *:Dialog:CurrentConditions:init:*: { Wunderground Cincinnati Ohio } |
Just change Cincinnati Ohio to your city state and it will always start there.
I've only tested this on my connection, which is pretty decent. I hope it works as good with slower connections.
05/01/2009 -- Changed Trigger From !Wunderground to !Forecast
mIRC Snippet:
Weather Script w/5-day Forecast
Posted on Apr 25, 2009 3:08 pm
Posted on Apr 25, 2009 3:08 pm
Man this is great, and i gave it a 10, which is my second 10 of the week ;o. I didn't test the BOT triggers but the dialogs worked fine. Thanks for posting.
mIRC Snippet:
Weather Script w/5-day Forecast
Posted on Apr 25, 2009 3:17 pm
Posted on Apr 25, 2009 3:17 pm
Thanks Prelude :)
mIRC Snippet:
Weather Script w/5-day Forecast
Posted on Apr 25, 2009 5:24 pm
Posted on Apr 25, 2009 5:24 pm
Wow looks like you put a lot of time into this script, based on the picture you have it looks great can't test it atm tho.
mIRC Snippet:
Weather Script w/5-day Forecast
Posted on Apr 25, 2009 6:59 pm
Posted on Apr 25, 2009 6:59 pm
oh my, its going to rain LOL .. 10/10
mIRC Snippet:
Weather Script w/5-day Forecast
Posted on Apr 26, 2009 1:51 pm
Posted on Apr 26, 2009 1:51 pm
Nice!
A few bugs happened though.
Error 421: Unknown command: NOTICE$NICK
* /hfree: insufficient parameters (line 269, wunder.mrc)
* /did: invalid parameters
* /did: invalid parameters
I edited the script a little to notice it to the user, instead of sending to the chan. Is that where I went wrong? http://pastebin.torrentialstorm.net/104
A few bugs happened though.
Error 421: Unknown command: NOTICE$NICK
* /hfree: insufficient parameters (line 269, wunder.mrc)
* /did: invalid parameters
* /did: invalid parameters
I edited the script a little to notice it to the user, instead of sending to the chan. Is that where I went wrong? http://pastebin.torrentialstorm.net/104
mIRC Snippet:
Weather Script w/5-day Forecast
Posted on Apr 26, 2009 2:00 pm
Posted on Apr 26, 2009 2:00 pm
Yea, hy71194. Unfortunately your edit is causing the problem. Try re-pasting the script and editing it again. When you edit a line that is connected by $&, if you make a mistake,add a space, almost anything you do can cause the line not to work. Be very careful and only edit the .msg %wunder.chan and you should have no problem. The best way to do this would be to do a find and replace. Find --> .msg %wunder.chan Replace with -->> .notice %wunder.nick.
mIRC Snippet:
Weather Script w/5-day Forecast
Posted on Apr 26, 2009 2:10 pm
Posted on Apr 26, 2009 2:10 pm
Oh, I just looked up. Thanks andromeda :)
Yes Aucun50 , It did take quite a bit of time to design the dialogs and get the timing of the picture downloads right. Thanks for noticing :)
Yes Aucun50 , It did take quite a bit of time to design the dialogs and get the timing of the picture downloads right. Thanks for noticing :)
mIRC Snippet:
Weather Script w/5-day Forecast
Posted on Apr 26, 2009 11:53 pm
Posted on Apr 26, 2009 11:53 pm
i like it
mIRC Snippet:
Weather Script w/5-day Forecast
Posted on Apr 27, 2009 9:58 am
Posted on Apr 27, 2009 9:58 am
Thanks xt24 :)
mIRC Snippet:
Weather Script w/5-day Forecast
Posted on Apr 27, 2009 4:12 pm
Posted on Apr 27, 2009 4:12 pm
Fantasic. Love it pitty there is no map icon of every area
mIRC Snippet:
Weather Script w/5-day Forecast
Posted on Apr 27, 2009 4:55 pm
Posted on Apr 27, 2009 4:55 pm
It's something I'm working on ch7. I'll update it when I have it perfected. It's a whole other socket script to get some of the pictures because they are realtime radar snapshots and only temporarily stored on the net. Also, these pictures will never be re-used, so the script needs to treat them differently and delete them after they are used.
I'll post a new comment when I get this part working :)
I'll post a new comment when I get this part working :)
mIRC Snippet:
Weather Script w/5-day Forecast
Posted on Apr 27, 2009 6:20 pm
Posted on Apr 27, 2009 6:20 pm
Updated to temporarily download radar images from all countries.
mIRC Snippet:
Weather Script w/5-day Forecast
Posted on Apr 28, 2009 2:28 pm
Posted on Apr 28, 2009 2:28 pm
/me goes to try :D
Tested and seems to work fine for me. Though all I can see is rain clouds where I live :(
Tested and seems to work fine for me. Though all I can see is rain clouds where I live :(
mIRC Snippet:
Weather Script w/5-day Forecast
Posted on Apr 28, 2009 6:03 pm
Posted on Apr 28, 2009 6:03 pm
Just Rain here too ch7 ;/
mIRC Snippet:
Weather Script w/5-day Forecast
Posted on Apr 30, 2009 7:53 pm
Posted on Apr 30, 2009 7:53 pm
very very nicely done as per your usual standards. an easier trigger would be nice though.. !forecast or something like.. !wunderground is a bit of a handful to type heh. gets full 10 and a like from me.
mIRC Snippet:
Weather Script w/5-day Forecast
Posted on Apr 30, 2009 8:58 pm
Posted on Apr 30, 2009 8:58 pm
Thank you Cheiron :) I left the long !wunderground trigger on there because I figured that most people already have a !weather of some sort. !forcast is a good suggestion though. I think I'll change that a little later.
mIRC Snippet:
Weather Script w/5-day Forecast
Posted on May 1, 2009 1:55 am
Posted on May 1, 2009 1:55 am
many thanks for that. much easier to type too heh.
mIRC Snippet:
Weather Script w/5-day Forecast
Posted on May 1, 2009 6:18 pm
Posted on May 1, 2009 6:18 pm
i know what i was gonna ask about that was really bugging me... this script comes out multicolour. white and colour mixed in sentances and letters and all over the place. any chance might be able to make it all a fixed colour or at least 2 main colours.. eg dark green and dark blue.
mIRC Snippet:
Weather Script w/5-day Forecast
Posted on May 1, 2009 9:03 pm
Posted on May 1, 2009 9:03 pm
o.O oOOops! I didn't realize I had any colors on there ;/ I accidentally posted that color with a color alias that I wrote for a friend. Oh well, I went ahead and edited it so it would be easier to change the colors. Just change lines 446 nad 447 Cheiron.
This is inside the Colorz alias and will look like this.
%c1 is a highlight color for the first character of a word and %c2 is the color for the rest of the word. Just change them to the colors that you want. I have them both set to red, so all my words will be ALL red.
This is inside the Colorz alias and will look like this.
| Code: |
| var %c1 04 var %c2 04 |
%c1 is a highlight color for the first character of a word and %c2 is the color for the rest of the word. Just change them to the colors that you want. I have them both set to red, so all my words will be ALL red.
mIRC Snippet:
Weather Script w/5-day Forecast
Posted on May 1, 2009 9:31 pm
Posted on May 1, 2009 9:31 pm
the first letters were in white and the rest were in that ikky orange (ctrl + k 7)
and the temperatres were in different colours too heh
i notice it badly as i use black backgroud. i will have a look at the code and alter it now i been shown how. :D
and the temperatres were in different colours too heh
i notice it badly as i use black backgroud. i will have a look at the code and alter it now i been shown how. :D
mIRC Snippet:
Weather Script w/5-day Forecast
Posted on May 2, 2009 1:45 am
Posted on May 2, 2009 1:45 am
**Laughs** @ ikky orange :D
mIRC Snippet:
Weather Script w/5-day Forecast
Posted on May 2, 2009 5:08 am
Posted on May 2, 2009 5:08 am
ummmm.... 446 and 447 is this
so which bit in this block needs editing?
| Code: |
| while (%counter <= %count) { if ($left($gettok(%string,%counter,32),1) isalpha) { |
so which bit in this block needs editing?
| Code: |
alias colorz { var %string = $3-, %count = $gettok($3-,0,32), %counter = 1, %return, %s = $1, %f = $2 while (%counter <= %count) { if ($left($gettok(%string,%counter,32),1) isalpha) { %return = %return $+(,%s,$left($gettok(%string,%counter,32),1),,%f,$right($gettok(%string,%counter,32),$calc($len($gettok(%string,%counter,32)) - 1)),) } else { %return = %return $gettok(%string,%counter,32) } inc %counter } |
mIRC Snippet:
Weather Script w/5-day Forecast
Posted on May 5, 2009 5:48 pm
Posted on May 5, 2009 5:48 pm
ANOTHER awesome dailog and script w/ a point by FordLawnmower. 10/10
mIRC Snippet:
Weather Script w/5-day Forecast
Posted on May 5, 2009 6:03 pm
Posted on May 5, 2009 6:03 pm
@Cheiron Sorry I didn't notice your post till now :( The lines 446 and 447 were added to make it easier to edit the colors. If you have an older copy of the script it will be different. Sorry for the confusion. - If you paste the current copy of the script over top of the one you are using, you will see the color lines 446 and 447.
@PATX Thank You :)
@PATX Thank You :)
mIRC Snippet:
Weather Script w/5-day Forecast
Posted on May 5, 2009 7:21 pm
Posted on May 5, 2009 7:21 pm
many thanks :)
right.. all text is indeed in red.. but... this is the real puzzle..
the first bit... weather search in progress is in white.. as are all the numerics oh wait... my bad. i use a black background and have spoken text in white ... lol it is all ok
right.. all text is indeed in red.. but... this is the real puzzle..
| Quote: |
12<20112:250am12> <Titan_Bot> Weather Search in Progress. Please Wait..... 12<20112:250am12> <Titan_Bot> 04W04eather 04f04or 04x04xxx 04xxxx, 04x04xxxx, 04E04AST 04S04USSEX (PWS) - 04T04emperature: 52.8°F - 04H04umidity: 84% 04D04ew 04P04oint: 48ºF - 04W04ind: 1.0mph - 04P04ressure: 30.10in - 04H04eat 04I04ndex: - 04V04isibility: 6.2miles - 04C04louds: 04M04ostly 04C04loudy 12<20112:250am12> <Titan_Bot> 5-Day 04F04orecast 04W04ednesday :: 59º 04F04 -|- 44º 04F04 - 04C04hance 04o04f 04R04ain - 04T04hursday :: 15º 04C04 -|- 7º 04C04 - 04C04hance 04o04f 04R04ain - 04F04riday :: 59º 04F04 -|- 44º 04F04 - 04C04hance 04o04f 04R04ain - 04S04aturday :: 15º 04C04 -|- 7º 04C04 - 04C04hance 04o04f 04R04ain - 04S04unday :: 60º 04F04 -|- 41º 04F04 - |
the first bit... weather search in progress is in white.. as are all the numerics oh wait... my bad. i use a black background and have spoken text in white ... lol it is all ok
mIRC Snippet:
Weather Script w/5-day Forecast
Posted on May 5, 2009 8:36 pm
Posted on May 5, 2009 8:36 pm
Oh, haha :DD Yea, it's made to do two colors so that is very Redundantly Red.
mIRC Snippet:
Weather Script w/5-day Forecast
Posted on Jun 4, 2009 7:57 am
Posted on Jun 4, 2009 7:57 am
Just started using this yesterday, and I like it so far. However, I have some international users in the channel this is running in and was wondering if there was any way to have it display the temps in Celsius as well.
mIRC Snippet:
Weather Script w/5-day Forecast
Posted on Jun 4, 2009 11:17 am
Posted on Jun 4, 2009 11:17 am
I'll take a look at it and see if I come up with a simple solution for this maverick_zero. It's displaying in Fahrenheit because the bot is in a country that uses Fahrenheit. If the bot was in Europe, for instance, it would automatically use Celsius and you would have the opposite problem.
The formulas are Tf = (9/5)*Tc+32 & Tc = (5/9)*(Tf-32) but I will have to take some time with the script to see how much of the code would have to change to add both of them.
Quick alias --->>
I'll look into changing the code a little later ;/
The formulas are Tf = (9/5)*Tc+32 & Tc = (5/9)*(Tf-32) but I will have to take some time with the script to see how much of the code would have to change to add both of them.
Quick alias --->>
| Code: |
;syntax /FtoC TempinF - /CtoF TempinC or you can use //say $FtoC(TempinF) alias FtoC { $iif($isid,return,echo -a) $round($calc((5 / 9) * ($1 - 32)),0) } alias CtoF { $iif($isid,return,echo -a) $round($calc((9 / 5) * $1 + 32),0) } |
I'll look into changing the code a little later ;/
mIRC Snippet:
Weather Script w/5-day Forecast
Posted on Jun 4, 2009 11:58 am
Posted on Jun 4, 2009 11:58 am
Thanks, I really appreciate it.
mIRC Snippet:
Weather Script w/5-day Forecast
Posted on Jun 4, 2009 12:19 pm
Posted on Jun 4, 2009 12:19 pm
Just Updated the Script to show both Fahrenheit and Celsius. :)
;/
I'm going to have to change the 5-day forecast dialog a little to fit both F and C. They still work, just over run their columns a little.
Trigger works fine :) I'll stretch the 5-day dialog a little later today.
;/
I'm going to have to change the 5-day forecast dialog a little to fit both F and C. They still work, just over run their columns a little.
Trigger works fine :) I'll stretch the 5-day dialog a little later today.
mIRC Snippet:
Weather Script w/5-day Forecast
Posted on Jun 4, 2009 12:57 pm
Posted on Jun 4, 2009 12:57 pm
Fantastic! Thanks a ton. I only wish I could have been able to do it myself, but my mIRC scripting is pretty limited.
mIRC Snippet:
Weather Script w/5-day Forecast
Posted on Jun 4, 2009 2:26 pm
Posted on Jun 4, 2009 2:26 pm
Thank you maverick_zero :) Your suggestion improved the script.
mIRC Snippet:
Weather Script w/5-day Forecast
Posted on Jun 4, 2009 3:18 pm
Posted on Jun 4, 2009 3:18 pm
Just fixed/stretched the dialogs. It's a little bunched up but I added boxes around the days and a extra line for negative temps and temps over 2 digits.
mIRC Snippet:
Weather Script w/5-day Forecast
Posted on Jun 18, 2009 3:11 pm
Posted on Jun 18, 2009 3:11 pm
i have found another bug with this script FordLawnmower. line length exceed in mirc. forecast gets cut off
| Quote: |
12<20912:208pm12> <Sleeping_On_The_Job> !forecast chichester uk 12<20912:208pm12> <Titan_Bot> Weather Search in Progress. Please Wait..... 12<20912:208pm12> <Titan_Bot> 04W04eather 04f04or 04C04hichester, 04C04hichester, 04W04EST 04S04USSEX (PWS) - 04T04emperature: 61.3°F - 04H04umidity: 69% 04D04ew 04P04oint: 51ºF - 04W04ind: 2.5mph - 04P04ressure: 30.24in - 04H04eat 04I04ndex: - 04V04isibility: 6.2miles - 04C04louds: 04F04ew 12<20912:208pm12> <Titan_Bot> 5-Day 04F04orecast 04T04hursday :: 62º 04F04 -|- 50º 04F04 - 04S04cattered 04C04louds - 04F04riday :: 17º 04C04 -|- 10º 04C04 - 04C04lear - 04S04aturday :: 66º 04F04 -|- 50º 04F04 - 04C04hance 04o04f 04R04ain - 04S04unday :: 66º 04F04 -|- 10º 04C04 - 04C04hance 04o04f 04R04ain - 04M04onday :: 19º 04C04 -|- 50º 04F04 - 04C04hance 04o04f 04R |
mIRC Snippet:
Weather Script w/5-day Forecast
Posted on Jun 18, 2009 4:44 pm
Posted on Jun 18, 2009 4:44 pm
I'll have a look at it tomorrow Cheiron. Just got in from work and I'm not feeling very well :( Thanks for the info though :)
Are you talking about the server line limit of 431 then?
Are you talking about the server line limit of 431 then?
mIRC Snippet:
Weather Script w/5-day Forecast
Posted on Jun 18, 2009 4:52 pm
Posted on Jun 18, 2009 4:52 pm
not sure.. but it cuts the sentance off on the last day so i would imagine yes it is hitting it. might need a bit of tweaking to streamline it a bit maybe?
mIRC Snippet:
Weather Script w/5-day Forecast
Posted on Jun 18, 2009 8:06 pm
Posted on Jun 18, 2009 8:06 pm
Thanks for pointing this out Cheiron :) It's probably been cutting off since I added the F to C Conversion.
I had to add a third line, but all is working good now :)
I had to add a third line, but all is working good now :)
mIRC Snippet:
Weather Script w/5-day Forecast
Posted on Jun 19, 2009 4:49 am
Posted on Jun 19, 2009 4:49 am
sweet as :) nice one and thankies
mIRC Snippet:
Weather Script w/5-day Forecast
Posted on Jun 19, 2009 7:30 am
Posted on Jun 19, 2009 7:30 am
Nice weather code there FordLawnMower, it worked great for me as i just added it and then tested it bam instant weather report for the montreal region :P 10/10
http://www.chainscriptz.com/images/weather_code.png
http://www.chainscriptz.com/images/weather_code.png
mIRC Snippet:
Weather Script w/5-day Forecast
Posted on Jun 19, 2009 12:49 pm
Posted on Jun 19, 2009 12:49 pm
The only issue i have is in the dialogs theres no pictures.
mIRC Snippet:
Weather Script w/5-day Forecast
Posted on Jun 19, 2009 1:51 pm
Posted on Jun 19, 2009 1:51 pm
ok nm i added the pics from the site and added them in the wunderground folder LOL :P
mIRC Snippet:
Weather Script w/5-day Forecast
Posted on Jun 19, 2009 5:14 pm
Posted on Jun 19, 2009 5:14 pm
@irchainscriptz The script should be downloading the pictures on it's own. I'll have a look at it later and see if something has changed on the wunderground page.
mIRC Snippet:
Weather Script w/5-day Forecast
Posted on Jun 19, 2009 5:22 pm
Posted on Jun 19, 2009 5:22 pm
i get an error with the dialogue side.. the dialogue main box closes but the 5day forecast box.. is a 50/50 whether the X shows to click or not.. if it doesnt i have to /quit/reconnect the bot
mIRC Snippet:
Weather Script w/5-day Forecast
Posted on Jun 19, 2009 5:44 pm
Posted on Jun 19, 2009 5:44 pm
What error are you getting Cheiron?
The 5day box only shows up if the socket returns information for the forecast. In some cases their is no forecast available. That's why I coded it that way.
The 5day box only shows up if the socket returns information for the forecast. In some cases their is no forecast available. That's why I coded it that way.
mIRC Snippet:
Weather Script w/5-day Forecast
Posted on Jun 19, 2009 6:01 pm
Posted on Jun 19, 2009 6:01 pm
the box shows for my area on the 5day forecast when i use the dialogue. but the actual close doesnt always work.. the red x.. it is more often than not greyed out and unclickable. the one on the main dialogue "X's" fine.. it is just the 5day one that doesnt
mIRC Snippet:
Weather Script w/5-day Forecast
Posted on Jun 19, 2009 6:17 pm
Posted on Jun 19, 2009 6:17 pm
Its ok FordLawnmower i added them in the folder in Wunderground and bingo they appeared!!
http://i20.photobucket.com/albums/b221/0nyX/2009-06-19_1534.png
http://i20.photobucket.com/albums/b221/0nyX/2009-06-19_1534.png
mIRC Snippet:
Weather Script w/5-day Forecast
Posted on Jun 19, 2009 6:39 pm
Posted on Jun 19, 2009 6:39 pm
Oh ;/ That is very strange. It's nothing to do with the script then. mIRC is in control of that red X. I have a On Close event, but it only reacts to the closing of the dialog.
As far as I know, there is nothing I can do to stop mIRC from greying out the red x if it decides to do it for some reason.
I'm considering re-writing this whole script with binaries to speed it up. I might add a close button to the 5-day at that point.
Thanks for all the feedback Cheiron :)
As far as I know, there is nothing I can do to stop mIRC from greying out the red x if it decides to do it for some reason.
I'm considering re-writing this whole script with binaries to speed it up. I might add a close button to the 5-day at that point.
Thanks for all the feedback Cheiron :)
mIRC Snippet:
Weather Script w/5-day Forecast
Posted on Jun 19, 2009 7:06 pm
Posted on Jun 19, 2009 7:06 pm
no worries.. i think it might be where my bot is so heavily laden with security scripts constantly checking stuff in every room it is in also to blame. 6 rooms all configured differently. bot might be a bit flumoxed
mIRC Snippet:
Weather Script w/5-day Forecast
Posted on Jun 20, 2009 9:06 am
Posted on Jun 20, 2009 9:06 am
A Bit ya think LOL!!
mIRC Snippet:
Weather Script w/5-day Forecast
Posted on Jun 20, 2009 9:20 am
Posted on Jun 20, 2009 9:20 am
I as of yet have not had any problem with the pics loading or the 5 day forecast dialog closing. Although, I did add a line of coding to close the 5 day forecast dialog when I pressed the close button on the main dialog.
On *:Dialog:CurrentConditions:Sclick:26: { dialog -x 5-DayForecast 5-DayForecast }
On *:Dialog:CurrentConditions:Sclick:26: { dialog -x 5-DayForecast 5-DayForecast }
mIRC Snippet:
Weather Script w/5-day Forecast
Posted on Aug 7, 2009 2:28 pm
Posted on Aug 7, 2009 2:28 pm
FordLawnmower,
i Absolutely love your weather script. One feature I've allays wanted to see in a weather script is the ability for the script to pick up rss weather watches and warnings maybe from this page, http://www.nws.noaa.gov/rss/ . As i am terrible at sockets i was wondering if you could add this feature to the script so it would msg the watches an warnings to the channels.
Very cool script.
Thnx,
FordLawnmower
i Absolutely love your weather script. One feature I've allays wanted to see in a weather script is the ability for the script to pick up rss weather watches and warnings maybe from this page, http://www.nws.noaa.gov/rss/ . As i am terrible at sockets i was wondering if you could add this feature to the script so it would msg the watches an warnings to the channels.
Very cool script.
Thnx,
FordLawnmower
mIRC Snippet:
Weather Script w/5-day Forecast
Posted on Aug 7, 2009 4:00 pm
Posted on Aug 7, 2009 4:00 pm
Thanks mnhead :) I'll have a look at that site and see what I can do. It's probably not something that can be integrated into this script but perhaps there is another script there :)
mIRC Snippet:
Weather Script w/5-day Forecast
Posted on Sep 9, 2009 1:42 pm
Posted on Sep 9, 2009 1:42 pm
excellent script as always. thanks fordlawnmower. quick suggestion if i may could maybe possibly make two triggers one for the 5 day forecast and one that shows the current temperature.
mIRC Snippet:
Weather Script w/5-day Forecast
Posted on Sep 9, 2009 4:46 pm
Posted on Sep 9, 2009 4:46 pm
Thanks RicJames :)
If I make any changes to this, I'll completely re-write it.
Since I added the trigger as an afterthought to the dialogs, it would just be a muddy mess if I tried to exclude some items from the results.
I'll add this to my list of scripts to re-write and I'll add some more options for trigger results then. :)
If I make any changes to this, I'll completely re-write it.
Since I added the trigger as an afterthought to the dialogs, it would just be a muddy mess if I tried to exclude some items from the results.
I'll add this to my list of scripts to re-write and I'll add some more options for trigger results then. :)
mIRC Snippet:
Weather Script w/5-day Forecast
Posted on Sep 13, 2009 5:23 am
Posted on Sep 13, 2009 5:23 am
Cool I'll keep an eye out in case you ever decide to do it.














