Re: [Freevo-devel] weather helper

2006-12-22 Thread Ryan Roth
Looks like you have been working like crazy too. Thanks for adding me to the credits. Here is an update to the weather helper. I added a error message if the weather variable was not defined. Index: src/helpers/weather.py === --

Re: [Freevo-devel] weather helper

2006-12-22 Thread Ryan Roth
I hope this helper isn't too much of a hack. Actually I hope my help isn't too hacky :) Duncan Webb wrote: > Ryan Roth wrote: > > Wow Ryan, your working like a beaver, many thanks. > > >> File to go along with request on sf.net page >> >> >> ---

Re: [Freevo-devel] weather helper

2006-12-22 Thread Ryan Roth
Ok ignore the last patch I sent. I did not like the idea of having to use a cron job to schedule the updates. Cron seems to cause a lot of people confusion. I tweaked the helper to use the time.sleep function to wait between updates. To enable the plug ad the following to the local_conf:

Re: [Freevo-devel] weather helper

2006-12-22 Thread Duncan Webb
Ryan Roth wrote: > Ignore that, I say that you already renamed it. To match WEATHER_UPDATE_ :) > > Ryan Roth wrote: >> call it 'auto_update_weather.py' and change the line in the info section >> to reflect it if you can done. Duncan ---

Re: [Freevo-devel] weather helper

2006-12-22 Thread Ryan Roth
Ignore that, I say that you already renamed it. Ryan Roth wrote: > call it 'auto_update_weather.py' and change the line in the info section > to reflect it if you can > > Duncan Webb wrote: > >> Ryan Roth wrote: >> >> >>> Ok ignore the last patch I sent. I did not like the idea of hav

Re: [Freevo-devel] weather helper

2006-12-22 Thread Ryan Roth
call it 'auto_update_weather.py' and change the line in the info section to reflect it if you can Duncan Webb wrote: > Ryan Roth wrote: > >> Ok ignore the last patch I sent. I did not like the idea of having to >> use a cron job to schedule the updates. Cron seems to cause a lot of >> people

Re: [Freevo-devel] weather helper

2006-12-22 Thread Duncan Webb
Ryan Roth wrote: > Ok ignore the last patch I sent. I did not like the idea of having to > use a cron job to schedule the updates. Cron seems to cause a lot of > people confusion. I tweaked the helper to use the time.sleep function > to wait between updates. To enable the plug ad the following

Re: [Freevo-devel] weather helper

2006-12-21 Thread Duncan Webb
Ryan Roth wrote: Wow Ryan, your working like a beaver, many thanks. > File to go along with request on sf.net page > > > Needs a header block. # -*- coding: iso-8859-1 -*- is most important > """ > Requires cron to call

[Freevo-devel] weather helper

2006-12-21 Thread Ryan Roth
File to go along with request on sf.net page """ Requires cron to call "freevo execute /usr/lib/python2.4/site-packages/freevo/plugins/weather_helper.py" to get updates. The weather.py plugin will grab new data if the cache is older than two hours, so run your cron job more often than that. """