Errik128 wrote: > 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
Code: -------------------- '-volume' => { help => "set the player's volume (absolute or relative, use \'?\' to query the current volume)", do_shift => 1, command => sub { my $vol = shift; if ( $vol ne '?' ) { if ( ! ( $vol =~ m/^[+-]?[0-9]{1,}$/ ) ) { die "squeezy -volume: invalid volume specifier ($vol)\n"; } if ( 100 < $vol || $vol < -100) { die "squeezy -volume: invalid volume specifier ($vol, should be min/max 100)\n"; } send_command urlencode($player)." mixer volume $vol"; } report 'volume', pick_field 3, send_command urlencode($player)." mixer volume ?"; } }, -------------------- Does your '+' need to be encoded? , I just send the delta. For a volume query p2 blank or '?' ? Phill. ------------------------------------------------------------------------ pssc's Profile: http://forums.slimdevices.com/member.php?userid=5644 View this thread: http://forums.slimdevices.com/showthread.php?t=87636 _______________________________________________ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix