vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   vB Weather Mk. 2 (https://vborg.vbsupport.ru/showthread.php?t=41842)

al98t 04-01-2003 06:47 PM

yeah i still see sometimes it works, and sometimes it doesnt.. that kinida sucks.

PennylessZ28 04-02-2003 12:55 PM

Thank you, I have been scratching my head about this one for well over two weeks now. Lucky me I finally checked the thread out.

The fix worked, good work guys. Great to see everyone helping each other!

lemarsu 04-02-2003 05:10 PM

Hi,

Is it just me or has it stoped working for every contry except the US?

LeMarsu

lemarsu 04-02-2003 06:35 PM

:banana: :bunny:

Hey .... it is working now... been looking at it all day at work.. trying to find a work around

But now it is working again !

:banana:
LeMarsu

Katarn 04-02-2003 08:50 PM

Our members say it works for them, even internationally.

Thanks to lemarsu for the help. FYI for all those out there. You need to apply the fix to both the weather.php and index.php.

If you apply to only to weather.php you will only see the detailed weather work, and the frontpage will only work when you force update.

If you apply to only index.php, the frontpage part will only work....

If you have a portal, you need to change that as well....

Lionel 04-03-2003 05:45 PM

it stopped working for me

jbear6 04-03-2003 06:02 PM

It's working fine here, just like when originally installed. It might go down for a few minutes here and there, but that has always happened.

Jbear6

o0stephane0o 04-04-2003 01:31 AM

Big problem in deed, here is the mail I have sent to JJR512
Read carefully if you have installed the weather hack.
Hi, I really love your hack and I think it´s great but unfortunatly, I cannot make it work with Spain. I tried with the V3.0 and the v 3.01. I also tried with the VBulletin 2.29 and 2.30 but I get the same problem.
I have checked your webiste to see if it was working but it didn´t. So try to put any cities in Spain like Madrid or Barcelona. It just says they aren´t there but when you check your tables, they are all there.
And if you go to the nbc page, it does works there. Any idea of what could be the problem?
I hope you can help me with this problem because if soemone wants to ++++ around, he only has to chose Spain and you will get a SQL Error.
Quite annoying.
Hope you will have the time to answer me. If I can help, do not hesitate in contacting me.
Thanks you.

lemarsu 04-04-2003 07:59 AM

ok,

I see the problem there is no data for Spain in `weather_city` table...

LeMarsu

lemarsu 04-04-2003 08:37 AM

ok,

I compiled you some SQL that you will need to run in mySQL, this will populate `weather_city` table with all the cities in Spain and it should all work with no problems.
There are 189 cities from Agreda to Zaragoza.

LeMarsu

o0stephane0o 04-04-2003 10:35 AM

Wow, you are amazing, I?ll try it right now, Thanks a llot ;)

scottct1 04-04-2003 12:30 PM

I don't know why but a lot of users are requesting I make the Iraqi weather available, anyone know if this is possible?

My forecast for Iraq is a good chance of bombing tonight, more of the same tommorow. :) Go USA!

lemarsu 04-04-2003 02:39 PM

Quote:

Today at 02:30 PM scottct1 said this in Post #332
I don't know why but a lot of users are requesting I make the Iraqi weather available, anyone know if this is possible?

My forecast for Iraq is a good chance of bombing tonight, more of the same tommorow. :) Go USA!

Scott,

The weather for Iraq, should be working, just check you have codes
IZXX0001
IZXX0002
IZXX0003
to
IZXX0012

In your `weather_city`table. They are in my forum.

LeMarsu.


PS: I have lived through a war and I would like to inform you that spending the night wondering if a missile is going to hit your house and kill you and you family or bury you all alive is not something you wish to happen to other people, I hope it doesn?t ever happen to you.
End of this conversation please

o0stephane0o 04-04-2003 05:10 PM

I m loking for bugs and i have found a new one.
Australia dosenst work either but this time, it looks different.
I think the cities haven´t been created.

lemarsu 04-04-2003 06:43 PM

The problem is that you need to pick a Country to force the refresh....
so pick New Zealand, the go back to Australia.... and.... et Voila !

It works..

LeMarsu

o0stephane0o 04-04-2003 10:11 PM

Great work though i have a small error with the spanish stuff.
when executing the sql queries, i get an error message about the following INSERT INTO weather_city VALUES ('SPXX0049', 'L´Hospitalet de Llobregat', 211); but changing it to INSERT INTO weather_city VALUES ('SPXX0049', 'L Hospitalet de Llobregat', 211); it works.
But after that, i get some strange errors. Did you try it? Did it work ?
By the way lemarsu, are you french or belgian?
Thanks for your time..
:banana:

Etcher 04-04-2003 11:34 PM

is there an easy way to remove the country, cities, and such that will not be used? I am from Canada, and my members are ONLY from Canada, therefor the others will never be used... With them all in there, it is taking a huge amound of database space.

lemarsu 04-04-2003 11:38 PM

Stephane,

I have edited the sql attachment for Spain... Sorry I was at work and I didn't fully test it out I only ran the first 5 towns.... What a bad tester !!!

