Home of the Squeezebox™ & Transporter® network music players.
Page 173 of 268 FirstFirst ... 73123163171172173174175183223 ... LastLast
Results 1,721 to 1,730 of 2678
  1. #1721
    Quote Originally Posted by GoCubs View Post
    I think in your case your wunderground station is providing its raw data in Celsius. The plugin has no way of knowing for certain what format the raw data is in so it assumes Fahrenheit.

    -Greg
    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);
    }

  2. #1722
    Quote Originally Posted by GoCubs View Post
    I've gone ahead and added a new Perl sub that allows you to add your own custom % macros. It's very simple-
    addMacro('%X1234','VALUE');
    SDT will basically search for whatever value you pass in as argument 1 and replace it with argument 2 with each data refresh. Call addMacro for each custom macro you'd like to add.

    This will be in 5.8.16. Not sure when I'll post it, but if you're ready for it lemme know and I can quickly post.

    Thanks
    -Greg
    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.

  3. #1723
    Senior Member
    Join Date
    Apr 2005
    Posts
    253

    Question

    Quote Originally Posted by GoCubs View Post
    Not sure what you mean? Are you referring to the top line text shown when the time is also shown?

    -Greg
    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

  4. #1724
    Senior Member
    Join Date
    Apr 2005
    Posts
    253

    Question Not Scrolling Current Conditions

    Quote Originally Posted by GoCubs View Post
    Not sure what you mean? Are you referring to the top line text shown when the time is also shown?

    -Greg
    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

  5. #1725
    Senior 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.

    Thx
    Last edited by eganders; 2010-04-27 at 15:40.

  6. #1726
    Senior 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...

  7. #1727
    Senior Member GoCubs's Avatar
    Join Date
    Apr 2005
    Location
    Chicago, IL
    Posts
    1,569

    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

  8. #1728
    Senior Member
    Join Date
    Apr 2005
    Posts
    253
    Quote Originally Posted by earthbased View Post
    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...
    fixed now after re-starting Squeezebox server.

  9. #1729
    Senior Member
    Join Date
    Apr 2005
    Posts
    253

    Question Scrolling Problem

    Quote Originally Posted by earthbased View Post
    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
    Can anyone verify my findings or is this a limitation of the Squeezebox 2?

  10. #1730
    Senior Member
    Join Date
    Feb 2009
    Posts
    230
    Quote Originally Posted by earthbased View Post
    Can anyone verify my findings or is this a limitation of the Squeezebox 2?
    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)
    _______________%S
    Last edited by eganders; 2010-04-30 at 07:13.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •