1
jdaniel
Found this nice weather module
  • 2004/9/23 20:43

  • jdaniel

  • Just popping in

  • Posts: 13

  • Since: 2004/3/31


I've been searching a cool module as far as a weather mod goes. But i found an issue about ms-weather with yahoo.com. But I found this script from http://www.hotscripts.com by adding a free script from weather.com.

But i have no clue no to implament this into a module. Can some help me.

Here is the link to the free script.

http://www.notonebit.com/projects/weather/

Can some help me with this.

2
DobePhat
Re: Found this nice weather module
  • 2004/9/27 14:59

  • DobePhat

  • Friend of XOOPS

  • Posts: 656

  • Since: 2003/4/15


this seems to be a good idea.

Have been messing with the various weather modules (our admins like to have it) but all of them are frusterating.

We even modified vlweather as much we can but there is always an 8 hour delay no matter how much we try and modify its offset.

This scrpt looks like it would be a cool module.
I was about to implement it till I got to this part
and grew weary. Here is the "read me" from the above script jdaniel is talking about:
------------

1. Sign up for Weather.com's free XML service at http://www.weather.com/services/xmloap.html

2. Download the weather.com SDK and upload all image files to your web server, maintaining the zip file structure. This script assumes you have a folder named "images" on your root and a subfolder named "weather" within it. You should copy the weather.com image folders (logos, 32x32, 64x64, and 128x128) to your weather folder.

3. Create a table in your database named weather_xml with the following structure:

CREATE TABLE `weather_xml` (
`xml_url` varchar(150) NOT NULL default '',
`xml_data` text NOT NULL,
`last_updated` datetime NOT NULL default '0000-00-00 00:00:00',
KEY `xml_url` (`xml_url`)
) TYPE=MyISAM;

4. Configure the following variables in weather_xml.php and upload to your web server:

$db_host = ""; Your database host (e.g. localhost)
$db_user = ""; Your database username
$db_pwd = ""; Your database password
$db_name = ""; Your database name
$partner_ID = ""; Your weather.com partner ID you received when signing up for their XML service
$license_key = ""; Your weather.com license key
$image_size = "64x64"; Select the size of the forecast images to use

5. Modify the header and footer HTML code in weather_xml.php if desired.

---
So seems possible. But I sure dont know how to do it.
The original author or porter of this scrip is from
notonebit.com,

In fact their seems to be some potentially useful scripts there.

Login

Who's Online

376 user(s) are online (263 user(s) are browsing Support Forums)


Members: 0


Guests: 376


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits