Quantcast
Channel: Squeezebox : Community : Forums - Logitech Media Server
Viewing all 5300 articles
Browse latest View live

Play AIFF files without converting to FLAC

$
0
0
I've noticed recently that all of my AIFF files are being converted to 705kbps FLAC files for playback. If I go into Advanced/File Types and under AIFF set the FLAC choice to disabled my 16/44 files play at their native bit rate without conversion but my 24/96 files just produce static, not music. This happens with both my Touch and Transporter. Is there some setting that allows the Hi-Rez files to be played without conversion? Thanks.

What rules used LMS 7.9 to build library ?

$
0
0
> Too many files to tag ... Any way to change behaviour of LMS ?

Try Settings/Advanced/Formatting: there are options to configure the
metadata "guessing" based on folder names etc.

--

Michael

Audioscrobbler Plug-In Not Working - Time Zone Issue?

$
0
0
Hi,
I have scrobbled without problems for half a year or so but as of lately I have been getting some problems although I did not alter any options. LMS stopped scrobbling. I tried to re-enter my login, but I was no longer able to do so.

It returned:

Problem beim Prüfen Ihres Last.fm-Kontos. Versuchen Sie es später noch einmal. (Handshake mit Last.fm nicht möglich, da die Systemuhr nicht eingestellt ist. Stellen Sie die Uhrzeit richtig ein und versuchen Sie es noch einmal.)
There was an error verifying your account with Last.fm. Please try again later. (Unable to handshake with Last.fm because your system clock is incorrect. Please update your clock and try again.).

Frankly I am completely at a loss. What am I supposed to do?

Cannot get LMS 7.9 to work on Ubuntu 15.10

$
0
0
I have fresh installed Ubuntu Server 15.10 with nothing added. I installed the latest 7.9 version via the provided deb package. The server starts fine. Then I am just changing/adding some plugins and switch to systemd as explained in this thread: http://forums.slimdevices.com/showth...temd-on-Ubuntu

The server then does not restart.

I get an error:
Code:

/usr/sbin/squeezeboxserver --debug server --d_startup
Found SELinux - setting security context to: texrel_shlib_t for *.so files.
Got @INC containing:
/usr/share/squeezeboxserver/CPAN
/usr/share/squeezeboxserver
/usr/sbin
/etc/perl
/usr/local/lib/x86_64-linux-gnu/perl/5.20.2
/usr/local/share/perl/5.20.2
/usr/lib/x86_64-linux-gnu/perl5/5.20
/usr/share/perl5
/usr/lib/x86_64-linux-gnu/perl/5.20
/usr/share/perl/5.20
/usr/local/lib/site_perl
.

Extended @INC to contain:
/usr/share/squeezeboxserver/CPAN/arch/5.20/x86_64-linux-thread-multi
/usr/share/squeezeboxserver/CPAN/arch/5.20/x86_64-linux-thread-multi/auto
/usr/share/squeezeboxserver/CPAN/arch/5.20.2/x86_64-linux-gnu-thread-multi
/usr/share/squeezeboxserver/CPAN/arch/5.20.2/x86_64-linux-gnu-thread-multi/auto
/usr/share/squeezeboxserver/CPAN/arch/5.20/x86_64-linux-gnu-thread-multi
/usr/share/squeezeboxserver/CPAN/arch/5.20/x86_64-linux-gnu-thread-multi/auto
/usr/share/squeezeboxserver/CPAN/arch/x86_64-linux-gnu-thread-multi
/usr/share/squeezeboxserver/CPAN/arch/5.20
/usr/share/squeezeboxserver/lib
/usr/share/squeezeboxserver/CPAN
/usr/share/squeezeboxserver
/usr/share/squeezeboxserver/CPAN
/usr/share/squeezeboxserver
/usr/sbin
/etc/perl
/usr/local/lib/x86_64-linux-gnu/perl/5.20.2
/usr/local/share/perl/5.20.2
/usr/lib/x86_64-linux-gnu/perl5/5.20
/usr/share/perl5
/usr/lib/x86_64-linux-gnu/perl/5.20
/usr/share/perl/5.20
/usr/local/lib/site_perl
.

Loaded module: [version] ok!
Loaded module: [Time::HiRes] ok!
Loaded module: [DBI] ok!
Loaded module: [EV] ok!
Loaded module: [XML::Parser::Expat] ok!
Loaded module: [HTML::Parser] ok!
Loaded module: [JSON::XS] ok!
Loaded module: [Digest::SHA1] ok!
Loaded module: [YAML::XS] ok!
Loaded module: [Sub::Name] ok!
The following modules are loaded after the first attempt:
        DynaLoader.pm => /usr/lib/x86_64-linux-gnu/perl/5.20/DynaLoader.pm
        XML/Parser/Expat.pm => /usr/share/squeezeboxserver/CPAN/XML/Parser/Expat.pm
        Symbol.pm => /usr/share/perl/5.20/Symbol.pm
        B/Deparse.pm => /usr/share/perl/5.20/B/Deparse.pm
        Digest/SHA1.pm => /usr/share/squeezeboxserver/CPAN/Digest/SHA1.pm
        Sub/Name.pm => /usr/share/squeezeboxserver/CPAN/Sub/Name.pm
        Time/HiRes.pm => /usr/lib/x86_64-linux-gnu/perl/5.20/Time/HiRes.pm
        warnings.pm => /usr/share/perl/5.20/warnings.pm
        Slim/Utils/OS/Debian.pm => /usr/share/perl5/Slim/Utils/OS/Debian.pm
        UNIVERSAL.pm => /usr/share/perl/5.20/UNIVERSAL.pm
        Config.pm => /usr/lib/x86_64-linux-gnu/perl/5.20/Config.pm
        B.pm => /usr/lib/x86_64-linux-gnu/perl/5.20/B.pm
        locale.pm => /usr/share/perl/5.20/locale.pm
        Slim/Utils/OS/Unix.pm => /usr/share/perl5/Slim/Utils/OS/Unix.pm
        Digest/base.pm => /usr/share/squeezeboxserver/CPAN/Digest/base.pm
        Slim/bootstrap.pm => /usr/share/perl5/Slim/bootstrap.pm
        Fcntl.pm => /usr/lib/x86_64-linux-gnu/perl/5.20/Fcntl.pm
        Exporter/Heavy.pm => /usr/share/perl/5.20/Exporter/Heavy.pm
        base.pm => /usr/share/perl/5.20/base.pm
        re.pm => /usr/lib/x86_64-linux-gnu/perl/5.20/re.pm
        warnings/register.pm => /usr/share/perl/5.20/warnings/register.pm
        vars.pm => /usr/share/perl/5.20/vars.pm
        List/Util.pm => /usr/lib/x86_64-linux-gnu/perl/5.20/List/Util.pm
        File/Path.pm => /usr/share/perl/5.20/File/Path.pm
        HTML/Entities.pm => /usr/share/squeezeboxserver/CPAN/HTML/Entities.pm
        Slim/Utils/OSDetect.pm => /usr/share/perl5/Slim/Utils/OSDetect.pm
        feature.pm => /usr/share/perl/5.20/feature.pm
        version.pm => /usr/share/squeezeboxserver/CPAN/version.pm
        overloading.pm => /usr/share/perl/5.20/overloading.pm
        Scalar/Util.pm => /usr/lib/x86_64-linux-gnu/perl/5.20/Scalar/Util.pm
        Getopt/Long.pm => /usr/share/perl/5.20/Getopt/Long.pm
        Slim/Utils/OS/Linux.pm => /usr/share/perl5/Slim/Utils/OS/Linux.pm
        attributes.pm => /usr/lib/x86_64-linux-gnu/perl/5.20/attributes.pm
        File/Spec/Unix.pm => /usr/lib/x86_64-linux-gnu/perl/5.20/File/Spec/Unix.pm
        Slim/Utils/OS.pm => /usr/share/perl5/Slim/Utils/OS.pm
        strict.pm => /usr/share/perl/5.20/strict.pm
        YAML/XS/LibYAML.pm => /usr/share/squeezeboxserver/CPAN/YAML/XS/LibYAML.pm
        DBI.pm => /usr/share/squeezeboxserver/CPAN/arch/5.20/DBI.pm
        version/vpp.pm => /usr/share/squeezeboxserver/CPAN/version/vpp.pm
        File/Spec/Functions.pm => /usr/lib/x86_64-linux-gnu/perl/5.20/File/Spec/Functions.pm
        constant.pm => /usr/share/perl/5.20/constant.pm
        HTML/Parser.pm => /usr/share/squeezeboxserver/CPAN/HTML/Parser.pm
        lib.pm => /usr/lib/x86_64-linux-gnu/perl/5.20/lib.pm
        EV.pm => /usr/share/squeezeboxserver/CPAN/EV.pm
        YAML/XS.pm => /usr/share/squeezeboxserver/CPAN/YAML/XS.pm
        common/sense.pm => /usr/share/squeezeboxserver/CPAN/common/sense.pm
        JSON/XS.pm => /usr/share/squeezeboxserver/CPAN/arch/5.20/JSON/XS.pm
        POSIX.pm => /usr/lib/x86_64-linux-gnu/perl/5.20/POSIX.pm
        Config_git.pl => /usr/lib/x86_64-linux-gnu/perl/5.20/Config_git.pl
        Tie/Hash.pm => /usr/share/perl/5.20/Tie/Hash.pm
        File/Spec.pm => /usr/lib/x86_64-linux-gnu/perl/5.20/File/Spec.pm
        Config_heavy.pl => /usr/lib/x86_64-linux-gnu/perl/5.20/Config_heavy.pl
        Exporter.pm => /usr/share/perl/5.20/Exporter.pm
        File/Basename.pm => /usr/share/perl/5.20/File/Basename.pm
        XSLoader.pm => /usr/share/perl/5.20/XSLoader.pm
        overload.pm => /usr/share/perl/5.20/overload.pm
        Carp.pm => /usr/share/perl/5.20/Carp.pm
        FindBin.pm => /usr/share/perl/5.20/FindBin.pm
        Cwd.pm => /usr/lib/x86_64-linux-gnu/perl/5.20/Cwd.pm

The following modules are loaded after the second attempt:
        DynaLoader.pm => /usr/lib/x86_64-linux-gnu/perl/5.20/DynaLoader.pm
        XML/Parser/Expat.pm => /usr/share/squeezeboxserver/CPAN/XML/Parser/Expat.pm
        Symbol.pm => /usr/share/perl/5.20/Symbol.pm
        B/Deparse.pm => /usr/share/perl/5.20/B/Deparse.pm
        Digest/SHA1.pm => /usr/share/squeezeboxserver/CPAN/Digest/SHA1.pm
        Sub/Name.pm => /usr/share/squeezeboxserver/CPAN/Sub/Name.pm
        Time/HiRes.pm => /usr/lib/x86_64-linux-gnu/perl/5.20/Time/HiRes.pm
        warnings.pm => /usr/share/perl/5.20/warnings.pm
        Slim/Utils/OS/Debian.pm => /usr/share/perl5/Slim/Utils/OS/Debian.pm
        UNIVERSAL.pm => /usr/share/perl/5.20/UNIVERSAL.pm
        Config.pm => /usr/lib/x86_64-linux-gnu/perl/5.20/Config.pm
        B.pm => /usr/lib/x86_64-linux-gnu/perl/5.20/B.pm
        locale.pm => /usr/share/perl/5.20/locale.pm
        Slim/Utils/OS/Unix.pm => /usr/share/perl5/Slim/Utils/OS/Unix.pm
        Digest/base.pm => /usr/share/squeezeboxserver/CPAN/Digest/base.pm
        Slim/bootstrap.pm => /usr/share/perl5/Slim/bootstrap.pm
        Fcntl.pm => /usr/lib/x86_64-linux-gnu/perl/5.20/Fcntl.pm
        Exporter/Heavy.pm => /usr/share/perl/5.20/Exporter/Heavy.pm
        base.pm => /usr/share/perl/5.20/base.pm
        re.pm => /usr/lib/x86_64-linux-gnu/perl/5.20/re.pm
        warnings/register.pm => /usr/share/perl/5.20/warnings/register.pm
        vars.pm => /usr/share/perl/5.20/vars.pm
        List/Util.pm => /usr/lib/x86_64-linux-gnu/perl/5.20/List/Util.pm
        File/Path.pm => /usr/share/perl/5.20/File/Path.pm
        HTML/Entities.pm => /usr/share/squeezeboxserver/CPAN/HTML/Entities.pm
        Slim/Utils/OSDetect.pm => /usr/share/perl5/Slim/Utils/OSDetect.pm
        feature.pm => /usr/share/perl/5.20/feature.pm
        version.pm => /usr/share/squeezeboxserver/CPAN/version.pm
        overloading.pm => /usr/share/perl/5.20/overloading.pm
        Scalar/Util.pm => /usr/lib/x86_64-linux-gnu/perl/5.20/Scalar/Util.pm
        Getopt/Long.pm => /usr/share/perl/5.20/Getopt/Long.pm
        Slim/Utils/OS/Linux.pm => /usr/share/perl5/Slim/Utils/OS/Linux.pm
        attributes.pm => /usr/lib/x86_64-linux-gnu/perl/5.20/attributes.pm
        File/Spec/Unix.pm => /usr/lib/x86_64-linux-gnu/perl/5.20/File/Spec/Unix.pm
        Slim/Utils/OS.pm => /usr/share/perl5/Slim/Utils/OS.pm
        strict.pm => /usr/share/perl/5.20/strict.pm
        YAML/XS/LibYAML.pm => /usr/share/squeezeboxserver/CPAN/YAML/XS/LibYAML.pm
        DBI.pm => /usr/share/squeezeboxserver/CPAN/arch/5.20/DBI.pm
        version/vpp.pm => /usr/share/squeezeboxserver/CPAN/version/vpp.pm
        File/Spec/Functions.pm => /usr/lib/x86_64-linux-gnu/perl/5.20/File/Spec/Functions.pm
        constant.pm => /usr/share/perl/5.20/constant.pm
        HTML/Parser.pm => /usr/share/squeezeboxserver/CPAN/HTML/Parser.pm
        lib.pm => /usr/lib/x86_64-linux-gnu/perl/5.20/lib.pm
        EV.pm => /usr/share/squeezeboxserver/CPAN/EV.pm
        YAML/XS.pm => /usr/share/squeezeboxserver/CPAN/YAML/XS.pm
        common/sense.pm => /usr/share/squeezeboxserver/CPAN/common/sense.pm
        JSON/XS.pm => /usr/share/squeezeboxserver/CPAN/arch/5.20/JSON/XS.pm
        POSIX.pm => /usr/lib/x86_64-linux-gnu/perl/5.20/POSIX.pm
        Config_git.pl => /usr/lib/x86_64-linux-gnu/perl/5.20/Config_git.pl
        Tie/Hash.pm => /usr/share/perl/5.20/Tie/Hash.pm
        File/Spec.pm => /usr/lib/x86_64-linux-gnu/perl/5.20/File/Spec.pm
        Config_heavy.pl => /usr/lib/x86_64-linux-gnu/perl/5.20/Config_heavy.pl
        Exporter.pm => /usr/share/perl/5.20/Exporter.pm
        File/Basename.pm => /usr/share/perl/5.20/File/Basename.pm
        XSLoader.pm => /usr/share/perl/5.20/XSLoader.pm
        overload.pm => /usr/share/perl/5.20/overload.pm
        Carp.pm => /usr/share/perl/5.20/Carp.pm
        FindBin.pm => /usr/share/perl/5.20/FindBin.pm
        Cwd.pm => /usr/lib/x86_64-linux-gnu/perl/5.20/Cwd.pm

The following CPAN modules were found but cannot work with Logitech Media Server:
  Audio::Scan (loaded 0.95, need 0.93)

To fix this problem you have several options:
1. Install the latest version of the module(s) using CPAN: sudo cpan Some::Module
2. Update the module's package using apt-get, yum, etc.
3. Run the .tar.gz version of Logitech Media Server which includes all required CPAN modules.

I did install the CPAN package and it did build fine, but it installed 0.93.

Any help would be highly appreciated.

Regards Klaas

LMS 7.9 temporarily unresponsive after selecting radio station "Keizerstad 80's"

$
0
0
When switching from another source to radio station Keizerstad 80's (http://opml.radiotime.com/Tune.ashx?...96600d6d7c3d81) the server (latest LMS 7.9) stalls for a couple of seconds on a laptop with Ubuntu 14.04 up to almost a minute on Arch Linux on a Wandboard.

The server log does not show errors/warnings even with the debug flag. The CPU load of the server process is very high when this happens.

Any clue what may cause this behaviour?

Albums and Compilations display order

$
0
0
As i understand it, if an artist has both albums and tracks on compilations, then the albums will be displayed first, followed by compilations.

However, in some cases, when selecting an artist, my album/compilation list seems a bit random.

An irritation more than anything, but a sort order issue i presume?

Using LMS 7.9 and 7.8 on Touch and Squeezeplay on laptop.

Articles in song titles

$
0
0
I have set the option set to ignore "The" and similar words when sorting . But any items beginning with "The" still get kept together under T. Have I missed an extra setting, or isn't it working at present.

Mac OS 10.10.5, LMS 7.9.0 r1437469137

Featurerequest Smart Crossfade

$
0
0
> is there a minor chance to enhance the Smart Crossfade to exclude some
> genres like Audiobook or Speech from Crossfading?


Well, "minor" always includes the possibility of a community member
coming up with the solution. But it's nothing I'd want to spend time with...
--

Michael

Using a Playlist as an Alarm Sound

$
0
0
I usually just use Random Songs as my Alarm Sound, but recently tried using a Playlist.
The playlist sounds as expected, however, on subsequent days the Playlist always re-starts at the first track (even though the #CURTRACK is not the 1st, i.e. #CURTRACK 4)

Is this a bug?

Squeezebox 1 cannot handle Media Library Name?

$
0
0
I can't find this mentioned anywhere, but I have just come across it.
I was upgrading LMS from 7.7.2 and was going through the config and assigned a "Media Library Name", which has always been empty in the past.

I waited for any rescan to finish, and then connected my Squeezebox (v1).
It would show the welcome screen, show its allocated IP address and then say that it could not find any server.
The remote control has died, so I could not press right, but tried to access it with the ipad app, at which stage it rebooted and then went into an infinite reboot loop until I shut down the ipad and cleared the "Media Library Name".

I'd just like to know:
  1. Is this the expected behaviour?
  2. is the purpose of Media Library Name to allow multiple servers? If so then this is not a problem for me


Just for completeness, I tested 7.7.5, 7.8.1 nightly (logitechmediaserver-7.8.1-0.1.1449829849.noarch.rpm) and 7.9 nightly (logitechmediaserver-7.9.0-0.1.1451894331.noarch.rpm).
Each time I deleted the cache contents and copied the old 7.7.2 prefs file back before upgrading. Results were always the same.

Finnish Broadcsting Company podcasts not working on Squeeezebox

$
0
0
I'm having problems listening the podcasts of the Finnish Broadcasting Company (YLE). Squeezebox can list the different episodes, but when I start to play any of them, the playback just stops right away.

Here's an example of the podcast RSS feed: http://feeds.yle.fi/areena/v1/series...nloadable=true

I would like to find out what's wrong in this and let the Finnish Broadcasting Company know it, so they could fix it (if the problem is in the podcast feed).

How to debug what's happening when the server is parsing the podcast?

Are There Really Daily SBServer Updates?!

$
0
0
Every day when I log into my HTPC for the past couple of months, I get a popup message stating that there is a "new version" of SBServer and that I should upgrade. I have been upgrading almost daily, but I am beginning to wonder if something is wrong. Are there really almost daily SBServer upgrades?! Or is my installation not actually upgrading each time? I love that the SBServer is still getting upgraded regularly, but doing this every day .. having to stop SBServer when I am using it and wait several minutes for a daily upgrade is getting tiresome. Once a month is fine with me, as long as it is not a critical update.

Why are LMS gui update announcements random?

$
0
0
> I think there have been 2 or 3 updates since then - all only available
> via wget from the website.


Feel free to enable debug logging for the update checker (I think it's
server.update), then send me your server.log after you think it failed
the check.

BTW: the notification probably doesn't show up unless you re-load the
web UI. If you leave it open in your browser window for several days,
you might miss a notification, too.

--

Michael

Transporter effects loop questions

$
0
0
So lets assume I am using the Transporters aes/ebu digital in and out for connecting to an external processor.

Questions:

1- will the processed signal only appear on the analogue outs or will say the RCA sp/dif out also see the processed signal?

2- can I select the sp/dif in as an input and the effects loop will still be active?

thanks,

Peter

Multiple tracks are playing at once

$
0
0
Hi,
I have been using this software for a few years, love it and feel pretty comfortable with it but am having a problem now.

LMS is feeding two devices:
- Raspberry Pi running PiCorePLayer
- Laptop running 64 bit windows 10

The problem is the laptop.
If I use the Fast Forward button, the seek bar (that shows the time countdown) or try to start a new track, the original one remains playing.

If a song is started and then Fast Forward to the middle of the song, then the song is playing twice in two locations in the song.
If the Next Track button icon is hit, the next song plays on top of the current song.
This is only happening in the Windows client.

So far I have tried a restart of the server and running it in "Safe Mode"

It's unusual, because on my previous install running the original 7.7 version this did not happen.
(I did not uninstall the 7.9 and try to go back to the 7.7 and am hoping to avoid that.)
Any help is appreciated!

Info:
Logitech Media Server Version: 7.9.0 - 1452183857 @ Thu Jan 7 16:32:05 CUT 2016
Hostname: Blank
Server IP Address: Blank
Server HTTP Port Number: 9000
Operating system: Windows 10 - EN - cp1252
Platform Architecture: 8664
Perl Version: 5.14.1 - MSWin32-x86-multi-thread
Audio::Scan: 0.95
Database Version: DBD::SQLite 1.34_01 (sqlite 3.7.7.1)
Total Players Recognized: 2

iTunes album artwork - not showing for all albums in LMS

$
0
0
> My problem is: The majority of album artwork shows correctly but a
> significant number do not. I think, but cannot be sure, that it is the
> ones where iTunes downloaded the artwork itself that aren't displayed.
> Can anyone help?


iTunes Artwork indeed can't easily be shown. There's an experimental
option in the iTunes plugin settings to enable import of them. It might
work or not. Give it a try.

Much simpler is embedding the artwork into the music files. Don't know
whether this is easily possible with iTunes, though.


--

Michael

Could LMS stream to PC speaker port for use with a Bluetooth speaker ?

$
0
0
Hi,
I'm no hardware wizard but I just received a very good MassFidelity Core Bluetooth speaker and I'd like it to work with LMS without hardwiring it to the Squeezebox Touch.
I've notice that Bluetooth somehow grabs whatever music is sent to the PC speaker port. That is sound from YouTube videos, music from Windows Media, etc.
I was wondering if I could find a Plugin with that capability.

My goal is to get triode’s 3rd party app reinstalled so I can use my Boom once more.

$
0
0
> (v10.0.5, 1452060822, Fri Jan 8 21:01:02 PST 2016) perl 5.018002

Don't install UE Music Library 10, but Logitech Media Server 7.x.

--

Michael

Plugin Dev needed: IR listening

$
0
0
Hi,

I need someone who would be willing to code a simple plugin for me since I have no idea how to use Perl and/or code LMS plugins.

All I need is a plugin which pipes the raw IR Codes like in the Learning.pm of the IRBlaster plugin into the Telnet/Jsonrpc CLI Interface. Continuously. From all supported Squeezeboxes.

Why?
I have lots of non connected stuff like motorized blinds or Wifi connected Lamps. I was thinking that maybe I could use a universal remote like the Logitech Harmony 525, teach it "non existant" codes and use all the squeezeboxes around here to pick up the signal. Then attach something to the cli interface to listen and control the things around here.

I've been able to slightly modify the IR learning part of the IRBlaster plugin to test it with a Boom and a Radio. Boom works (even if powered off which is what I needed). Radio doesn't work at all.

I guess the relevant code of the Learning.pm is this:
Code:

# Check if function is available
if( UNIVERSAL::can( "Slim::Networking::Slimproto","setCallbackRAWI")) {
        Slim::Networking::Slimproto::setCallbackRAWI( \&RAWICallbackLearn);
}

# Ask SB2/SB3 or Transporter to send 5 ir codes (containing x samples)
my $num_codes = pack( 'C', 5);
$client->sendFrame( 'ilrn', \$num_codes);

And most likely this
sub RAWICallbackLearn {
        my $client = shift;
        my $data = shift;

        my $newline = 0;
        my $mask = "n";
        my $gap = 0;
       
        open( FH, ">> $learnFileNameWithPath");

        # Get first sample (gap)
        $gap = unpack( $mask, $data);
        # Firmware divides values by 25 to fit into 16 bits
        # 25 is about the modulation used in IR blasting (1000000 / 38400 = 26.042)
        $gap = $gap * 25;                       

        # The first gap becomes the last
        if( $learnLastGap == 0) {
                # Limit gap to 20000
                if( $gap > 20000) {
                        $gap = 20000;
                }
                $learnLastGap = $gap;
        } else {
                $learnCode .= $gap . "\n\n";
                print FH "    " . $gap . "\n";
        }
        # Shift mask by 2 bytes
        $mask = "xx" . $mask;
        for( my $i = 1; $i < (length($data)/2); $i++) {
                my $sample = 0;

                # Get next sample
                $sample = unpack( $mask, $data);
                # Firmware divides values by 25 to fit into 16 bits
                # 25 is about the modulation used in IR blasting (1000000 / 38400 = 26.042)
                $sample = $sample * 25;
               
                $log->debug( "*** IR-Learning: " . $sample . "\n");
       
                # Feedback for user in webinterface
                $learnCode .= $sample . " ";
                # Make nice groups of 6 values in .conf file
                $newline++;
                if( $newline gt 6) {
                        $newline = 1;
                        print FH "\n";
                }
                # Write samples into .conf file
                print FH "    " . $sample;
                # Shift mask by 2 bytes
                $mask = "xx" . $mask;
        }

        $log->debug( "*** IR-Learning: " . $gap . "\n");

        close( FH);
}

Also, here seems to be some information: http://forums.slimdevices.com/showth...l=1#post151391

playlist play with wipePlaylist

$
0
0
Isn't this the use case for the "playlist preview" command?

Michael


Am 12.01.16 um 09:06 schrieb christiantf:
>
> Hello!
>
> I'm currently implementing some nice stuff via the CLI in PHP to
> integrate to the home automation (things like doorbell, background sound
> for TTS).
>
> Before I start, I backup the current playlist, where "backup" is the
> playlist name to save:
>
> Code:
> --------------------
> $playermac playlist save backup silent:1
> --------------------
>
>
> Then I call my output by playlist play <something>.
>
> After that, I resume the playlist by
>
> Code:
> --------------------
> $playermac playlist resume backup wipePlaylist:1
> --------------------
>
>
> Because the wipePlaylist:1 does not work, I am not sure how the format
> of <taggedParameters> is. <taggedParameters> is used several times in
> the CLI documentation, but I am not sure, if the format wipePlaylist:1
> is correct in this case (same with silent:1).
>
> Can you help me? Thanks!
> Christian
>
>
> FROM DOCUMENTATION:
> <playerid> playlist resume <playlist> <taggedParameters>
>
> Replace the current playlist with the playlist specified by p2, starting
> at the song that was playing when the file was saved. (Resuming works
> only with M3U files saved with the "playlist save" command below.)
> Shortcut: use a bare playlist name (without leading directories or
> trailing .m3u suffix) to load a playlist in the saved playlists folder.
>
> Optional tagged parameters are noplay, which when non-zero will not
> auto-start the track, and wipePlaylist, which will destroy the saved
> playlist from both the filesystem and from the DB (these tagged params
> are typically used for resuming a temporarily cached playlist, e.g.
> after exiting alarm sound preview on squeezeplay devices).
>
>
> ------------------------------------------------------------------------
> christiantf's Profile: http://forums.slimdevices.com/member.php?userid=63330
> View this thread: http://forums.slimdevices.com/showthread.php?t=104999
>
>
Viewing all 5300 articles
Browse latest View live