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
===
--
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
>>
>>
>> ---
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:
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
---
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
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
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
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
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.
"""