[mythtv] [mythtv-commits] Ticket #7825: Mythweather - Change of units doesn't properly work

Joe Ripley vitaminjoe at gmail.com
Tue Dec 29 23:27:23 UTC 2009


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.

-- 
Joe Ripley
vitaminjoe at gmail.com


More information about the mythtv-dev mailing list