[mythtv] [mythtv-commits] Ticket #7825: Mythweather - Change of units doesn't properly work
Stuart Auchterlonie
stuarta at squashedfrog.net
Wed Dec 30 13:08:41 UTC 2009
On 29/12/2009 23:27, Joe Ripley wrote:
> On Tue, Dec 29, 2009 at 4:09 PM, MythTV<mythtv at cvs.mythtv.org> wrote:
>> #7825: Mythweather - Change of units doesn't properly work
>> ----------------------------------+-----------------------------------------
>> Reporter: stuarta | Owner: ijr
>> Type: defect | Status: new
>> Priority: minor | Milestone: 0.23
>> Component: Plugin - MythWeather | Version: head
>> Severity: medium | Mlocked: 0
>> ----------------------------------+-----------------------------------------
>> After changing the units of my mythweather screens
>> from English Units to SI units, and revisiting the
>> screens the following was observed.
>>
>> 1. The units change from F -> C (correct)
>> 2. The value doesn't change, so 34F -> 34C (incorrect)
>
> The unit conversion happens in the grabber scripts, not the
> MythWeather plugin. It's possible that the MythWeather plugin is
> using cached values, resulting in the issue you describe.
>
> If unexpired cached values exist in ~/.myth/MythWeather/*/cache-*, the
> plugin will read these verbatim and not perform conversions... the
> proper values are expected to be cached. What we may need to do is
> when one re-configures the MythWeather plugin to use different units,
> the plugin should purge any cached data for the given grabber.
>
Yes it's using the cached data. I raised the ticket on request of
Stuart M who tends to maintain mythweather, primarily as a reminder for
him of what is going on.
Stuart
More information about the mythtv-dev
mailing list