98_DLNARenderer.pm (UPnP) (zuvor 98_DLNAClient.pm)

Begonnen von dominik, 04 August 2015, 20:23:38

Vorheriges Thema - Nächstes Thema

dominik

fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik

Norberto

 
Wow. Das ging ja 'fix'.  :)

Danke Dir. Gruß, Norbert

dominik

Doch schon heute. Update mit Fix für MUNET im 1. Post :)

Viel Spaß beim Testen!
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik

MichaelT

Bitte um Hilfe!

Ich verzweifel an perl oder woran auch sonst >:(

Ich habe mit cpan die genannten perl Module installiert!
Dann habe ich ein Device angelegt und nach kurzer Zeit sehe ich meine MUNETs.
Wenn einer Musik abspielt wird es auch angezeigt.

AAABBBERR: Sobald ich z.B. Volume von 25 auf 27 erhöhe beendet sich mein fhem ohne für mich ersichtlichen Grund!
Auch einen Stream von FHEM aus abspielen funktioniert nicht.

Die etzte Ausgabe im Log ist sowas in der Art:
junk '============================================================Title: UPnP AV Rendering Control Service (RCS) TemplatePurpose:To ident ....

Wie komme ich dahinter, was für ein Problem fhem hat?

Über Hilfe würde ich mich freuen
Gruß Michael
Großes Mischmasch aus HM, Philips, WLAN und Eigenprojekte.
ABER alles mit FHEM.

dominik

Hi Michael,

poste bitte mal alle Log Ausgaben.

Gruß
Dominik
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik

MichaelT

Zitat von: dominik am 11 Mai 2016, 18:26:37
Hi Michael,

poste bitte mal alle Log Ausgaben.

Gruß
Dominik

2016.05.11 18:40:12 3: CUL_HM set FREMD_Rol statusRequest
junk '============================================================Title: UPnP AV Rendering Control Service (RCS) TemplatePurpose:To identify the required/optional actions and state variablesand the required allowed values defined by this service type.Note:This file uses tabs (not spaces) for block indentation.Any updates to this file should maintain this convention.This includes disabling any automatic tab-to-space conversionfeature provided by your editor.================================================================-->' before XML element
2016.05.11 18:54:42 1: CallBlockingFn: Can't connect to localhost:7072: IO::Socket::INET: connect: Verbindungsaufbau abgelehnt
Can't use an undefined value as a symbol reference at Blocking.pm line 139.
"my" variable $dayDiff masks earlier declaration in same scope at ./FHEM/99_myAbfallFunktions.pm line 84.
"my" variable $dayDiff masks earlier declaration in same scope at ./FHEM/99_myAbfallFunktions.pm line 88.
"my" variable $dayDiff masks earlier declaration in same scope at ./FHEM/99_myAbfallFunktions.pm line 92.
2016.05.11 18:54:58 1: reload: Error:Modul 99_myAbfallFunktions deactivated:

Useless use of a variable in void context at ./FHEM/99_myUtilsTelefon.pm line 178.
2016.05.11 18:54:58 1: Including fhem.cfg


das ist alles was ich sehe. 18:54:42 ist schon wieder Neustart fhem.
Großes Mischmasch aus HM, Philips, WLAN und Eigenprojekte.
ABER alles mit FHEM.

MichaelT

Großes Mischmasch aus HM, Philips, WLAN und Eigenprojekte.
ABER alles mit FHEM.

dominik

Welchen Fehler bekommst du wenn du:
- set <device> stream ...
- set <device> play
- set <device> stop
- set <device> enableBTCaskeid
ausführst?
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik

MichaelT

#263
set stream und set play:

2016.05.11 19:03:35 3: CUL_HM set EG_WZ_RT statusRequest
junk '============================================================Title: UPnP AV AV-Transport Service (AVT) TemplatePurpose:To identify the required/optional actions and state variablesand the required allowed values defined by this service type.Note:This file uses tabs (not spaces) for block indentation.Any updates to this file should maintain this convention.This includes disabling any automatic tab-to-space conversionfeature provided by your editor.================================================================-->' before XML element
junk '============================================================Title: UPnP AV AV-Transport Service (AVT) TemplatePurpose:To identify the required/optional actions and state variablesand the required allowed values defined by this service type.Note:This file uses tabs (not spaces) for block indentation.Any updates to this file should maintain this convention.This includes disabling any automatic tab-to-space conversionfeature provided by your editor.================================================================-->' before XML element


eigentlich immer gleich


EDIT: dann war fhem weg

Danke für deine Zeitspende
Großes Mischmasch aus HM, Philips, WLAN und Eigenprojekte.
ABER alles mit FHEM.

dominik

Das liegt ziemlich sicher am XML Parser. Welche Version von XML::Simple ist denn installiert?
pi@raspberrypi ~ $ perl -e "require XML::Simple; printf XML::Simple->VERSION;"
2.20
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik

MichaelT


perl -e "require XML::Simple; printf XML::Simple->VERSION;"
2.22
Großes Mischmasch aus HM, Philips, WLAN und Eigenprojekte.
ABER alles mit FHEM.

MichaelT

Aber irgendwie muss der parser ja funktionieren, oder?
Die Events vom MUNET werden ja richtig zerlegt.

Großes Mischmasch aus HM, Philips, WLAN und Eigenprojekte.
ABER alles mit FHEM.

dominik

Was passiert wenn du mit der MUNET App die Lautstärke änderst? Crashed FHEM dann auch?
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik

MichaelT

Nein, dann zeigt fhem die Änderung an. Also Events scheinen zu kommen.


016.05.11 20:16:56 4: DLNARenderer: Received event: $VAR1 = 'LastChange';
$VAR2 = '<Event xmlns="urn:schemas-upnp-org:metadata-1-0/AVT/"><InstanceID val="0"><CurrentTrackURI val="http://media.thelounge.com/radio/8012.m3u"/><NumberOfTracks val="1"/><AVTransportURI val="http://media.thelounge.com/radio/8012.m3u"/><CurrentTrackMetaData val="&lt;DIDL-Lite xmlns:dc=&quot;http://purl.org/dc/elements/1.1/&quot; xmlns:upnp=&quot;urn:schemas-upnp-org:metadata-1-0/upnp/&quot; xmlns=&quot;urn:schemas-upnp-org:metadata-1-0/DIDL-Lite/&quot;&gt;&lt;item id=&quot;radio:3978&quot; parentID=&quot;0&quot;&gt;&lt;dc:title&gt;ANTENNE BAYERN&lt;/dc:title&gt;&lt;dc:creator&gt;&lt;/dc:creator&gt;&lt;upnp:artist&gt;&lt;/upnp:artist&gt;&lt;upnp:album&gt;Bayerns bester Musikmix&lt;/upnp:album&gt;&lt;upnp:albumArtURI&gt;http://i.img.co/radio/20/16/1602_290.png?scale=640x480&lt;/upnp:albumArtURI&gt;&lt;upnp:class&gt;object.item.audioItem.audioBroadcast&lt;/upnp:class&gt;&lt;res protocolInfo=&quot;http-get:*:audio/mpeg:DLNA.ORG_OP=01&quot; duration=&quot;&quot;&gt;http://me.com&lt;/res&gt;&lt;/item&gt;&lt;/DIDL-Lite&gt;"/><AVTransportURIMetaData val="&lt;DIDL-Lite xmlns:dc=&quot;http://purl.org/dc/elements/1.1/&quot; xmlns:upnp=&quot;urn:schemas-upnp-org:metadata-1-0/upnp/&quot; xmlns=&quot;urn:schemas-upnp-org:metadata-1-0/DIDL-Lite/&quot;&gt;&lt;item id=&quot;radio:3978&quot; parentID=&quot;0&quot;&gt;&lt;dc:title&gt;ANTENNE BAYERN&lt;/dc:title&gt;&lt;dc:creator&gt;&lt;/dc:creator&gt;&lt;upnp:artist&gt;&lt;/upnp:artist&gt;&lt;upnp:album&gt;Bayerns bester Musikmix&lt;/upnp:album&gt;&lt;upnp:albumArtURI&gt;http://i.img.co/radio/20/16/1602_290.png?scale=640x480&lt;/upnp:albumArtURI&gt;&lt;upnp:class&gt;object.item.audioItem.audioBroadcast&lt;/upnp:class&gt;&lt;res protocolInfo=&quot;http-get:*:audio/mpeg:DLNA.ORG_OP=01&quot; duration=&quot;&quot;&gt;http://me.com&lt;/res&gt;&lt;/item&gt;&lt;/DIDL-Lite&gt;"/><CurrentTrack val="1"/></InstanceID></Event>';

2016.05.11 20:16:56 4: DLNARenderer: $VAR1 = {
          'Event' => {
                     'xmlns' => 'urn:schemas-upnp-org:metadata-1-0/AVT/',
                     'InstanceID' => {
                                     'AVTransportURI' => {
                                                         'val' => 'http://media.thelounge.com/radio/8012.m3u'
                                                       },
                                     'CurrentTrackMetaData' => {
                                                               'val' => '<DIDL-Lite xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:upnp="urn:schemas-upnp-org:metadata-1-0/upnp/" xmlns="urn:schemas-upnp-org:metadata-1-0/DIDL-Lite/"><item id="radio:3978" parentID="0"><dc:title>ANTENNE BAYERN</dc:title><dc:creator></dc:creator><upnp:artist></upnp:artist><upnp:album>Bayerns bester Musikmix</upnp:album><upnp:albumArtURI>http://i.img.co/radio/20/16/1602_290.png?scale=640x480</upnp:albumArtURI><upnp:class>object.item.audioItem.audioBroadcast</upnp:class><res protocolInfo="http-get:*:audio/mpeg:DLNA.ORG_OP=01" duration="">http://me.com</res></item></DIDL-Lite>'
                                                             },
                                     'CurrentTrackURI' => {
                                                          'val' => 'http://media.thelounge.com/radio/8012.m3u'
                                                        },
                                     'NumberOfTracks' => {
                                                         'val' => '1'
                                                       },
                                     'CurrentTrack' => {
                                                       'val' => '1'
                                                     },
                                     'val' => '0',
                                     'AVTransportURIMetaData' => {
                                                                 'val' => '<DIDL-Lite xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:upnp="urn:schemas-upnp-org:metadata-1-0/upnp/" xmlns="urn:schemas-upnp-org:metadata-1-0/DIDL-Lite/"><item id="radio:3978" parentID="0"><dc:title>ANTENNE BAYERN</dc:title><dc:creator></dc:creator><upnp:artist></upnp:artist><upnp:album>Bayerns bester Musikmix</upnp:album><upnp:albumArtURI>http://i.img.co/radio/20/16/1602_290.png?scale=640x480</upnp:albumArtURI><upnp:class>object.item.audioItem.audioBroadcast</upnp:class><res protocolInfo="http-get:*:audio/mpeg:DLNA.ORG_OP=01" duration="">http://me.com</res></item></DIDL-Lite>'
                                                               }
                                   }
                   }
        };

2016.05.11 20:16:56 4: DLNARenderer: Update reading currentTrackURI with http://media.thelounge.com/radio/8012.m3u
2016.05.11 20:16:56 4: DLNARenderer: MetaData: $VAR1 = {
          'DIDL-Lite' => {
                         'xmlns' => 'urn:schemas-upnp-org:metadata-1-0/DIDL-Lite/',
                         'item' => {
                                   'upnp:album' => 'Bayerns bester Musikmix',
                                   'dc:title' => 'ANTENNE BAYERN',
                                   'res' => {
                                            'content' => 'http://me.com',
                                            'protocolInfo' => 'http-get:*:audio/mpeg:DLNA.ORG_OP=01',
                                            'duration' => ''
                                          },
                                   'dc:creator' => {},
                                   'parentID' => '0',
                                   'upnp:class' => 'object.item.audioItem.audioBroadcast',
                                   'id' => 'radio:3978',
                                   'upnp:albumArtURI' => 'http://i.img.co/radio/20/16/1602_290.png?scale=640x480',
                                   'upnp:artist' => {}
                                 },
                         'xmlns:upnp' => 'urn:schemas-upnp-org:metadata-1-0/upnp/',
                         'xmlns:dc' => 'http://purl.org/dc/elements/1.1/'
                       }
        };

2016.05.11 20:16:58 4: DLNARenderer: Received event: $VAR1 = 'LastChange';
$VAR2 = '<Event xmlns="urn:schemas-upnp-org:metadata-1-0/AVT/"><InstanceID val="0"><TransportState val="TRANSITIONING"/></InstanceID></Event>';

2016.05.11 20:16:58 4: DLNARenderer: $VAR1 = {
          'Event' => {
                     'xmlns' => 'urn:schemas-upnp-org:metadata-1-0/AVT/',
                     'InstanceID' => {
                                     'TransportState' => {
                                                         'val' => 'TRANSITIONING'
                                                       },
                                     'val' => '0'
                                   }
                   }
        };

2016.05.11 20:16:58 4: DLNARenderer: Update reading transportState with TRANSITIONING
2016.05.11 20:17:03 4: DLNARenderer: Received event: $VAR1 = 'LastChange';
$VAR2 = '<Event xmlns="urn:schemas-upnp-org:metadata-1-0/AVT/"><InstanceID val="0"><TransportState val="PLAYING"/></InstanceID></Event>';

2016.05.11 20:17:03 4: DLNARenderer: $VAR1 = {
          'Event' => {
                     'xmlns' => 'urn:schemas-upnp-org:metadata-1-0/AVT/',
                     'InstanceID' => {
                                     'TransportState' => {
                                                         'val' => 'PLAYING'
                                                       },
                                     'val' => '0'
                                   }
                   }
        };

2016.05.11 20:17:03 4: DLNARenderer: Update reading transportState with PLAYING
2016.05.11 20:17:33 4: DLNARenderer: Received event: $VAR1 = 'LastChange';
$VAR2 = '<Event xmlns="urn:schemas-upnp-org:metadata-1-0/RCS/"><InstanceID val="0"><Volume channel="Master" val="35"/></InstanceID></Event>';

2016.05.11 20:17:33 4: DLNARenderer: $VAR1 = {
          'Event' => {
                     'xmlns' => 'urn:schemas-upnp-org:metadata-1-0/RCS/',
                     'InstanceID' => {
                                     'Volume' => [
                                                 {
                                                   'channel' => 'Master',
                                                   'val' => '35'
                                                 }
                                               ],
                                     'val' => '0'
                                   }
                   }
        };

2016.05.11 20:17:33 4: DLNARenderer: Update reading volume with 35

jump to the top
Großes Mischmasch aus HM, Philips, WLAN und Eigenprojekte.
ABER alles mit FHEM.

dominik

Ja, Events funktionieren also. Dann liegt es an der ControlPoint.pm...welche Versionen nutzt du von folgenden Modulen:
pi@raspberrypi ~ $ perl -e "require SOAP::Lite; printf SOAP::Lite->VERSION;"    1.11
pi@raspberrypi ~ $ perl -e "require LWP;printf LWP->VERSION;"                   6.08
fhempy -  https://github.com/fhempy/fhempy: GoogleCast, Tuya, UPnP, Ring, EQ3BT, Nespresso, Xiaomi, Spotify, Object Detection, ...
Kaffeespende: https://paypal.me/todominik