bluetdi wrote: 
> Hi Jonas,
> which lines in the plugin did you change - and to what - to get the
> short weekday names? I would need them too for a display with forecast
> of 6 days.
> Thanks in advance.
> Karl

Hmm, ok. It's in the Plugin.pm file down here:
<some_path_dependign_on_your_instalation>\SuperDateTime\lib\Plugins\SuperDateTime

It should be somewhere around line 3463 (I have done some changes and
there are different versions of the package available). It's in the
chunk of code right before "sub getStocks {  #Set up Async HTTP request
for Stocks"

This is the code chunk and you will find weekday_short in there. I
changed it from just weekday to weekday_short (I think!).

I have tried to highlight the line below in bold but it's hard to see.


Code:
--------------------
    
  ...
        my $dayindex = 1;
        while ($dayindex <11){
                my $wetDay = 'd' . $dayindex ;
                #                    'highF' => '57',
                $wetData{$wetDay}{'highF'} = 
($dailyfore[$dayindex-1]->{'high'}->{'fahrenheit'});
                #                    'highC' => 14,
                $wetData{$wetDay}{'highC'} = 
($dailyfore[$dayindex-1]->{'high'}->{'celsius'});
                #                    'lowF' => '45',
                $wetData{$wetDay}{'lowF'} = 
($dailyfore[$dayindex-1]->{'low'}->{'fahrenheit'});
                #                    'lowC' => 7,
                $wetData{$wetDay}{'lowC'} = 
($dailyfore[$dayindex-1]->{'low'}->{'celsius'});
                #                    'precip' => '60%',
                $a =  ($dailyfore[$dayindex-1]->{'pop'});
                $wetData{$wetDay}{'precip'} = $a . '%';
                #                    'date' => 'Apr 25',
                $wetData{$wetDay}{'date'} = 
($dailyfore[$dayindex-1]->{'date'}->{'monthname_short'}) . ' ' . 
($dailyfore[$dayindex-1]->{'date'}->{'day'});
                #                    'day' => 'Today',
                *$wetData{$wetDay}{'day'} = 
($dailyfore[$dayindex-1]->{'date'}->{'weekday_short'});*
                #                    'condition' => 'Showers'
                $wetData{$wetDay}{'condition'} = 
($dailyfore[$dayindex-1]->{'conditions'});
                #                    'forecastIcon' => '11',
                #                    'forecastIconURLSmall' => 
'/plugins/SuperDateTime/html/images/11.png',
                $wetData{$wetDay}{'forecastIcon'} = 
($dailyfore[$dayindex-1]->{'icon'});
                $wetData{$wetDay}{'forecastIconURLSmall'} = 
'/plugins/SuperDateTime/html/images/'. ($dailyfore[$dayindex-1]->{'icon'}) . 
'.png';
  
                $dayindex++;
        }
        
        refreshData(undef, $client, $refreshItem);
  }
        
  
  sub getStocks {  #Set up Async HTTP request for Stocks
  ...
  
--------------------


I hope that's what you are looking for.

/Jonas...


------------------------------------------------------------------------
*Zapp*'s Profile: http://forums.slimdevices.com/member.php?userid=7929
View this thread: http://forums.slimdevices.com/showthread.php?t=14327

_______________________________________________
plugins mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/plugins

Reply via email to