I am actually Lebanese (hence the little comment for scottct1), but I had a French education....

LeMarsu

lemarsu 04-04-2003 11:55 PM

Quote:

Today at 01:34 AM Etcher said this in Post #337
is there an easy way to remove the country, cities, and such that will not be used? I am from Canada, and my members are ONLY from Canada, therefor the others will never be used... With them all in there, it is taking a huge amound of database space.

Etcher,

To delete everything that is not Canada I suggest you do the following:
As the biggest table is weather_city, just concentrate on that one. You will need to run the delete statement bellow that will get rid of 36721 rows, NOTE THIS WILL GET RID OF EVERY CITY IN THE WORLD APPART FROM CANADA the countries will still be there if you need them in the future.

[b]ps I have not tested the SQL[b]
Code:

DELETE FROM `weather_city` WHERE `accid` NOT LIKE 'CAXX%'

o0stephane0o 04-05-2003 08:37 AM

French education, now I understand where you got your nick from...
I am insisting again about the weather hack but it?s only because I really like it and i cannot make it working fine :(

What do i have to do with spain.sql to make it working?
And what is the following error:
[socketerror] cannot connect to www.msnbc.com.... blblabla 80
Un truc dans le genre...

Thanks for your knowledge.

Etcher 04-06-2003 03:05 AM

Awsome, thank you...
That is a HUGE DB, that must have taken weeks to make, and less than 2 seconds to delete.... and that worked, and took 900,000+ out of the DB

Fantastic job though, great hack...




Quote:

Yesterday at 08:55 PM lemarsu said this in Post #339
[B]Etcher,

To delete everything that is not Canada I suggest you do the following:
As the biggest table is weather_city, just concentrate on that one. You will need to run the delete statement bellow that will get rid of 36721 rows, NOTE THIS WILL GET RID OF EVERY CITY IN THE WORLD APPART FROM CANADA the countries will still be there if you need them in the future.

[b]ps I have not tested the SQL
Code:

DELETE FROM `weather_city` WHERE `accid` NOT LIKE 'CAXX%'


PennylessZ28 04-07-2003 02:58 PM

Quote:

04-04-03 at 09:55 PM lemarsu said this in Post #339
[B]Etcher,

To delete everything that is not Canada I suggest you do the following:
As the biggest table is weather_city, just concentrate on that one. You will need to run the delete statement bellow that will get rid of 36721 rows, NOTE THIS WILL GET RID OF EVERY CITY IN THE WORLD APPART FROM CANADA the countries will still be there if you need them in the future.

[b]ps I have not tested the SQL
Code:

DELETE FROM `weather_city` WHERE `accid` NOT LIKE 'CAXX%'


What about everything but America, who cares about Canada! :)

drumsy 04-07-2003 04:20 PM

How would I add the type "Heavy Rain" to the board? It's coming up as Unknown Type on the board but I see it as Heavy Rain on MSNBC.

BTW, Installed, love it! :) Great fix by the other gentleman! :)

lemarsu 04-07-2003 05:09 PM

Quote:

Today at 04:58 PM HR3rdGen said this in Post #342
What about everything but America, who cares about Canada! :)
like So :
Code:

DELETE FROM `weather_city` WHERE `accid` NOT LIKE 'US%'

drumsy 04-07-2003 06:28 PM

Ok, now all of a sudden the "H O N D A - A C U R A . N E T Weather is provided by The Weather Channel and MSNBC " table is blacked out. It was fine before. I've changed nothing! What could have done this?

auz1111 04-08-2003 05:25 PM

lemarsu! lemarsu! you helped a lot. thanks!

drumsy 04-14-2003 02:41 PM

Quote:

04-07-03 at 03:22 PM drumsy said this in Post #345
Ok, now all of a sudden the "H O N D A - A C U R A . N E T Weather is provided by The Weather Channel and MSNBC " table is blacked out. It was fine before. I've changed nothing! What could have done this?

Anyone?

drumsy 04-16-2003 10:27 PM

Quote:

04-14-03 at 10:41 AM drumsy said this in Post #347
Anyone?

