From 2eaceb4bb99421efc93d71d3abc37782c33cd3b4 Mon Sep 17 00:00:00 2001 From: Marko Oldenburg Date: Tue, 23 May 2017 21:23:13 +0200 Subject: [PATCH] Version 0.2.0 stable --- 21_HEOSGroup.pm | 2 +- 21_HEOSMaster.pm | 19 +++++++++++++++---- 21_HEOSPlayer.pm | 10 +--------- 3 files changed, 17 insertions(+), 14 deletions(-) diff --git a/21_HEOSGroup.pm b/21_HEOSGroup.pm index a75b977..03c0cb1 100644 --- a/21_HEOSGroup.pm +++ b/21_HEOSGroup.pm @@ -38,7 +38,7 @@ use JSON qw(decode_json); use Encode qw(encode_utf8); -my $version = "0.1.80"; +my $version = "0.2.0"; diff --git a/21_HEOSMaster.pm b/21_HEOSMaster.pm index d5e67a9..0d560de 100644 --- a/21_HEOSMaster.pm +++ b/21_HEOSMaster.pm @@ -32,7 +32,19 @@ ################################# ######### Wichtige Hinweise und Links ################# - +# +## Das JSON Modul immer in einem eval aufrufen +# $data = eval{decode_json($data)}; +# +# if($@){ +# Log3($SELF, 2, "$TYPE ($SELF) - error while request: $@"); +# +# readingsSingleUpdate($hash, "state", "error", 1); +# +# return; +# } +## +## ## # @@ -45,17 +57,16 @@ use warnings; #use Data::Dumper; my $missingModul = ""; -my $missingModulNet = ""; eval "use Net::Telnet;1" or $missingModul .= "Net::Telnet "; eval "use JSON;1" or $missingModul .= "JSON "; eval "use Encode;1" or $missingModul .= "Encode "; -eval "use IO::Socket::Multicast;1" or $missingModulNet .= "IO::Socket::Multicast "; +eval "use IO::Socket::Multicast;1" or $missingModul .= "IO::Socket::Multicast "; -my $version = "0.1.80"; +my $version = "0.2.0"; my %heosCmds = ( 'enableChangeEvents' => 'system/register_for_change_events?enable=', diff --git a/21_HEOSPlayer.pm b/21_HEOSPlayer.pm index cebd646..ad88b5d 100644 --- a/21_HEOSPlayer.pm +++ b/21_HEOSPlayer.pm @@ -39,7 +39,7 @@ use Encode qw(encode_utf8); use URI::Escape; #use Data::Dumper; -my $version = "0.1.80"; +my $version = "0.2.0"; @@ -1148,10 +1148,6 @@ sub HEOSPlayer_makeImage($$) {
  • channelDown- switches to previous favorite
  • clear queue - clears the queue
  • deletePlaylist <myList> - clears playlist <myList>
  • -
  • getNowPlayingMedia - get media info from now playing stream
  • -
  • getPlayMode - get player mode (repeat|shuffle)
  • -
  • getPlayState - get player state (play|pause|stop)
  • -
  • getPlayerInfo - get player info (pid, gid, network, ...)
  • set <hp1> groupWithMember <hp2> - creates group with hp1 as leader and hp2 as member
  • input sid[,cid][,mid] - set input source-id[,container-id][,media-id]