Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: MythTV: Dev

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

 

 

MythTV dev RSS feed   Index | Next | Previous | View Threaded


vitaminjoe at gmail

Dec 29, 2009, 3:27 PM

Post #1 of 2 (516 views)
Permalink
Re: [mythtv-commits] Ticket #7825: Mythweather - Change of units doesn't properly work

On Tue, Dec 29, 2009 at 4:09 PM, MythTV <mythtv [at] cvs> 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
_______________________________________________
mythtv-dev mailing list
mythtv-dev [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev


stuarta at squashedfrog

Dec 30, 2009, 5:08 AM

Post #2 of 2 (446 views)
Permalink
Re: [mythtv-commits] Ticket #7825: Mythweather - Change of units doesn't properly work [In reply to]

On 29/12/2009 23:27, Joe Ripley wrote:
> On Tue, Dec 29, 2009 at 4:09 PM, MythTV<mythtv [at] cvs> 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

_______________________________________________
mythtv-dev mailing list
mythtv-dev [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev

MythTV dev RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.