jafriede wrote:
> After being resigned to the fact that the old weather screensaver no
> longer works properly, I finally discovered the SDT-Weather plugin. I'm
> working on customizing my screen, but I can't seem to find documentation
> for the macro codes not covered here:
> http://wiki.slimdevices.com/index.php/Custom_Clock_applet
>
> For example, "sdtformat":"%!_3: %_5/%_7". Is there a document showing
> what ", %_5", etc means? I have searched this forum as well as Google
> with no luck. Thanks!
Guess I answered my own question. They are in the Plugin.pm source
file. What's confusing is that these don't seem to work when using
current period, ie "-1" such as if I want to display the high/low
expected for today.
Code:
sub replaceMacrosPer {
my $string = shift;
my $location = shift;
my $client = shift;
$string = replaceMacros($string, $client);
for ($string) {
s/%a/$wetData{$location}{'average_F'}°/;
s/%A/$wetData{$location}{'average_C'}°/;
s/%c/$wetData{$location}{'record_F'}°/;
s/%C/$wetData{$location}{'record_C'}°/;
s/%g/$wetData{$location}{'record_year'}/;
s/%s/$wetData{$location}{'sunrise'}/;
s/%S/$wetData{$location}{'sunset'}/;
s/%z/$wetData{$location}{'forecastType'}
$wetData{$location}{'forecastTempF'}°/;
s/%Z/$wetData{$location}{'forecastType'}
$wetData{$location}{'forecastTempC'}°/;
s/%!z/$wetData{$location}{'forecastTempF'}/;
s/%!Z/$wetData{$location}{'forecastTempC'}/;
s/Low/ Low/;
s/%x/$wetData{$location}{'forecastPrec'}/;
s/%y/$wetData{$location}{'forecastTOD'}/;
s/%v/$wetData{$location}{'skyCondition'}/;
#10day stuff
s/%_3/$wetData{$location}{'day'}/;
s/%!_3/$wetData{$location}{'shortday'}/;
s/%_4/$wetData{$location}{'date'}/;
s/%_5/$wetData{$location}{'highF'}°/;
s/%_6/$wetData{$location}{'highC'}°/;
s/%_7/$wetData{$location}{'lowF'}°/;
s/%_8/$wetData{$location}{'lowC'}°/;
s/%_9/$wetData{$location}{'precip'}/;
s/%_0/$wetData{$location}{'condition'}/;
}
jafriede's Profile: http://forums.slimdevices.com/member.php?userid=47894
View this thread: http://forums.slimdevices.com/showthread.php?t=14327
___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins