Re: Weather Applet
Guil Barros <[email protected]> Wed, 22 Oct 2003 20:44:45 -0500
| Newsgroups | gmane.comp.horde.jonah |
|---|---|
| Message-ID | <[email protected]> |
cool, a step forwards considerably better than my data collection hack... is this going to make it into cvs? guys?? :) now someone put a weather thing together using 'that other' code and i can stop putting it off myself and just move on :) thanks dan! -guil Quoting Dan Chlopek <[email protected]>: > > >Right. Jonah's initial purpose was to be the headline feeds, then to be > >something like what the Horde portal already is today. So I'd prefer to move > >the block-like things into just portal applets, and have Jonah focus on > >news/content authoring. > > > >-chuck > > I've hacked something together to create an applet using the ejse driver and > some of the Jonah weather stuff. It asks the user for a zip code. This way > u > can set up multiple Weather applets on yor main horde page. > > I put it into horde/lib/Block as weather.php > > here's what I added to horde/config/registry.php: > $this->applets['weather'] = array( > 'name' => _("View weather by ZIP code"), > 'type' => 'weather', > 'default' => '' > ); > > I'm attaching my weather.php. I'm new to php and the horde framework, but i > managed to get something that works. I'd like to move all the functionality > into the weather.php Block class, so that if the weather functionality leaves > the jonah project. I wasnt sure on how to pull that off, so for now it > references the ejse.php file from jonah/lib/Weather as well as Jonah.php and > base.php from jonah/lib > > Any comments, suggestions would be appreciated. > > > -- > Dan Chlopek > [email protected] > AIM: Danimal4326 -- Jonah mailing list Frequently Asked Questions: http://horde.org/faq/ To unsubscribe, mail: [email protected]
(unnamed)
(application/pgp-keys, 997 B) - not displayed