[jonah] new Weather block

Dan Chlopek danc at wang-manor.com
Mon Dec 15 13:13:44 PST 2003


Rick Emery wrote:

> Quoting Dan Chlopek <danc at wang-manor.com>:
>
> > I've been trying to port the ejse driver from Jonah into a standalone Horde
> > block that looks up weather by zip code.  I'm having some difficulty trying
> > to
> > get it all working, but once I've managed to get something that works, I'll
> > post it to the appropriate list..
>
> Great!

Well, I finally have something that works.  Its my first attempt at php, so it
may not be too pretty.  It's basically a port of the ejse driver from jonah,
along with some functions needed to parse the xml. It works standalone from
horde/lib/Block.  The block uses the Horde cache interface to cache the weather
data.  All you need to do is specify your zip code, and a refresh time in the
layout preferences. It also does metric/standard conversion.   Enjoy.

Regards,
Dan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: weather.php
Type: application/x-php
Size: 21497 bytes
Desc: not available
Url : http://lists.horde.org/archives/jonah/attachments/20031215/01e2462a/weather.bin


More information about the jonah mailing list