Skip to main content.
^^
 Page Navigation Return To Scripts Page Download WDS WDS Tips & Tricks
WD Sparkline Graphics Banner

English Format
Local From
www.TNETWeather.com
Temp
Graphic: WD Sparkline Image
Barometer
Graphic: WD Sparkline Image
Humidity
Graphic: WD Sparkline Image
Wind Speed
Graphic: WD Sparkline Image
Wind Gust
Graphic: WD Sparkline Image
Rain
Graphic: WD Sparkline Image

Formato español
Local From
www.TNETWeather.com
Temeratura
Graphic: WD Sparkline Image
Presiónn
Graphic: WD Sparkline Image
Humedad
Graphic: WD Sparkline Image
Viento
Graphic: WD Sparkline Image
Rachas
Graphic: WD Sparkline Image
Precipitación
Graphic: WD Sparkline Image

Deens Format
Remote From
www.silkeborg-vejret.dk
Temp
Graphic: WD Sparkline Image
Barometer
Graphic: WD Sparkline Image
Fugtighed
Graphic: WD Sparkline Image
Vindhast
Graphic: WD Sparkline Image
Vindstad
Graphic: WD Sparkline Image
Regn
Graphic: WD Sparkline Image
WDS - WD Sparkline Graphics

WDS - WD Sparkline Graphics Utility


Introduction

The WDSParkline Graphics Utility (WDS) is a consolidation of a number of scripts that were originally posted by "Pinto" on the Weather-Watch Forum *EXT*.

These scripts use the Sparkline PHP Graphics Library *EXT* to generate Sparkline graphs of data contained inside of Weather-Display's *EXT* clientrawhour.txt raw data files. These raw data files contain the last 60 minutes of a number of weather instruments monitored by a weather station using Weather-Display software.

Key Features

Sample Graphs

To the right are a set of both English and Spanish sample WDS Sparkline graphs. These were generated from live data off the TNETWeather weather station. The images used by this page are actually statically generated by the WDS script using a Crontab entry on the server using the CLI mode of the script to fetch and save the images once every 5 minutes. This is just one of the ways that the scripts can be used.

Tips and Tricks


Frames And Borders

So just how did you get frames and a border to show up on the WDSprarkline Graphs... Mine don't have a frame and I see no option for it...

CSS was used to generate the frame around the Sparkline graphs. The code located in the external style sheet looks like:

Code Snippet:
.sparkline { 
    border: 1px solid #008000;
    border-right: 3px solid #008000;
    border-bottom: 3px solid #008000;
}

With that type CSS, you can then code your Sparkline Graphs like as follows:

Code Snippet:
<img src="WDS/wdsparkline.php?chart=temp&unit=fdeg"
   class="sparkline" />

Salt and Pepper to fit your own tastes, colors and whatnot and you have frames around your charts

Heavy Traffic Sites Use CLI Mode

You could be adding quite a load to your server serving dynamically generated images if you have a lot of visitors. In these cases, you might be better off having a script run via Crontab, that uses the WDS script in CLI mode to generate images at say, once every 1-5 minutes. Then have your pages point to those generated images instead of pointing at the WDS script itself. You serve a lot of static images then and you keep your server load down. Look in the WDS manual under Using Crontab

Unix: Use Symbolic Links to Shorten script names

Make your scripts and web pages paths loos smaller by using Symbolic links to the scripts.

Code Snippet:
ln -s wdsparkline.php wds.php

Now you can use WDS/wds.php to the script instead of WDS/wdsparkline.php. The symbolic link points to the same (longer) script name

Download:


Below is download information for the WDS scripts and documentation.
Current Version Release Date Download Documentation License Dontate
WDS v1.0.5 2007-11-22
15:28 US/Arizona
ZIP [313]
EXE [120]
TAR GZip [117]
Users Guide PDF [429] FreeWare
Distributed under BSD License
[XX] = Download Counts

Banners:

In case you want to have a banner showing what you are using...

200x40 Banner


WD Sparkline Graphics Banner

Code Snippet:
<a href="http://www.TNETWeather.com/scripts.php" 
     title="TNETWeather Scripts">
    <img scr="/www.TNETWeather.com/images/wds-banner-200x40.png"/>
</a>

350x71 Banner


WD Sparkline Graphics Banner

Code Snippet:
<a href="http://www.TNETWeather.com/scripts.php" 
     title="TNETWeather Scripts">
<img scr="/www.TNETWeather.com/images/wds-banner-350x71.png"/>
</a>


  Goto Top Of Page
Web Design by TNET   © 1992-2009 Copyright TNET Services, Inc.
Home | Privacy Statement | Site Map | About Us - TNETWebGen v2.6.1
Some images and designs (SM) TNET Services, Inc.
SWN Member