mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-13 05:06:35 +00:00
update to support coverart links
git-svn-id: https://svn.fhem.de/fhem/trunk@6226 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
e621ea1cae
commit
bacacda5d2
@ -31,11 +31,6 @@
|
|||||||
# CLIPORT the port for the CLI interface of the server
|
# CLIPORT the port for the CLI interface of the server
|
||||||
#
|
#
|
||||||
# ############################################################################
|
# ############################################################################
|
||||||
#
|
|
||||||
# $Id$
|
|
||||||
#
|
|
||||||
# ############################################################################
|
|
||||||
|
|
||||||
|
|
||||||
package main;
|
package main;
|
||||||
use strict;
|
use strict;
|
||||||
@ -469,6 +464,7 @@ sub SB_SERVER_Set( $@ ) {
|
|||||||
|
|
||||||
} elsif( $cmd eq "statusRequest" ) {
|
} elsif( $cmd eq "statusRequest" ) {
|
||||||
Log3( $hash, 5, "SB_SERVER_Set: statusRequest" );
|
Log3( $hash, 5, "SB_SERVER_Set: statusRequest" );
|
||||||
|
DevIo_SimpleWrite( $hash, "version ?\n", 0 );
|
||||||
DevIo_SimpleWrite( $hash, "serverstatus 0 200\n", 0 );
|
DevIo_SimpleWrite( $hash, "serverstatus 0 200\n", 0 );
|
||||||
DevIo_SimpleWrite( $hash, "favorites items 0 " .
|
DevIo_SimpleWrite( $hash, "favorites items 0 " .
|
||||||
AttrVal( $name, "maxfavorites", 100 ) . "\n",
|
AttrVal( $name, "maxfavorites", 100 ) . "\n",
|
||||||
@ -634,6 +630,9 @@ sub SB_SERVER_DoInit( $ ) {
|
|||||||
|
|
||||||
# and signal to our clients
|
# and signal to our clients
|
||||||
SB_SERVER_Broadcast( $hash, "SERVER", "OFF" );
|
SB_SERVER_Broadcast( $hash, "SERVER", "OFF" );
|
||||||
|
SB_SERVER_Broadcast( $hash, "SERVER",
|
||||||
|
"IP " . $hash->{IP} .
|
||||||
|
":9000" );
|
||||||
}
|
}
|
||||||
return( "" );
|
return( "" );
|
||||||
}
|
}
|
||||||
@ -649,6 +648,10 @@ sub SB_SERVER_DoInit( $ ) {
|
|||||||
AttrVal( $name, "maxfavorites", 100 ) . "\n", 0 );
|
AttrVal( $name, "maxfavorites", 100 ) . "\n", 0 );
|
||||||
DevIo_SimpleWrite( $hash, "playlists 0 200\n", 0 );
|
DevIo_SimpleWrite( $hash, "playlists 0 200\n", 0 );
|
||||||
|
|
||||||
|
SB_SERVER_Broadcast( $hash, "SERVER",
|
||||||
|
"IP " . $hash->{IP} .
|
||||||
|
":9000" );
|
||||||
|
|
||||||
# start the alive checking mechanism
|
# start the alive checking mechanism
|
||||||
$hash->{ALIVECHECK} = "?";
|
$hash->{ALIVECHECK} = "?";
|
||||||
InternalTimer( gettimeofday() + AttrVal( $name, "alivetimer", 120 ),
|
InternalTimer( gettimeofday() + AttrVal( $name, "alivetimer", 120 ),
|
||||||
@ -720,6 +723,9 @@ sub SB_SERVER_ParseCmds( $$ ) {
|
|||||||
readingsSingleUpdate( $hash, "power", "on", 1 );
|
readingsSingleUpdate( $hash, "power", "on", 1 );
|
||||||
# signal our players
|
# signal our players
|
||||||
SB_SERVER_Broadcast( $hash, "SERVER", "ON" );
|
SB_SERVER_Broadcast( $hash, "SERVER", "ON" );
|
||||||
|
SB_SERVER_Broadcast( $hash, "SERVER",
|
||||||
|
"IP " . $hash->{IP} .
|
||||||
|
":9000" );
|
||||||
}
|
}
|
||||||
|
|
||||||
} elsif( $cmd eq "pref" ) {
|
} elsif( $cmd eq "pref" ) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user