The %e + %E thing depends on your preferences on wunderground.com.
Try this link: http://www.wunderground.com/weathers...MWQKK&format=1
If you see "Time,TemperatureC,DewpointC..." in the first line then you could edit your preferences here: http://www.wunderground.com/member/m...tml?page=prefs so you're no longer using Metric.
Save your preferences then re-try the link above, and you'll see "Time,TemperatureF,DewpointF..." in the first line.
And then, %e and %E will work as expected.
A quick fix for %e + %E in the code (but not other items like windspeed which are also dependent on your wunderground settings)
sub gotWunderground { #Weather data was received
my $http = shift;
my $params = $http->params();
my $client = $params->{'client'};
my $refreshItem = $params->{'refreshItem'};
$log->info("got " . $http->url());
my $content = $http->content();
my $metric = ($content =~ m/TemperatureC/);
my @ary=split /\n/,$content; #break large string into array
#$::d_plugins && msg("WU DATA: ".$ary[scalar(@ary)-3]."\n");
if($ary[scalar(@ary)-3] =~ /^20\d\d-.*?,(.*?),(.*?),(.*?),(.*?),.*?,(.*?),.*?,(.*?),.* ?,(.*?),(.*?),.*,/) {
if ($metric) {
$wetData{'wu_temperatureF'} = CtoF($1);
$wetData{'wu_temperatureC'} = $1;
$wetData{'wu_dewpointF'} = CtoF($2);
$wetData{'wu_dewpointC'} = $2;
} else {
$wetData{'wu_temperatureF'} = $1;
$wetData{'wu_temperatureC'} = FtoC($1);
$wetData{'wu_dewpointF'} = $2;
$wetData{'wu_dewpointC'} = FtoC($2);
}
Results 1,721 to 1,730 of 2678
-
2010-04-24, 20:49 #1721Junior Member
- Join Date
- Apr 2010
- Posts
- 4
-
2010-04-24, 21:01 #1722Junior Member
- Join Date
- Apr 2010
- Posts
- 4
Thanks Greg, that will be great but there's no rush. Nappies and work are time consuming things. If I get to needing the latest cut I'll let you know.
To prevent collisions each SDT extension could ask for a %prefix, although I'm not sure programmatically is the right approach. If the allocated prefix was not consistent it would be annoying for users as one person's config won't be transferable (or even as Slimserver versions change and the SDT extensions are not updated in sync). Maybe it's an registration system?
I could grab (say) %XA[.*] and the next thing could have %XB[.*] and so on. Which breaks the printf model a bit but shouldn't matter.
The only caveat with the addMacro thing I'll need is to make sure the macros are replaced in the order they're added (eg array vs hash) to make sure %X10 and %X1 don't cause weirdness.
Thanks!
Steve.
-
2010-04-25, 17:16 #1723Senior Member
- Join Date
- Apr 2005
- Posts
- 253
Greg,
Line1 -> %1 %2
Line 2 -> %t feels like %f %h %w %p
are my settings for Current Period on my Squeezebox 2. I have the Text Size set to #2 (Medium) so I can read Line 2 from 10 feet away. However, because I have a fair amount of variables on Line 2 it gets cut off on the right of the display and will not scroll.
Thanks for all your work Greg. -- EB
-
2010-04-25, 17:17 #1724Senior Member
- Join Date
- Apr 2005
- Posts
- 253
Not Scrolling Current Conditions
Greg,
Line1 -> %1 %2
Line 2 -> %t feels like %f %h %w %p
are my settings for Current Period on my Squeezebox 2. I have the Text Size set to #2 (Medium) so I can read Line 2 from 10 feet away. However, because I have a fair amount of variables on Line 2 it gets cut off on the right of the display and will not scroll.
Thanks for all your work Greg. -- EB
-
2010-04-27, 13:03 #1725Senior Member
- Join Date
- Feb 2009
- Posts
- 230
Can SDT scroll or switch the weather and time screens?
I hope I'm just missing something. Can SuperDateTime be set to scroll, or step through, the weather, time and date info?
I've been messing around with SDT for a week now trying to get a setup that works for me. I found that if I use the 3 line display, I can get most of the weather and time info I'm interested in to display on one screen, but the text is far too small to leave in this font.
If SDT could run a scroll of the weather, time and date, across the screen using SDT's ticker or scroll modes, that would be fine. I tried the Basic, Scroll and Ticker settings in SDT and that didn't seem to do it. Maybe I have it setup wrong?
OR
If SDT could be made to step through SDT's custom mode screens on some sequential basis (say, 5, 10 or 15 seconds per screen, etc.), that would work fine too.
Am I missing something, or are these choices, or similar, simply not possible, at least at the moment?
If it matters, I'm running Squeezebox Server 7.51 at the moment.
ThxLast edited by eganders; 2010-04-27 at 15:40.
-
2010-04-28, 05:02 #1726Senior Member
- Join Date
- Apr 2005
- Posts
- 253
Next 6 Hours Showing Yesterday's Forecast?
It is 7 am and my SDT is showing Next 6 Hours and Tonight for yesterday's Forecast! My SB2 shows and * (not the ?) so SDT is reaching the Internet...
-
2010-04-28, 17:23 #1727
SuperDateTime addon - CTA (Chicago Transit Authority) bus routes
Anyone live in Chicago? I created a new plugin that utilizes SuperDateTime's external API to display configurable bus ETAs. By using the external API I was able to create this plugin in a matter of hours, pretty cool.
I figured I'd release this on a smaller audience to get any feedback before posting it officially on the website and main repo.
Please give it a shot by adding the following repo- http://www.gregbrown.net/squeeze/repo2.xml .
When configuring you'll see that it supports custom % display macros. These work the same way as % macros work in SuperDateTime. Basically you'll define a custom macro for a particular route you're receiving and then you can use it in SuperDateTimes player settings like any other macro. You'll need SuperDateTime 5.8.16, which isn't out yet for the custom macro functionality
though so please don't configure any custom ones yet!
-Greg
-
2010-04-29, 11:30 #1728Senior Member
- Join Date
- Apr 2005
- Posts
- 253
-
2010-04-29, 11:33 #1729Senior Member
- Join Date
- Apr 2005
- Posts
- 253
-
2010-04-30, 06:24 #1730Senior Member
- Join Date
- Feb 2009
- Posts
- 230
I can verify that the same thing happens on my Booms when using SDT. Whether or not it should, I don't know.
Here's the recipe / template I've currently settled on for my Booms, adding SDT and SaverSwitcher to the standard mix. I have it set to rotate through time and weather screens, and the music screen - when playing, at 6 second intervals. It's not everything I'd like to see weather wise (don't know how to display a second weather screen), but it displays quite nicely and is large enough to read easily.
PLAYER (TAB):
Basic Settings:
When Playing___________________________SaverSwitcher
When Stopped__________________________SaverSwitcher
When Off_______________________________SaverSwitcher
Screensaver when alarm is playing________Date and Time
Display:
Font___________standard-n
SuperDateTime:
Icon___________3-Line_____________2-Line
Off____On_____%z/%v %y_________(blank)
_______________%s________________---%e/%H (dashes indicate 3 leading spaces)
_______________%SLast edited by eganders; 2010-04-30 at 07:13.


Reply With Quote
