[dev] EJSE Weather Block

Rick Emery rick at emery.homelinux.net
Tue Jan 6 06:34:37 PST 2004


OK, here it is. Do with it what you will.

EJSE driver written by Eric Rostetter <eric.rostetter at physics.utexas.edu>
Converted to a Horde block by Dan Chlopek <danc at wang-manor.com>

I fixed the display of graphics in the forecast section, and added a parameter
to allow the user to display graphics only, text only, or both. I did this
because sometimes the text is more descriptive than the graphic (ex. AM
Cloudy/PM Clear) and some use the same graphic for different descriptions (ex.
"Showers" and "Scattered Showers" use the same graphic). Some users might not
care, but some might want more detail.

EJSE only works for locations in the U.S.A. Eventually, I'll get a block
working using weather.com, and a decision can be made to either replace this
one or somehow incorporate it. My intent is that this is just temporary, to
give everyone a working weather forecast for now.

* For the graphics to work, the "weather" directory from jonah/graphics/ needs
to be moved (or copied) to horde/graphics/block/.

P.S. I agree with Chuck about not having too many weather drivers, so it won't
break my heart if this isn't committed (especially since I intend to
eventually replace it). I just thought some might find it useful.

--
Rick Emery

"When once you have tasted flight, you will forever walk the Earth
 with your eyes turned skyward, for there you have been, and there
 you will always long to return"
                                              -- Leonardo Da Vinci
-------------- next part --------------
Index: registry.php.dist
===================================================================
RCS file: /repository/horde/config/registry.php.dist,v
retrieving revision 1.196
diff -u -r1.196 registry.php.dist
--- registry.php.dist	5 Dec 2003 22:40:13 -0000	1.196
+++ registry.php.dist	5 Jan 2004 15:38:10 -0000
@@ -625,3 +625,7 @@
 $this->applets['metar'] = array(
     'name' => _("Metar Weather"),
 );
+
+$this->applets['weather'] = array(
+    'name' => _("EJSE Weather - U.S.A. ONLY"),
+);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: weather.php
Type: application/x-httpd-php
Size: 22447 bytes
Desc: not available
Url : http://lists.horde.org/archives/dev/attachments/20040106/e9e33543/weather.bin


More information about the dev mailing list