chris49 wrote:
> Works perfectly! Thank you.
>
> I did change the time to AM/PM and will probably be deleting the the
> darkgray sections altogether. (They don't really show unless you look
> very closely.)
>
> Two questions:
>
>
> > >
- How did you specify the short day format on the right?
- Where do I find definitions for %!_3 %_7, etc.?
> http://wiki.slimdevices.com/index.php/Custom_Clock_applet#sdtformat
> shows many but not all?
> > >
>
> The alarm icon doesn't show, but I don't really care about that,
>
> I also find it annoying that SBS exports without tabs or line-end
> characters. This makes it a pain to create a backup of altered
> scripts.
>
> Thanks again!
I added 'shortday' to SDT starting in version 5.9.42 at the request of
@barberousse. It is %!_3 instead of %_3 for day.
As for the definitions, I referenced the code in the SDT plugin.pm file.
I'll look into finding a place to document these. In the mean time I
have pasted code showing the SDT macro variables below.
Do you have an alarm set that is within 12 hours? (maybe 24 hours) That
is the only time it will show.
Finally I use the text editor Notepad++ and a plugin for it called JSON
Viewer to format the exported Custom Clock Helper text back into a more
readable JSON format.
Code:
--------------------
my $date = $client->longDateF();
s/%2/$date/;
s/%t/$wetData{'temperatureF'}°/;
s/%T/$wetData{'temperatureC'}°/;
s/%h/$wetData{'humidity'}/;
s/%p/$wetData{'pressureIN'}$wetData{'pressureT'}/;
s/%P/$wetData{'pressureMB'}$wetData{'pressureT'}/;
s/%d/$wetData{'dewpointF'}°/;
s/%D/$wetData{'dewpointC'}°/;
s/%f/$wetData{'feelslikeF'}°/;
s/%F/$wetData{'feelslikeC'}°/;
s/%w/$wetData{'windspeed_mh'}/;
s/%W/$wetData{'windspeed_kh'}/;
s/%q/$wetData{'windspeed_kth'}/;
s/%Q/$wetData{'windspeed_ms'}/;
s/%u/$wetData{'UVindexNum'}/;
s/%U/$wetData{'UVindexTxt'}/;
s/%b/$wetData{'rain'}/;
s/%B/$wetData{'snow'}/;
#Wunderground
s/%e/$wetData{'wu_temperatureF'}°/;
s/%r/$wetData{'wu_temperatureFr'}°/;
s/%E/$wetData{'wu_temperatureC'}°/;
s/%R/$wetData{'wu_temperatureCr'}°/;
s/%H/$wetData{'wu_humidity'}/;
s/%l/$wetData{'wu_pressureIN'}/;
s/%L/$wetData{'wu_pressureMB'}/;
s/%m/$wetData{'wu_dewpointF'}°/;
s/%M/$wetData{'wu_dewpointC'}°/;
s/%j/$wetData{'wu_windspeed_mh'}/;
s/%J/$wetData{'wu_windspeed_kh'}/;
s/%k/$wetData{'wu_windspeed_kth'}/;
s/%K/$wetData{'wu_windspeed_ms'}/;
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'}/;
}
--------------------
------------------------------------------------------------------------
BoomX2's Profile: http://forums.slimdevices.com/member.php?userid=33529
View this thread: http://forums.slimdevices.com/showthread.php?t=68269
_______________________________________________
plugins mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/plugins