cloudy cloudy

Author Topic: WU Graphs 1.8.0  (Read 128740 times)

0 Members and 1 Guest are viewing this topic.

Offline RAD-X

  • Posts: 253
  • Hovezi, Czech Republic
    • Pocasi Hovezi
WU Graphs 1.8.0
« on: July 27, 2010, 03:26:20 AM »
I keep my promises. :)

WU graphs 1.8.0
 
Powered by Highcharts and jQuery UI
 
Features
  • Data source: Wunderground or MySQL Weather Display database
  • Graph switching with jQuery tabs and Ajax support
  • Year, Month , Day, Hour graphs
  • Caching. Without caching, from Wunderground data source is load time 2.5 - 12s (or even more - depends on actual load of Wunderground.com server). The cached WU content is loaded x-times faster (load time is +/-0.5s on my site). Same thing for MySQL WD data source.
  • Theming support
  • Datepicker for easy date selection.
  • Time and Y-axis value in tooltips
  • Zoom graph
  • Cookies support (selected graph tab, selected day/month/year in graph)
  • Separate graph window with custom sizing (linkable size, language and date)
  • Saratoga/CarterLake support for language switch with translation files
  • Custom extra text information for each graph in html format.
  • English/Metric units support (otherwise depends on the location of the server and its cookies)
  • Auto version checker
  • And some minor functions and other settings
  • Nice look :-)

Demo
http://pocasi.hovnet.cz/wxwugraphs.php?lang=en
Separate window - click on the window icon in the charts or use THIS link.
Standalone mode - http://pocasi.hovnet.cz/wugraphs.php?lang=en
Configuration page - http://pocasi.hovnet.cz/wxwugraphs/configurator-d.php

Download and more information at http://pocasi.hovnet.cz/wxwug.php?lang=en

Screenshot


Actual release info
v 1.8.0 (2011/09/05 11:30 UTC)
Transparent background choice for theme in configurator (from now default value); Added "Combined" datasource - useful if you started using WD MySQL and you want to have also available older data from Wunderground data source ; Added Portuguese and Serbian translation + updated Spanish translation ; Added preloader image when is graph loaded ; Removed blinking when graph is loaded ; Added support for datetime column in WD MySQL ; Fixed problem with WUG-ver.php and PHP servers configured with allow_url_fopen = off ; Fixed theme problem in Baro hour graphs ; Improved UV graphs look (changed to gradient area type); Fixed error in hour graphs (for clientrawhour source) if data is not numeric ('-' for missing measured values); Added language switch to Windowed mode ; Fixed saving problem in configurator for colorpicker ; Improved dependencies in configurator.php ; Small php optimization and bugfixies
--info about previous releases--
« Last Edit: September 05, 2011, 11:32:39 AM by RAD-X »
Radek
Weather Hovezi | WU graphs | DONATE
Yes. My English is bad. But the effort is appreciated. :happy8:

Offline TokKiwi

  • Techno Dad
  • Posts: 4,312
  • Mech Engineer and Hobbyist
  • Tokoroa, Sth Waikato, New Zealand
    • Tokoroa North Weather
Re: Wunderground graphs 0.75 Beta
« Reply #1 on: July 27, 2010, 05:49:28 AM »
Very impressive and intuitive.  Changing a tab takes about 3 secs here in NZ, but that may be more of an issue with local internet speed.  Very functional - well done!

Great for any template site, probably fine on an html site too provided the server has appropriate coding support available as well.  Hmm, may try that on mine, but my server in US has been down 24hrs now... :(

TK
Dad's have hobbies because they are children's rugby, football and Committee Fathers!!

Offline drobbins

  • Posts: 1,694
  • Kentucky, USA
    • Cave Country Weather
Re: Wunderground graphs 0.75 Beta
« Reply #2 on: July 27, 2010, 06:01:27 AM »
I like it and gave it a try. Here is the result so far (something is missing):
http://www.cavecountryweather.com/wxwugraphs.php

This is the result of the test:

Quote
WU graphs - test script for station
"Cave Country Weather"


TEST RESULTS:

    * Current PHP version: 5.1.6
    * WU Graphs location: "/virtual/users/e15586-16411/web/wxwugraphs/"
    * Cache directory: "/virtual/users/e15586-16411/web/wxwugraphs/cache/"
    * Cache directory is writable and caching is enabled
    * Multilinguage support: disabled
    * Default language: en
    * Tested language: **)
    * Used langugage: en - configured from default  *)
    * Used language file: "./languages/WUG-language-en.php" found
    * Used Datepicker language file: "./languages/datepicker/jquery.ui.datepicker-en.js" found
    * Available languages: cs, en,
    * Extra text: enabled
    * Version checker: enabled
    * Units: english

