2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-10 09:16:53 +00:00

74_AMAD: New Version 2.6.1 support for more Mediaplayer Readings

git-svn-id: https://svn.fhem.de/fhem/trunk@11968 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
markooldenburg 2016-08-15 10:22:11 +00:00
parent 2f51b047f3
commit 110a7c254d
3 changed files with 538 additions and 495 deletions

View File

@ -1,5 +1,7 @@
# Add changes at the top of the list. Keep it in ASCII, and 80-char wide.
# Do not insert empty lines here, update check depends on it.
- updated: 74_AMAD: New Version 2.6.1 support for more Mediaplayer Readings
new error handling for "send data to AMADCommBridge Flow"
- change: 38_netatmo: status "no data"
- bugfix: 98_Hyperion: reporting Hyperion as off while clearall is active
- updated: 74_AMAD: New Minor Release 2.6 new 2 Media Readings,

View File

@ -37,8 +37,8 @@ use TcpServerUtils;
use Encode qw(encode);
my $modulversion = "2.6.0";
my $flowsetversion = "2.6.0";
my $modulversion = "2.6.1";
my $flowsetversion = "2.6.1";
@ -1166,6 +1166,15 @@ sub AMAD_CommBridge_Read($) {
elsif( !defined($device) ) {
readingsSingleUpdate( $bhash, "transmitterERROR", $name." has no device name sends", 1 ) if( ReadingsVal( $bname, "expertMode", 0 ) eq "1" );
Log3 $name, 4, "AMAD ($name) - ERROR - no device name given. please check your global variable in automagic";
$response = "header lines: \r\n AMADCommBridge receive no device name. please check your global variable in automagic\r\n FHEM to do nothing\r\n";
$c = $hash->{CD};
print $c "HTTP/1.1 200 OK\r\n",
"Content-Type: text/plain\r\n",
"Connection: close\r\n",
"Content-Length: ".length($response)."\r\n\r\n",
$response;
return;
}
@ -1395,6 +1404,8 @@ sub AMAD_decrypt($) {
<li>currentMusicAlbum - currently playing album of mediaplayer</li>
<li>currentMusicApp - currently playing player app</li>
<li>currentMusicArtist - currently playing artist of mediaplayer</li>
<li>currentMusicIcon - cover of currently play album<b>Noch nicht fertig implementiert</b></li>
<li>currentMusicState - state of currently/last used mediaplayer</li>
<li>currentMusicTrack - currently playing song title of mediaplayer</li>
<li>daydream - on/off, daydream currently active</li>
<li>deviceState - state of Android devices. unknown, online, offline.</li>
@ -1651,4 +1662,4 @@ sub AMAD_decrypt($) {
</ul>
=end html_DE
=cut
=cut