Home of the Squeezebox™ & Transporter® network music players.
Page 3 of 4 FirstFirst 1234 LastLast
Results 21 to 30 of 38
  1. #21

    squeezy 0.24

    Squeezy:
    A command-line utility for controlling squeezebox network audio players via their squeezeserver.

    https://github.com/pssc/squeezy/releases/latest

    New commands for checking connection to players and alarms thanks to D.J
    Added new testing functionality in the shape of -if_XXXX with the action -exit and cant be negated with -not

    -alarms : enabled alarms count (can only sound if not generally disabled)
    -alarms_enabled : alarms generally enabled?
    -playlist_shuffle : shuffle control
    -playlist_repeat : repeat control
    -start : start playing from the current playlist and position

    -if_alarm : if alarms are disabled generally or no alarm is enabled
    -if_connected : if this player is not connected
    -if_playing : if this player is on and playing
    -if_sleeping : is powered and on countdown to sleep

    -exit : set up action for -if_XXXX to exit with specified code
    -not : -if_XXXX can be prefixed with not

    Enhanced:-
    -time : can now take ? to query time.
    -playing : How gives comprehensive information on the playing track
    -title : now uses the title command
    -current_title : uses the current title_command
    -exit_if_XXX,-die_if_XXX
    : Deprecated in favour of new -if_XXX commands

    Fixes:-
    UTF-8 Based player names
    syncgroups display now displays more than one syncgroup
    Last edited by pssc; 2014-08-26 at 03:30.

  2. #22

    squeezy JSON problem Ubuntu 14.04 - now JSON::RPC::Legacy:Client

    Something changed... I was running 0.21 or .22 for some time. Did a git pull and updated. Now it's complaining about libjson-rpc-perl not being installed. I'm using the native distro package and have even reinstalled it.

    rcampbel@Godzilla~/project/squeezy $ lsb_release -a
    No LSB modules are available.
    Distributor ID: Ubuntu
    Description: Ubuntu 14.04.1 LTS
    Release: 14.04
    Codename: trusty

    rcampbel@Godzilla~/project/squeezy $ git pull
    Already up-to-date.

    rcampbel@Godzilla~/project/squeezy $ ./squeezy
    Install JSON support: sudo apt-get install libjson-rpc-perl at ./squeezy line 113.
    JSON features not supported: JSON::RPC::Client not available... Trying to cope. at ./squeezy line 115.

    rcampbel@Godzilla~/project/squeezy $ sudo apt-get install libjson-rpc-perl
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    libjson-rpc-perl is already the newest version.
    0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

    Then I looked above line 113 in squeezy...
    return 1 if defined $INC{'JSON/RPC/Client.pm'};

    so, I ran 'locate Client.pm'

    rcampbel@Godzilla~/project/squeezy $ locate Client.pm
    /usr/lib/perl5/SVN/Client.pm
    /usr/share/perl/5.18.2/CPAN/HTTP/Client.pm
    /usr/share/perl5/JSON/RPC/Legacy/Client.pm <-- aha!!
    /usr/share/perl5/RPC/PlClient.pm

    So, I hacked... and added in "Legacy" in all the right places, and it appears to work.

    rcampbel@Godzilla~/project/squeezy $ diff /usr/local/bin/squeezy squeezy
    58c58
    < my $module = "JSON::RPC::Legacy::Client";
    ---
    > my $module = "JSON::RPC::Client";
    105c105
    < return 1 if defined $INC{'JSON/RPC/Legacy/Client.pm'};
    ---
    > return 1 if defined $INC{'JSON/RPC/Client.pm'};
    108,109c108,109
    < require JSON::RPC::Legacy::Client;
    < JSON::RPC::Legacy::Client->import();
    ---
    > require JSON::RPC::Client;
    > JSON::RPC::Client->import();
    240c240
    < my $client = $server->{JSONC} ? $server->{JSONC} : new JSON::RPC::Legacy::Client;
    ---
    > my $client = $server->{JSONC} ? $server->{JSONC} : new JSON::RPC::Client;


    I don't quite know the best way to submit this as a patch that will work for both cases - otherwise I would have simply submitted a merge request in github. Hope this helps someone else out

  3. #23
    Quote Originally Posted by rcampbel3 View Post
    Something changed... I was running 0.21 or .22 for some time. Did a git pull and updated. Now it's complaining about libjson-rpc-perl not being installed. I'm using the native distro package and have even reinstalled it.

    rcampbel@Godzilla~/project/squeezy $ lsb_release -a
    No LSB modules are available.
    Distributor ID: Ubuntu
    Description: Ubuntu 14.04.1 LTS
    Release: 14.04
    Codename: trusty

    rcampbel@Godzilla~/project/squeezy $ git pull
    Already up-to-date.

    rcampbel@Godzilla~/project/squeezy $ ./squeezy
    Install JSON support: sudo apt-get install libjson-rpc-perl at ./squeezy line 113.
    JSON features not supported: JSON::RPC::Client not available... Trying to cope. at ./squeezy line 115.

    rcampbel@Godzilla~/project/squeezy $ sudo apt-get install libjson-rpc-perl
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    libjson-rpc-perl is already the newest version.
    0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

    Then I looked above line 113 in squeezy...
    return 1 if defined $INC{'JSON/RPC/Client.pm'};

    so, I ran 'locate Client.pm'

    rcampbel@Godzilla~/project/squeezy $ locate Client.pm
    /usr/lib/perl5/SVN/Client.pm
    /usr/share/perl/5.18.2/CPAN/HTTP/Client.pm
    /usr/share/perl5/JSON/RPC/Legacy/Client.pm <-- aha!!
    /usr/share/perl5/RPC/PlClient.pm

    So, I hacked... and added in "Legacy" in all the right places, and it appears to work.

    rcampbel@Godzilla~/project/squeezy $ diff /usr/local/bin/squeezy squeezy
    58c58
    < my $module = "JSON::RPC::Legacy::Client";
    ---
    > my $module = "JSON::RPC::Client";
    105c105
    < return 1 if defined $INC{'JSON/RPC/Legacy/Client.pm'};
    ---
    > return 1 if defined $INC{'JSON/RPC/Client.pm'};
    108,109c108,109
    < require JSON::RPC::Legacy::Client;
    < JSON::RPC::Legacy::Client->import();
    ---
    > require JSON::RPC::Client;
    > JSON::RPC::Client->import();
    240c240
    < my $client = $server->{JSONC} ? $server->{JSONC} : new JSON::RPC::Legacy::Client;
    ---
    > my $client = $server->{JSONC} ? $server->{JSONC} : new JSON::RPC::Client;


    I don't quite know the best way to submit this as a patch that will work for both cases - otherwise I would have simply submitted a merge request in github. Hope this helps someone else out

    Hi yeah it looks like a new version of JSON-RPC rather than a change in squeezy, they have moved the modules about breaking squeezy, Head in github now has a fix if you wouldn't mind testing at some point, that would be great, then I will push out a release.

    Thanks,

    Phill.
    Last edited by pssc; 2014-10-09 at 02:10. Reason: Fix now in HEAD for testing

  4. #24

    Squeezy - 0.25 (The World changed)

    squeezy - a command-line wrapper around the squeezeserver telnet/CLI

    https://github.com/pssc/squeezy/releases/tag/0.25

    New:-

    Skip action for -if_XXX options.

    Fixes:-

    Fix for later versions of JSON::RPC
    Fixes for bash completion and verboseness
    Fixes to reporting to player name rather than player id

  5. #25
    Junior Member
    Join Date
    Jun 2014
    Posts
    27
    Hi,

    Great app it's not major as everything seems to work without it (although it's just spammy!) but I'm getting JSON features not supported: JSON::RPC:Legacy:Client not available... Trying to cope. at /Users/tv/Scripts/squeezy/squeezy line 122. on a OS X machine. I'm not sure how I fix it though?

    Thanks

  6. #26
    Quote Originally Posted by britcowboy View Post
    Hi,

    Great app it's not major as everything seems to work without it (although it's just spammy!) but I'm getting JSON features not supported: JSON::RPC:Legacy:Client not available... Trying to cope. at /Users/tv/Scripts/squeezy/squeezy line 122. on a OS X machine. I'm not sure how I fix it though?

    Thanks
    Try in a terminal
    Code:
    cpan App::cpanminus
    cpanm JSON::RPC::Legacy::Client
    Let me know if that works for you,

    Phill.

  7. #27
    Junior Member
    Join Date
    Jun 2014
    Posts
    27
    Solved the problem, cheers! Out of interest what does that do? Because it did seem to work fine without it. Something to do with JSON parsing/serialisation?

    Thanks

  8. #28
    Quote Originally Posted by britcowboy View Post
    Solved the problem, cheers! Out of interest what does that do? Because it did seem to work fine without it. Something to do with JSON parsing/serialisation?

    Thanks
    It's currently used in the discovery phase, and for sending custom commands. So not essential unless you have a squeeze server on a non standard port in witch case auto discovery would fail.

    Hence why it just moans about it , moving forward more commands will be using this as not everything is mapped to the cli.

    Phill.

  9. #29

    New Release Squeezy -- 0.26 /(bb|[^b]{2})/

    https://github.com/pssc/squeezy/releases/tag/0.26

    Bug fix release to handle resetting not properly after an -if_XXXX clause
    Also more explicitly useful help for missing dependences

  10. #30
    Junior Member
    Join Date
    Oct 2016
    Posts
    9

    Control squeeze from tasker

    how to get from the player volume level in Tasker variable????

    I can change volume, and create tasker shortcuts on phone desktop
    http://192.168.1.36:9000/
    p0=mixer
    p1=volume
    p2=+5
    player=%PLAYER

Posting Permissions

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