*) Normally is language set from COOKIE or from DEFAULT value configured in WUG-settings.php
COOKIE value is automatically taken only in WU Graphs tabbed mode from currently language set in Saratoga Carterlake templates.

**) For testing another language use URL parameter "lang".
For example: German language test will have adress "http://www.cavecountryweather.com/WUG-test.php?pw=XXXXXXXX&lang=de"
direct test link

Offline drobbins

  • Posts: 1,694
  • Kentucky, USA
    • Cave Country Weather
Re: Wunderground graphs 0.75 Beta
« Reply #3 on: July 27, 2010, 06:48:20 AM »
I had the wrong settings for the $loadJQuery = true; and $incTabsStyle = true;
Everything looks great Now!! Great Script!! =D> =D> =D>

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

 I had a few validation errors though, that are corrected. Maybe you have a better way :wink:
*wxwugraphs.php
    Line 95 </td> Added
    Line 96 </tr> Added
Had to change this
Code: [Select]
   <tr><td style="vertical-align:bottom;"><div id="WUG-foot">
';
require_once('./wxwugraphs/WUG-ver.php');

echo
'
    </div>
   </table>  
</div><!-- end main-copy -->

to this
Code: [Select]
 </div>
    </td>
</tr>

    

  
    
  </table> </div>
<!-- end main-copy -->


 
*WUG-ver.php
Line 47 <b> changed to <br />
« Last Edit: July 27, 2010, 06:50:37 AM by drobbins »

Offline jwwd

  • WML testers
  • Posts: 3,687
  • Silkeborg, Denmark (56:10:58 N-09:30:26 E) - Elevation 75,35 meters
    • Weather at Silkeborg, Denmark
Re: Wunderground graphs 0.75 Beta
« Reply #4 on: July 27, 2010, 07:17:38 AM »
Hi

WOW - thank you very much for a great script.

I have tried it - but have some problems getting it to work in standalone version:

http://www.silkeborg-vejret.dk/scripts/wug/wugraphs.php

I have theese settings:

$standAlone = true;  // true = use wugraphs.php (also you may need set $loadJQuery and $incTabsStyle to true)
$includeMode = false; // true = included by PHP include function (eg: include('wugraphs.php'); )

Best regards,

Henrik

Offline TokKiwi

  • Techno Dad
  • Posts: 4,312
  • Mech Engineer and Hobbyist
  • Tokoroa, Sth Waikato, New Zealand
    • Tokoroa North Weather
Re: Wunderground graphs 0.75 Beta
« Reply #5 on: July 27, 2010, 07:18:42 AM »
Well done Dave - good response and support!

I have just had an evening meal and a few wines, will try it out when I can, I'll just have to make a new page... ;)

G
Dad's have hobbies because they are children's rugby, football and Committee Fathers!!

Offline drobbins

  • Posts: 1,694
  • Kentucky, USA
    • Cave Country Weather
Re: Wunderground graphs 0.75 Beta
« Reply #6 on: July 27, 2010, 10:55:01 AM »
Well I couldn't sleep last night, and getting this going kept me up till 2:00am. Now it is 6:00am and time for work  :sleepy1: One question: How can I get rid of the bad wind spike data from my last station?  :?

Offline BigOkie

  • Posts: 685
  • Tulsa, OK
    • East Tulsa (Douglas)
Re: Wunderground graphs 0.75 Beta
« Reply #7 on: July 27, 2010, 01:46:50 PM »
Well I couldn't sleep last night, and getting this going kept me up till 2:00am. Now it is 6:00am and time for work  :sleepy1: One question: How can I get rid of the bad wind spike data from my last station?  :?

You'd have to manually edit that spike data out on Wunderground.

Offline wslangerak

  • Kees
  • Posts: 549
  • Langerak (ZH) - The Netherlands
    • Weerstation Langerak
Re: Wunderground graphs 0.75 Beta
« Reply #8 on: July 27, 2010, 02:17:56 PM »
You'd have to manually edit that spike data out on Wunderground.

Yes, but the month-max value unfortunately does not dissappear (in my case with temp-spikes) ....


I implemented parts of these scripts on my site:

http://www.weerstationlangerak.nl/drupal/actueel

http://www.weerstationlangerak.nl/drupal/historie

Thanks for sharing!
« Last Edit: July 27, 2010, 02:21:08 PM by wslangerak »
the delicate sound of thunder.....


Offline RAD-X

  • Posts: 253
  • Hovezi, Czech Republic
    • Pocasi Hovezi
Re: Wunderground graphs 0.75 Beta
« Reply #9 on: July 27, 2010, 02:19:25 PM »
Hi
WOW - thank you very much for a great script.
I have tried it - but have some problems getting it to work in standalone version:
http://www.silkeborg-vejret.dk/scripts/wug/wugraphs.php
I have theese settings:
$standAlone = true;  // true = use wugraphs.php (also you may need set $loadJQuery and $incTabsStyle to true)
$includeMode = false; // true = included by PHP include function (eg: include('wugraphs.php'); )
Hi Henrik and thanks.
You need set $loadJQuery and $incTabsStyle to true (in new version is in default).  :oops:

I had the wrong settings for the $loadJQuery = true; and $incTabsStyle = true;
Everything looks great Now!! Great Script!! =D&gt; =D&gt; =D&gt;

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

 I had a few validation errors though, that are corrected. Maybe you have a better way :wink:
Hi drobbins,
thank for betatesting.  :) I released new version (0.7.6b). Validation problem could cause a wrong path to wz_toolitp (fixed).

BTW (to all): It is a "bad idea" change the copyright and other links. :( Especially reference to wunderground must be included. Rest is propriety.
Radek
Weather Hovezi | WU graphs | DONATE
Yes. My English is bad. But the effort is appreciated. :happy8:

Offline jwwd

  • WML testers
  • Posts: 3,687
  • Silkeborg, Denmark (56:10:58 N-09:30:26 E) - Elevation 75,35 meters
    • Weather at Silkeborg, Denmark
Re: Wunderground graphs 0.75 Beta
« Reply #10 on: July 27, 2010, 02:42:06 PM »
Hi again

Thanks for your reply. I have now changed to true in $loadJQuery and $incTabsStyle - but still some kind of problem:

http://www.silkeborg-vejret.dk/scripts/wug/wugraphs.php

Best regards,

Henrik

Offline RAD-X

  • Posts: 253
  • Hovezi, Czech Republic
    • Pocasi Hovezi
Re: Wunderground graphs 0.75 Beta
« Reply #11 on: July 27, 2010, 03:05:33 PM »
Hi again

Thanks for your reply. I have now changed to true in $loadJQuery and $incTabsStyle - but still some kind of problem:

http://www.silkeborg-vejret.dk/scripts/wug/wugraphs.php

Best regards,

Henrik
Sorry, my fault.  #-o
You must change in file iframe-inc.php
Code: [Select]
$wugraphdir = '../wxwugraphs/'to
Code: [Select]
$wugraphdir = './wxwugraphs/'
Will be fixed in new version (probably tomorrow).

Edit: I stuffed this fix into the current version (0.7.6b) ...  :)

« Last Edit: July 27, 2010, 03:12:29 PM by RAD-X »
Radek
Weather Hovezi | WU graphs | DONATE
Yes. My English is bad. But the effort is appreciated. :happy8:

Offline i_fiorentino

  • Alessandro Bardi
  • Posts: 1,679
  • 150 mls Candeglia (Pt), Tuscany, Italy
    • Meteopistoia.it
Re: Wunderground graphs 0.75 Beta
« Reply #12 on: July 27, 2010, 03:17:35 PM »
Hi drobbins,
i've installed your great script and passed the test here:http://www.meteocarmignano.it/wxwugraphs/WUG-test.php (I'll make an italian language file soon!)

But this link not found.....why? http://www.meteocarmignano.it/wxwugraphs.php

Thanks in advance for any help,

Alessandro

Offline wslangerak

  • Kees
  • Posts: 549
  • Langerak (ZH) - The Netherlands
    • Weerstation Langerak
Re: Wunderground graphs 0.75 Beta
« Reply #13 on: July 27, 2010, 03:19:21 PM »
Hi drobbins,
i've installed your great script and passed the test here:http://www.meteocarmignano.it/wxwugraphs/WUG-test.php (I'll make an italian language file soon!)

But this link not found.....why? http://www.meteocarmignano.it/wxwugraphs.php

Thanks in advance for any help,

Alessandro

See the post above your's ?
the delicate sound of thunder.....


Offline RAD-X

  • Posts: 253
  • Hovezi, Czech Republic
    • Pocasi Hovezi
Re: Wunderground graphs 0.75 Beta
« Reply #14 on: July 27, 2010, 03:26:16 PM »
Hi drobbins,
i've installed your great script and passed the test here:http://www.meteocarmignano.it/wxwugraphs/WUG-test.php (I'll make an italian language file soon!)

But this link not found.....why? http://www.meteocarmignano.it/wxwugraphs.php

Thanks in advance for any help,

Alessandro
Hi Alessandro,
try download new version (strongly recomended) or modify your files as described at:
http://www.weather-watch.com/smf/index.php/topic,46621.msg378728.html#msg378728
and
http://www.weather-watch.com/smf/index.php/topic,46621.msg378732.html#msg378732
« Last Edit: July 27, 2010, 03:33:27 PM by RAD-X »
Radek
Weather Hovezi | WU graphs | DONATE
Yes. My English is bad. But the effort is appreciated. :happy8:

 

cumulus