Help, and also it seems the weather data just took a vacation! :(

o0stephane0o 04-17-2003 12:37 AM

i´ve checked several sites and all of them are working, must be your server. That hack is very fussy and needs a server with a specific config, lok for another one or use your pc as a server. I use easyphp and it works perfect...

lemarsu 04-17-2003 06:58 AM

Quote:

04-07-03 at 07:28 PM drumsy said this in Post #345
Ok, now all of a sudden the "H O N D A - A C U R A . N E T Weather is provided by The Weather Channel and MSNBC " table is blacked out. It was fine before. I've changed nothing! What could have done this?

just had a look at : http://www.honda-acura.net/forums

Look like all is well can you give us more info ?
Like the country/town it is not working for ?

LeMarsu

Jakor Sevel 04-21-2003 03:34 AM

it's not showing up, for every city and state it says 0 degrees and all that, no pics are showing up and I installed everything right. Is something wrong or is my server just being a punk?

drumsy 05-02-2003 06:40 PM

Quote:

04-17-03 at 03:58 AM lemarsu said this in Post #350
just had a look at : http://www.honda-acura.net/forums

Look like all is well can you give us more info ?
Like the country/town it is not working for ?

LeMarsu


Actually, jump into the Detailed Forcast and look at the bottom.

Username: test
Password: test

Take a look at "H O N D A - A C U R A . N E T Weather is provided by The Weather Channel and MSNBC" and you'll see that it's not showing the correct background color. If you go into User CP, Edit Options, and change style to worksafe, then go to the same page, it's totally blacked out this time.

drumsy 05-02-2003 06:40 PM

This is the same problem in my worksafe style..

drumsy 05-06-2003 03:57 PM

Anyone?

Zach 05-15-2003 10:46 AM

Quote:

04-20-03 at 09:34 PM Jakor Sevel said this in Post #351
it's not showing up, for every city and state it says 0 degrees and all that, no pics are showing up and I installed everything right. Is something wrong or is my server just being a punk?

Naw, its not working, the data exists but its not getting broken up in there.

Zach 05-15-2003 11:16 AM

PHP Code:

<?xml version="1.0" ?> 
- <Weather>
- <Error Type="0">
  <Text /> 
  </Error>
- <SWA>
- <A ID="">
  <T /> 
  <L /> 
  </A>
  </SWA>
- <CC>
  <T>56</T> 
  <FL>56</FL> 
  <Cond>Fair</Cond> 
  <I>34</I> 
  <Ud>5/15/03 7:51 AM EDT as reported at Central Park, NY</Ud> 
  <DN>New York, NY</DN> 
- <Pr>
  <R>30.15</R> 
  <D>rising</D> 
  </Pr>
- <W EI="From the Northwest at 6">
  <S>6</S> 
  <D>NW</D> 
  </W>
  </CC>
- <F>
- <Day D="0" Dt="May 15">
  <PC>10</PC> 
  <H>67</H> 
  <Lo>50</Lo> 
  <Hi>64</Hi> 
  <Aftr2>F</Aftr2> 
  <TomLo /> 
  <TomHi /> 
  <Ss>8:06 PM</Ss> 
  <Sr>5:39 AM</Sr> 
- <HF Order="1" twcH="9">
  <T>57</T> 
  <FL>57</FL> 
  <I>30</I> 
  </HF>
- <HF Order="2" twcH="10">
  <T>59</T> 
  <FL>59</FL> 
  <I>30</I> 
  </HF>
- <HF Order="3" twcH="11">
  <T>61</T> 
  <FL>N/A</FL> 
  <I>30</I> 
  </HF>
- <HF Order="4" twcH="12">
  <T>62</T> 
  <FL>N/A</FL> 
  <I>30</I> 
  </HF>
- <HF Order="5" twcH="13">
  <T>63</T> 
  <FL>N/A</FL> 
  <I>28</I> 
  </HF>
- <HF Order="6" twcH="14">
  <T>63</T> 
  <FL>N/A</FL> 
  <I>28</I> 
  </HF>
- <HF Order="7" twcH="15">
  <T>62</T> 
  <FL>N/A</FL> 
  <I>28</I> 
  </HF>
- <HF Order="8" twcH="16">
  <T>61</T> 
  <FL>N/A</FL> 
  <I>28</I> 
  </HF>
- <HF Order="9" twcH="17">
  <T>60</T> 
  <FL>58</FL> 
  <I>28</I> 
  </HF>
- <HF Order="10" twcH="18">
  <T>59</T> 
  <FL>57</FL> 
  <I>28</I> 
  </HF>
- <HF Order="11" twcH="19">
  <T>58</T> 
  <FL>55</FL> 
  <I>28</I> 
  </HF>
- <HF Order="12" twcH="20">
  <T>57</T> 
  <FL>54</FL> 
  <I>26</I> 
  </HF>
  </Day>
  </F>
- <wx.com>
  <V>210</V> 
  <UB /> 
  <CR>Copyright 1995-2002, The Weather Channel Enterprises, Inc.</CR> 
  </wx.com>
  </Weather>





Somehow that seems like the start of the right approach

DonLKSAB 05-20-2003 10:01 AM

Exelent hack.

Quick question.

Any way to have the :
Winds:
WSW 40 km/h

Showing im m/s ( meter / second )

/DonLKSAB

ogden2k 06-04-2003 10:08 PM

Cool hack!

How do I hide this feature to guests?

ogden2k 06-05-2003 07:50 PM

Quote:

Yesterday at 07:08 PM ogden2k said this in Post #358
Cool hack!

How do I hide this feature to guests?

Bump

tomsch 06-06-2003 12:05 AM

ok what did i do wrong i installed this hack on 2.3.0

i get the current weather coming up for the default nyc but when i click detailed forcast or change settings i get an error

no input file specified in weather.php.

ok got that prob fixed.(and no i don't know what the prob was)

the only problem i have now ithe the last update time is wrong

any ideas on that one??


All times are GMT. The time now is 11:34 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01660 seconds
  • Memory Usage 1,841KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_code_printable
  • (1)bbcode_php_printable
  • (11)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete