cloudy

Author Topic: WU Graphs 1.8.0  (Read 48879 times)

0 Members and 2 Guests are viewing this topic.

Offline RAD-X

  • Posts: 234
  • Hovezi, Czech Republic
    • Pocasi Hovezi
Re: Wunderground graphs 0.7.6 Beta
« Reply #30 on: July 27, 2010, 06:44:25 PM »
Hi RAD-X

I tested in firefox the graph is perfect.
 But Explorer will not go.

Maybe you can help?

http://www.huweather.com/wxwugraphs.php


Please be more specific.
The problem is the charset?
If so, maybe you used a bad php editor. My scripts are written in UTF-8. Try better text editor like eg: http://www.pspad.com/
To fix corruped (maybe) files you can try in PSPad:
- open php file in pspad
- ctr+a
- menu -> format -> click on UTF-8 (even though is checked) or you can try click to ISO 8859-2 especially for wxwugraphs.php and maybe others
- ctrl+s
- copy modified file to yourwebsite and test.

If not work, try another method of conversion of character sets.

Also your language file is corrupted - causing header error on my pages. Above-mentioned procedure solve header errors.

Also I found bug in WUG language switch (working on it).
« Last Edit: July 27, 2010, 06:52:48 PM by RAD-X »
Radek
Weather Hovezi | WU graphs | DONATE
Yes. My English is bad. But the effort is appreciated. :happy8:

Offline mfd38

  • Posts: 727
  • Massachusetts
    • Medfield, MA Weather
Re: Wunderground graphs 0.7.6 Beta
« Reply #31 on: July 27, 2010, 06:56:05 PM »
Hi Rad-X,

I have followed the instructions you provided yet I must not be doing something properly. Would you mind taking a look here:

http://www.medfieldweather.com/wxwugraphs.php

Thank you,
Paul

Offline i_fiorentino

  • Alessandro Bardi
  • Posts: 1,439
  • 160 mls Carmignano (Po), Tuscany, Italy
    • Meteocarmignano.it
Re: Wunderground graphs 0.7.6 Beta
« Reply #32 on: July 27, 2010, 07:10:11 PM »
Hi RAD-X,
i've installed the new version and it works ok here: http://www.meteocarmignano.it/wxwugraphs.php
Please, could you insert my site like "user" of this script?
As soon as possible i'll create an italian translation file....
Many thanks for your support,

Alessandro

Offline RAD-X

  • Posts: 234
  • Hovezi, Czech Republic
    • Pocasi Hovezi
Re: Wunderground graphs 0.7.6 Beta
« Reply #33 on: July 27, 2010, 07:14:12 PM »
Hi Rad-X,

I have followed the instructions you provided yet I must not be doing something properly. Would you mind taking a look here:

http://www.medfieldweather.com/wxwugraphs.php

Thank you,
Paul

Hi Paul, this file http://www.medfieldweather.com/wxwugraphs/js/jquery.cookie.js is missing on your website.

Please, could you insert my site like "user" of this script?
As soon as possible i'll create an italian translation file....
Thanks Alessesandro. Check link to your website. :)
« Last Edit: July 27, 2010, 07:53:53 PM by RAD-X »
Radek
Weather Hovezi | WU graphs | DONATE
Yes. My English is bad. But the effort is appreciated. :happy8:

Offline jpmorgan49

  • JP
  • Posts: 316
  • Joliet, Il
    • jolietwx.com
Re: Wunderground graphs 0.7.6 Beta
« Reply #34 on: July 27, 2010, 07:15:51 PM »
Thanks jp.
You have a little hidden overflow in graphs. Try change Graphs Size in WUG-settings.php ($wugWidth and $wugHeight).

I think I have it, I just adjusted the width to '725'.  Does it look OK to you?  Thanks.
jp

http://www.jolietwx.com/wxwugraphs.php


Davis Vantage Pro2 Plus Wireless
WeatherLink Serial Datalogger
Iogear Serial to USB adapter
Acer Revo 3610 Nettop computer
Windows 7 64-bit

Offline mfd38

  • Posts: 727
  • Massachusetts
    • Medfield, MA Weather
Re: Wunderground graphs 0.7.6 Beta
« Reply #35 on: July 27, 2010, 07:19:52 PM »
Hi Paul, this file http://www.medfieldweather.com/wxwugraphs/js/jquery.cookie.js is missing on your website.

Thanks Rad-X, but where do I place it - does it go on the wxwugraph.php file, if so where?

Sorry for all the questions, I appreciate your help.

Add: It does show here in the wxwugraphs.php:

if ($loadJQuery) {
echo '<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>';
echo '<script type="text/javascript" src="./wxwugraphs/js/jquery.cookie.js"></script>';
echo '<script type="text/javascript" src="./wxwugraphs/js/jq-core-widget-tabs.min.js"></script>';
}
« Last Edit: July 27, 2010, 07:22:04 PM by mfd38 »

Offline RAD-X

  • Posts: 234
  • Hovezi, Czech Republic
    • Pocasi Hovezi
Re: Wunderground graphs 0.7.6 Beta
« Reply #36 on: July 27, 2010, 07:42:08 PM »
Thanks Rad-X, but where do I place it - does it go on the wxwugraph.php file, if so where?
Nope. Copy file "jquery.cookie.js" to "wxwugraphs/js/" directory on your website. :)
Maybe this file was not copied or is damaged.

I think I have it, I just adjusted the width to '725'.  Does it look OK to you?  Thanks.
jp

http://www.jolietwx.com/wxwugraphs.php
I don't know, but active area in your pages for this graphs is 639px, so try change $wugWidth value to 639 or something close to this value. 8)
Radek
Weather Hovezi | WU graphs | DONATE
Yes. My English is bad. But the effort is appreciated. :happy8:

Offline jpmorgan49

  • JP
  • Posts: 316
  • Joliet, Il
    • jolietwx.com
Re: Wunderground graphs 0.7.6 Beta
« Reply #37 on: July 27, 2010, 07:53:57 PM »
I don't know, but active area in your pages for this graphs is 639px, so try change $wugWidth value to 639 or something close to this value. 8)

I set it to 639 and it looks better.  "You the Man", thanks.
jp

http://www.jolietwx.com/wxwugraphs.php


Davis Vantage Pro2 Plus Wireless
WeatherLink Serial Datalogger
Iogear Serial to USB adapter
Acer Revo 3610 Nettop computer
Windows 7 64-bit

Offline mfd38

  • Posts: 727
  • Massachusetts
    • Medfield, MA Weather
Re: Wunderground graphs 0.7.6 Beta
« Reply #38 on: July 27, 2010, 07:54:09 PM »
Quote
Nope. Copy file "jquery.cookie.js" to "wxwugraphs/js/" directory on your website.
Maybe this file was not copied or is damaged.

The jquery.cookie.js file did exist in the wxwugraphs.js directory, I uploaded a new copy of it as you suggested but it has not made a difference.

Offline RAD-X

  • Posts: 234
  • Hovezi, Czech Republic
    • Pocasi Hovezi
Re: Wunderground graphs 0.7.6 Beta
« Reply #39 on: July 27, 2010, 08:16:06 PM »
The jquery.cookie.js file did exist in the wxwugraphs.js directory, I uploaded a new copy of it as you suggested but it has not made a difference.

O.K. In this case the problem is probably caused by something on the server. Maybe some caching or I don't know ...  :-k
The link http://www.medfieldweather.com/wxwugraphs/js/jquery.cookie.js must be functional, but I getting a "404 error".
Try rename the file "jqery.cookie.js" to "jqc.js" in yours website and in php scripts.

Add: this is "406 error" - my mistake. So server side problem/restriction. But I don't know how to solve it.
« Last Edit: July 27, 2010, 08:23:38 PM by RAD-X »
Radek
Weather Hovezi | WU graphs | DONATE
Yes. My English is bad. But the effort is appreciated. :happy8:

Offline mfd38

  • Posts: 727
  • Massachusetts
    • Medfield, MA Weather
Re: Wunderground graphs 0.7.6 Beta
« Reply #40 on: July 27, 2010, 08:28:20 PM »
Quote
Try rename the file "jqery.cookie.js" to "jqc.js" in yours website and in php scripts.

Bingo! That did it  :D   http://www.medfieldweather.com/wxwugraphs.php

Thank you very much Radek.  Great script. I appreciate your patience and effort to help me out.

Paul


Edit: hmmm...did work for a few updates #-o
« Last Edit: July 27, 2010, 08:30:24 PM by mfd38 »

Offline RAD-X

  • Posts: 234
  • Hovezi, Czech Republic
    • Pocasi Hovezi
Re: Wunderground graphs 0.7.6 Beta
« Reply #41 on: July 27, 2010, 08:38:00 PM »
Bingo! That did it  :D   http://www.medfieldweather.com/wxwugraphs.php

So, where was the problem?
Edit: I see... http://www.medfieldweather.com/wxwugraphs/js/jqc.js So server side filename restriction... :)
« Last Edit: July 27, 2010, 08:41:33 PM by RAD-X »
Radek
Weather Hovezi | WU graphs | DONATE
Yes. My English is bad. But the effort is appreciated. :happy8:

Offline jwwd

  • Posts: 3,561
  • Silkeborg, Denmark (56:10:58 N-09:30:26 E) - Elevation 75,35 meters
    • Weather at Silkeborg, Denmark
Re: Wunderground graphs 0.7.6 Beta
« Reply #42 on: July 27, 2010, 08:43:07 PM »
Hi again Henrik,
  • Some PHP functions do not work with website paths like "http://yourwebsite.com/dir/subdir/a.php".
    Full paths like "/home/web/public/WWW/dir/subdir/a.php" are no problem.
  • You may use iframe method. Just put to your page wugrafer.php <iframe src="http://www.silkeborg-vejret.dk/scripts/wug/wugraphs.php" width="580" height="690" scrolling="no"></iframe>
  • Why not upload the scripts to the root directory?
    In my manual is written:
    "Copy directory" wxwugraphs "and file" wxwugraphs.php "the root of your website"
    There are reasons why. :)
This is a difficult task and I am not able to resolve it now.  :(

Hi

Thanks for your reply. Got it working by the <iframe> method. (www.silkeborg-vejret.dk/wugrafer.php)

Code: [Select]
[b]Why not upload the scripts to the root directory?[/b]I have all my scripts located in a subfolder, aswell as all my wx-data are located in another subfolder - in that way I got a "clean" root folder and I prefer that. I know it gives me a lot of troubles  :D

I have attached translationfiles in Danish - hope you can add them to your .zip.

Best regards,

Henrik

Offline mfd38

  • Posts: 727
  • Massachusetts
    • Medfield, MA Weather
Re: Wunderground graphs 0.7.6 Beta
« Reply #43 on: July 27, 2010, 08:43:21 PM »
Quote
Bingo! That did it     http://www.medfieldweather.com/wxwugraphs.php

So, where was the problem?
Edit: I see... http://www.medfieldweather.com/wxwugraphs/js/jqc.js So server side filename restriction...

But for some reason now it won't load - site says it is Not Acceptable and has a 404 error message.
 Could be restricted again?
« Last Edit: July 27, 2010, 08:53:09 PM by mfd38 »

Offline i_fiorentino

  • Alessandro Bardi
  • Posts: 1,439
  • 160 mls Carmignano (Po), Tuscany, Italy
    • Meteocarmignano.it
Re: Wunderground graphs 0.7.6 Beta
« Reply #44 on: July 27, 2010, 08:50:07 PM »
Hi RAD-X,
here is the italian translation file for your great, great script.
Best regards,

Alessandro

 

cumulus