mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-04 22:19:38 +00:00
71_PHILIPS_AUDIO: Added input support for AW9000
git-svn-id: https://svn.fhem.de/fhem/trunk@11329 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
f2ffa13962
commit
c470eb1a3b
@ -1,5 +1,6 @@
|
|||||||
# Add changes at the top of the list. Keep it in ASCII, and 80-char wide.
|
# 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.
|
# Do not insert empty lines here, update check depends on it.
|
||||||
|
- feature: 71_PHILIPS_AUDIO : Added input support for AW9000
|
||||||
- bugfix: 50_TelegramBot: contact handling failed (/ in contact names ??)
|
- bugfix: 50_TelegramBot: contact handling failed (/ in contact names ??)
|
||||||
- feature: new module 02_FTUISRV.pm for server side templates for tablet UI
|
- feature: new module 02_FTUISRV.pm for server side templates for tablet UI
|
||||||
- feature: 30_pilight_switch: new attribute 'sendCount' to send the
|
- feature: 30_pilight_switch: new attribute 'sendCount' to send the
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
# such as MCi, Streamium and Fidelio devices.
|
# such as MCi, Streamium and Fidelio devices.
|
||||||
# The module provides basic functionality accessible through the port 8889 of the device:
|
# The module provides basic functionality accessible through the port 8889 of the device:
|
||||||
# (http://<device_ip>:8889/index).
|
# (http://<device_ip>:8889/index).
|
||||||
# e.g. NP3500, NP3700, NP3900.
|
# e.g. AW9000, NP3500, NP3700, NP3900
|
||||||
#
|
#
|
||||||
# Copyright by Radoslaw Watroba
|
# Copyright by Radoslaw Watroba
|
||||||
# (e-mail: ra666ack at g**glemail d*t c*m)
|
# (e-mail: ra666ack at g**glemail d*t c*m)
|
||||||
@ -177,6 +177,8 @@ sub PHILIPS_AUDIO_Set
|
|||||||
|
|
||||||
my $usage;
|
my $usage;
|
||||||
|
|
||||||
|
my $model = $hash->{MODEL};
|
||||||
|
|
||||||
$usage = "Unknown argument $what, choose one of ".
|
$usage = "Unknown argument $what, choose one of ".
|
||||||
"volumeStraight:slider,0,1,64 ".
|
"volumeStraight:slider,0,1,64 ".
|
||||||
"volume:slider,0,1,100 ".
|
"volume:slider,0,1,100 ".
|
||||||
@ -190,6 +192,9 @@ sub PHILIPS_AUDIO_Set
|
|||||||
"stop:noArg ".
|
"stop:noArg ".
|
||||||
"shuffle:on,off ".
|
"shuffle:on,off ".
|
||||||
"aux:noArg ".
|
"aux:noArg ".
|
||||||
|
((uc($model) eq "AW9000") ? "mp3link:noArg " : ""). # Input implemented in AW9000 only
|
||||||
|
((uc($model) eq "AW9000") ? "coaxial:noArg " : ""). # Input implemented in AW9000 only
|
||||||
|
((uc($model) eq "AW9000") ? "optical:noArg " : ""). # Input implemented in AW9000 only
|
||||||
#"input:aux,internetRadio,mediaLibrary,onlineServices ".
|
#"input:aux,internetRadio,mediaLibrary,onlineServices ".
|
||||||
$inetRadioPreset.
|
$inetRadioPreset.
|
||||||
$inetRadioFavorite.
|
$inetRadioFavorite.
|
||||||
@ -214,6 +219,18 @@ sub PHILIPS_AUDIO_Set
|
|||||||
{
|
{
|
||||||
PHILIPS_AUDIO_SendCommand($hash, "/aux", "",$what, $a[2]);
|
PHILIPS_AUDIO_SendCommand($hash, "/aux", "",$what, $a[2]);
|
||||||
}
|
}
|
||||||
|
elsif($what eq "mp3link")
|
||||||
|
{
|
||||||
|
PHILIPS_AUDIO_SendCommand($hash, "/mp3link", "",$what, $a[2]);
|
||||||
|
}
|
||||||
|
elsif($what eq "coaxial")
|
||||||
|
{
|
||||||
|
PHILIPS_AUDIO_SendCommand($hash, "/digin_coaxial", "",$what, $a[2]);
|
||||||
|
}
|
||||||
|
elsif($what eq "optical")
|
||||||
|
{
|
||||||
|
PHILIPS_AUDIO_SendCommand($hash, "/digin_optical", "",$what, $a[2]);
|
||||||
|
}
|
||||||
elsif($what eq "home")
|
elsif($what eq "home")
|
||||||
{
|
{
|
||||||
PHILIPS_AUDIO_SendCommand($hash, "/index", "",$what, $a[2]);
|
PHILIPS_AUDIO_SendCommand($hash, "/index", "",$what, $a[2]);
|
||||||
@ -399,7 +416,7 @@ sub PHILIPS_AUDIO_Define
|
|||||||
|
|
||||||
if(defined($a[2]))
|
if(defined($a[2]))
|
||||||
{
|
{
|
||||||
$hash->{MODEL} = $a[2];
|
$hash->{MODEL} = uc($a[2]);
|
||||||
|
|
||||||
# Used by 'fheminfo' command for statistics
|
# Used by 'fheminfo' command for statistics
|
||||||
$attr{$name}{"model"} = $hash->{MODEL};
|
$attr{$name}{"model"} = $hash->{MODEL};
|
||||||
@ -819,7 +836,7 @@ sub PHILIPS_AUDIO_ParseResponse
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
# Eventual future UPNP implementation. Requests IO::Socket::Multicast non-standard module.
|
# Eventual future UPNP implementation. Requires IO::Socket::Multicast non-standard module.
|
||||||
elsif ($cmd eq "getModel")
|
elsif ($cmd eq "getModel")
|
||||||
{
|
{
|
||||||
if($data =~ /<friendlyName>(.+)<\/friendlyName>/)
|
if($data =~ /<friendlyName>(.+)<\/friendlyName>/)
|
||||||
@ -1225,6 +1242,8 @@ sub PHILIPS_AUDIO_updateFavorites
|
|||||||
This module controls a Philips Audio Player e.g. MCi, Streamium or Fidelio and (potentially) any other device including a navigation server.<br>
|
This module controls a Philips Audio Player e.g. MCi, Streamium or Fidelio and (potentially) any other device including a navigation server.<br>
|
||||||
To check, open the following URL in the browser: http://[ip # of your device]:8889/index
|
To check, open the following URL in the browser: http://[ip # of your device]:8889/index
|
||||||
<br><br>
|
<br><br>
|
||||||
|
(So far tested on: AW9000, NP3500, NP3700 and NP3900)
|
||||||
|
<br><br>
|
||||||
Currently implemented features:
|
Currently implemented features:
|
||||||
<br><br>
|
<br><br>
|
||||||
<ul>
|
<ul>
|
||||||
@ -1393,7 +1412,10 @@ sub PHILIPS_AUDIO_updateFavorites
|
|||||||
Mit Hilfe dieses Moduls lassen sich Philips Audio Netzwerk Player wie z.B. MCi, Streamium oder Fidelio via Ethernet steuern.<br>
|
Mit Hilfe dieses Moduls lassen sich Philips Audio Netzwerk Player wie z.B. MCi, Streamium oder Fidelio via Ethernet steuern.<br>
|
||||||
Theoretisch sollten alle Geräte, die über einer implementierten HTTP Server am Port 8889 haben (http://[ip Nummer des Gerätes]:8889/index), bedient werden können.<br>
|
Theoretisch sollten alle Geräte, die über einer implementierten HTTP Server am Port 8889 haben (http://[ip Nummer des Gerätes]:8889/index), bedient werden können.<br>
|
||||||
<br>
|
<br>
|
||||||
|
<br>
|
||||||
|
(Getestet mit: AW9000, NP3500, NP3700 und NP3900)
|
||||||
|
<br>
|
||||||
|
<br>
|
||||||
Die aktuelle Implementierung ermöglicht u.a. den folgenden Funktionsumfang:<br><br>
|
Die aktuelle Implementierung ermöglicht u.a. den folgenden Funktionsumfang:<br><br>
|
||||||
<ul>
|
<ul>
|
||||||
<li>Power on/off</li>
|
<li>Power on/off</li>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user