Author Topic: Weather Graphic SW 6.1 available.  (Read 3126 times)

0 Members and 1 Guest are viewing this topic.

Offline Anole

  • Forecaster
  • *****
  • Posts: 585
    • http://pineislandweather.com
Weather Graphic SW 6.1 available.
« on: June 27, 2007, 07:54:15 PM »
The software formerly referred to as "weather sticker", which it turns out is a registered trademark of Weather Underground, has been renamed as "weather graphics" and is now available in version 6.1 at:

http://scripts.anolecomputer.com/download.shtml

This change has resulted in a number of significant impacts particularly if you are attempting to upgrade the script from an older version or if you have made modifications to the script to customize it to your needs:
    "sticker.php" has been renamed "wxgraphic.php".

    Function "write_sticker" has been renamed "write_default".

    wxgraphic.php variable "$sticker_icon" has been renamed "$default_icon"

    The config.txt variables "$sticker_icon_x" and "$sticker_icon_y" have been renamed "$default_icon_x" and "$default_icon_y" respectively.

    All graphics named "sticker" are now renamed "default". ie: default.gif, default.png, default.jpeg This is something that I'd been wanting to change for a while but I didn't have a good reason to do so until now.

    All references to the previously named "sticker" graphic are now referenced as "default". This includes function calls within the script. This may be important to you if you have made any modifications to the script.

Additionally:
    Transparency support is now turned off by default.

    Base image creation has been simplified.

Otherwise, functionality is unchanged. You should be able to use your existing 5.x config.txt file if you make the following changes:
    Replace any and all occurrences of "$sticker_icon_x" with "$default_icon_x"
    Replace any and all occurrences of "$sticker_icon_y" with "$default_icon_y"
    Replace any and all occurrences of "write_sticker()" with "write_default()"

If you have set up any redirects be sure to update them to point to the new script name and as always, if you find any bugs let me know.

Offline m77

  • Forecaster
  • *****
  • Posts: 878
Re: Weather Graphic SW 6.1 available.
« Reply #1 on: February 15, 2010, 03:49:53 PM »
Awesome.......

I have tried to rig this up and have this:

www.maidenerleghweather.com/wxgraphic.php?type=banner

But I cannot see how to populate the GUST statistic.

I am not using live data yet, but my data file is

www.maidenerleghweather.com/datafile.txt

I am not using wd, and so have created my own datafile, rather than rawclient.

Can anyone help?
Weatherlink ip, Vantage Vue,