Neuentw. Modulpaket zu UPnP: Controller, Device, DLNA(Renderer-Ersatz)

Begonnen von KölnSolar, 15 Februar 2021, 19:29:49

Vorheriges Thema - Nächstes Thema

KölnSolar

Hi Jens,

ich bräuchte ein verbose=4 Log.

Gerade nochmal mit der Windows-Beispielmusik u. dem Mediaplayer getestet. Titel wird im reading richtig angezeigt.

Grüße Markus
RPi3/2 buster/stretch-SamsungAV_E/N-RFXTRX-IT-RSL-NC5462-Oregon-CUL433-GT-TMBBQ-01e-CUL868-FS20-EMGZ-1W(GPIO)-DS18B20-CO2-USBRS232-USBRS422-Betty_Boop-EchoDot-OBIS(Easymeter-Q3/EMH-KW8)-PCA301(S'duino)-Deebot(mqtt2)-zigbee2mqtt

Newbie

Hallo Markus,

2021.05.09 00:25:42 4: DLNAController DLNA_39ca9d29_256c_43b4_a8eb_a8d9014bdbaa: state update from UPNP_Controller, address 10.1.5.12_52941
2021.05.09 00:25:42 4: DLNAController: message parameters: AVTransport, 10.1.5.12_59877, LastChange, <Event xmlns="urn:schemas-upnp-org:metadata-1-0/AVT/"><InstanceID val="0"><CurrentTrackMetaData val="&lt;?xml version=&quot;1.0&quot;?&gt;
&lt;DIDL-Lite xmlns=&quot;urn:schemas-upnp-org:metadata-1-0/DIDL-Lite/&quot; xmlns:raumfeld=&quot;urn:schemas-raumfeld-com:meta-data/raumfeld&quot; xmlns:upnp=&quot;urn:schemas-upnp-org:metadata-1-0/upnp/&quot; xmlns:dc=&quot;http://purl.org/dc/elements/1.1/&quot; xmlns:dlna=&quot;urn:schemas-dlna-org:metadata-1-0/&quot; xmlns:pv=&quot;http://www.pv.com/pvns/&quot; lang=&quot;en&quot;&gt;&lt;item parentID=&quot;0/Favorites/RecentlyPlayed&quot; id=&quot;0/Favorites/RecentlyPlayed/101&quot; restricted=&quot;1&quot; refID=&quot;0/RadioTime/Search/s-s228746&quot;&gt;&lt;raumfeld:name&gt;Station&lt;/raumfeld:name&gt;&lt;upnp:class&gt;object.item.audioItem.audioBroadcast.radio&lt;/upnp:class&gt;&lt;raumfeld:section&gt;RadioTime&lt;/raumfeld:section&gt;&lt;raumfeld:durability&gt;120&lt;/raumfeld:durability&gt;&lt;raumfeld:ebrowse&gt;http://opml.radiotime.com/Tune.ashx?partnerId=7aJ9pvV5&amp;amp;formats=mp3%2Cogg&amp;amp;serial=50%3A1e%3A2d%3A11%3A3e%3A30&amp;amp;id=s228746&amp;amp;c=ebrowse&lt;/raumfeld:ebrowse&gt;&lt;dc:title&gt;Billy Joel - Uptown girl&lt;/dc:title&gt;&lt;upnp:albumArtURI dlna:profileID=&quot;JPEG_TN&quot;&gt;http://cdn-profiles.tunein.com/s228746/images/logoq.png?t=154228&lt;/upnp:albumArtURI&gt;&lt;res bitrate=&quot;128&quot; protocolInfo=&quot;http-get:*:audio/x-mpegurl:*&quot;&gt;http://opml.radiotime.com/Tune.ashx?id=e89247373&amp;amp;sid=s228746&amp;amp;formats=mp3,ogg&amp;amp;partnerId=7aJ9pvV5&amp;amp;serial=50:1e:2d:11:3e:30&lt;/res&gt;&lt;/item&gt;&lt;/DIDL-Lite&gt;
"/></InstanceID></Event>
2021.05.09 00:25:42 1: DLNAController:  XML parsing error: :1: parser error : EntityRef: expecting ';'
<raumfeld:ebrowse>http://opml.radiotime.com/Tune.ashx?partnerId=7aJ9pvV5&formats
                                                                                ^
:1: parser error : EntityRef: expecting ';'
>http://opml.radiotime.com/Tune.ashx?partnerId=7aJ9pvV5&formats=mp3%2Cogg&serial
                                                                                ^
:1: parser error : EntityRef: expecting ';'
.ashx?partnerId=7aJ9pvV5&formats=mp3%2Cogg&serial=50%3A1e%3A2d%3A11%3A3e%3A30&id
                                                                                ^
:1: parser error : EntityRef: expecting ';'
nerId=7aJ9pvV5&formats=mp3%2Cogg&serial=50%3A1e%3A2d%3A11%3A3e%3A30&id=s228746&c
                                                                                ^
:1: parser error : EntityRef: expecting ';'
tp-get:*:audio/x-mpegurl:*">http://opml.radiotime.com/Tune.ashx?id=e89247373&sid
                                                                                ^
:1: parser error : EntityRef: expecting ';'
-mpegurl:*">http://opml.radiotime.com/Tune.ashx?id=e89247373&sid=s228746&formats
                                                                                ^
:1: parser error : EntityRef: expecting ';'
/opml.radiotime.com/Tune.ashx?id=e89247373&sid=s228746&formats=mp3,ogg&partnerId
                                                                                ^
:1: parser error : EntityRef: expecting ';'
com/Tune.ashx?id=e89247373&sid=s228746&formats=mp3,ogg&partnerId=7aJ9pvV5&serial
                                                                                ^

2021.05.09 00:26:25 4: UPNPController: try to renew subscriptions for services, device UPNP_Controller with timeout: 1800


hilft dir das?

Grüße Jens

fhem-6.1 (configDB+DbLog)  auf ODROID-XU4

KölnSolar

Hi Jens,
auf jeden Fall.  ;)
2021.05.09 00:25:42 1: DLNAController:  XML parsing error: :1: parser error : EntityRef: expecting ';'
<raumfeld:ebrowse>http://opml.radiotime.com/Tune.ashx?partnerId=7aJ9pvV5&formats
                                                                                ^
:1: parser error : EntityRef: expecting ';'
>http://opml.radiotime.com/Tune.ashx?partnerId=7aJ9pvV5&formats=mp3%2Cogg&serial                     
Nun sehe ich, dass es an den Teufels liegt, bzw. dass der neu implementierte xml-parser mit dem xml nicht klar kommt.

Ist ja bereits mit verbose=1 im Log ersichtlich.  ::)

Ich versuch mal das event der Teufels zu verstehen....

Grüße Markus
Edit:
so würde ich es mal encoden<DIDL-Lite xmlns="urn:schemas-upnp-org:metadata-1-0/DIDL-Lite/" xmlns:raumfeld="urn:schemas-raumfeld-com:meta-data/raumfeld" xmlns:upnp="urn:schemas-upnp-org:metadata-1-0/upnp/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:dlna="urn:schemas-dlna-org:metadata-1-0/" xmlns:pv="http://www.pv.com/pvns/" lang="en">
<item parentID="0/Favorites/RecentlyPlayed" id="0/Favorites/RecentlyPlayed/101" restricted="1" refID="0/RadioTime/Search/s-s228746">
<raumfeld:name>Station</raumfeld:name>
<upnp:class>object.item.audioItem.audioBroadcast.radio</upnp:class>
<raumfeld:section>RadioTime</raumfeld:section>
<raumfeld:durability>120</raumfeld:durability>
<raumfeld:ebrowse>http://opml.radiotime.com/Tune.ashx?partnerId=7aJ9pvV5&amp;amp;formats=mp3%2Cogg&amp;amp;serial=50%3A1e%3A2d%3A11%3A3e%3A30&amp;amp;id=s228746&amp;amp;c=ebrowse</raumfeld:ebrowse>
<dc:title>Billy Joel - Uptown girl</dc:title>
<upnp:albumArtURI dlna:profileID="JPEG_TN">http://cdn-profiles.tunein.com/s228746/images/logoq.png?t=154228</upnp:albumArtURI>
<res bitrate="128" protocolInfo="http-get:*:audio/x-mpegurl:*">http://opml.radiotime.com/Tune.ashx?id=e89247373&amp;amp;sid=s228746&amp;amp;formats=mp3,ogg&amp;amp;partnerId=7aJ9pvV5&amp;amp;serial=50:1e:2d:11:3e:30</res>
</item>
</DIDL-Lite>
Der Dir fehlende Titel ist korrekterweise hier <dc:title>Billy Joel - Uptown girl</dc:title>aber hier <raumfeld:ebrowse>http://opml.radiotime.com/Tune.ashx?partnerId=7aJ9pvV5&amp;amp;formats=mp3%2Cogg&amp;amp;serial=50%3A1e%3A2d%3A11%3A3e%3A30&amp;amp;id=s228746&amp;amp;c=ebrowse</raumfeld:ebrowse>
krachts. Müsste so aufgelöst werden <raumfeld:ebrowse>http://opml.radiotime.com/Tune.ashx?partnerId=7aJ9pvV5&formats=mp3,ogg&serial=50:1e:2d:11:3e:30&id=s228746&c=ebrowse</raumfeld:ebrowse>Und hier ähnlich<res bitrate="128" protocolInfo="http-get:*:audio/x-mpegurl:*">http://opml.radiotime.com/Tune.ashx?id=e89247373&sid=s228746&formats=mp3,ogg&partnerId=7aJ9pvV5&serial=50:1e:2d:11:3e:30</res>

Frag mich nicht warum das nicht komplett dekodiert wurde...

Edit2: Das ....<Event xmlns="urn:schemas-upnp-org:metadata-1-0/AVT/"><InstanceID val="0"><CurrentTrackMetaData ...."behauptet, Du hast kein Update des 98_UPNPController gemacht ?  :-\  ???  ::)
(persönliche Daten sind nicht in dem Logextrakt ? Sonst sollten wir die anonymisieren)
RPi3/2 buster/stretch-SamsungAV_E/N-RFXTRX-IT-RSL-NC5462-Oregon-CUL433-GT-TMBBQ-01e-CUL868-FS20-EMGZ-1W(GPIO)-DS18B20-CO2-USBRS232-USBRS422-Betty_Boop-EchoDot-OBIS(Easymeter-Q3/EMH-KW8)-PCA301(S'duino)-Deebot(mqtt2)-zigbee2mqtt

MichaelT

Zitat von: KölnSolar am 06 Mai 2021, 22:02:58
Hallo Michael,
schön, dass Du noch dabei bist.

Neue Versionen online.
...

Hallo Markus,

schön dass Du noch Lust hast  8)

Deine Module habe ich übernommen. Funktionieren soweit.
Bei den Logs ist mir aufgefallen, dass du an einigen Stellen hash->{name} verwendest. hash->{NAME} ist aber glaube ich richtig.
Weiterhin kommen an einigen Stellen Warnings, wo zum Bsp. nodeValue nicht initialisiert ist.

Hier mal ein Beispiel:

2021.05.16 13:15:30.106 5: UPNPController: UPNPSocket-SYS_UPNP-42461, received subscription event: event was processed by subscriptionCallback ,
2021.05.16 13:15:34.344 5: UPNPController:  UPNPSocket-SYS_UPNP-42461 incoming message; will be processed by perlupnp handleOnce
2021.05.16 13:15:34.362 5: UPNPController: Received event: by x.x.x.31_58643-zs-AVTransport UPnP::ControlPoint::Service=HASH(0x39600ec) $VAR1 = 'LastChange';
$VAR2 = '&lt;Event xmlns=&quot;urn:schemas-upnp-org:metadata-1-0/AVT/&quot;&gt;&lt;InstanceID val=&quot;0&quot;&gt;&lt;TransportState val=&quot;PLAYING&quot;/&gt;&lt;/InstanceID&gt;&lt;/Event&gt;';

2021.05.16 13:15:34.363 5: SYS_UPNP: dispatch AVTransport|x.x.x.31_58643|LastChange|&lt;Event xmlns=&quot;urn:schemas-upnp-org:metadata-1-0/AVT/&quot;&gt;&lt;InstanceID val=&quot;0&quot;&gt;&lt;TransportState val=&quot;PLAYING&quot;/&gt;&lt;/InstanceID&gt;&lt;/Event&gt;
2021.05.16 13:15:34.364 5: DLNAController: message from SYS_UPNP, message: AVTransport|x.x.x.31_58643|LastChange|&lt;Event xmlns=&quot;urn:schemas-upnp-org:metadata-1-0/AVT/&quot;&gt;&lt;InstanceID val=&quot;0&quot;&gt;&lt;TransportState val=&quot;PLAYING&quot;/&gt;&lt;/InstanceID&gt;&lt;/Event&gt;
2021.05.16 13:15:34.364 4: DLNAController: message parameters: AVTransport, x.x.x.31_58643, LastChange, &lt;Event xmlns=&quot;urn:schemas-upnp-org:metadata-1-0/AVT/&quot;&gt;&lt;InstanceID val=&quot;0&quot;&gt;&lt;TransportState val=&quot;PLAYING&quot;/&gt;&lt;/InstanceID&gt;&lt;/Event&gt;
2021.05.16 13:15:34.365 5: DLNAController: OG_SZ_MR process property LastChange, xml-event <Event xmlns="urn:schemas-upnp-org:metadata-1-0/AVT/"><InstanceID val="0"><TransportState val="PLAYING"/></InstanceID></Event>
2021.05.16 13:15:34.365 4: DLNAController: OG_SZ_MR parsing did enter load_xml call: <Event xmlns="urn:schemas-upnp-org:metadata-1-0/AVT/"><InstanceID val="0"><TransportState val="PLAYING"/></InstanceID></Event>
2021.05.16 13:15:34.367 4: DLNAController: OG_SZ_MR dom structure: <?xml version="1.0"?>
<Event xmlns="urn:schemas-upnp-org:metadata-1-0/AVT/">
  <InstanceID val="0">
    <TransportState val="PLAYING"/>
  </InstanceID>
</Event>

2021.05.16 13:15:34.368 4: DLNAController: OG_SZ_MR LastChange xml event with root <Event xmlns="urn:schemas-upnp-org:metadata-1-0/AVT/"><InstanceID val="0"><TransportState val="PLAYING"/></InstanceID></Event> found with name: Event
2021.05.16 13:15:34.368 5: DLNAController: OG_SZ_MR registered ns-uri is: urn:schemas-upnp-org:metadata-1-0/AVT/
2021.05.16 13:15:34.369 5: UPNPController: warning: main, Use of uninitialized value in concatenation (.) or string at ./FHEM/98_DLNAController.pm line 584.

2021.05.16 13:15:34.370 5: DLNAController: OG_SZ_MR node <InstanceID val="0"><TransportState val="PLAYING"/></InstanceID>, node-name: InstanceID node-type: 1 node value:
2021.05.16 13:15:34.371 5: UPNPController: warning: main, Use of uninitialized value in concatenation (.) or string at ./FHEM/98_DLNAController.pm line 590.

2021.05.16 13:15:34.371 4: DLNAController: OG_SZ_MR node <TransportState val="PLAYING"/>, node-name: TransportState node-type: 1 node value:
2021.05.16 13:15:34.372 4: DLNAController: OG_SZ_MR Update reading transportState with PLAYING
2021.05.16 13:15:34.372 5: UPNPController: warning: main, Use of uninitialized value $val in concatenation (.) or string at ./FHEM/98_DLNAController.pm line 663.

2021.05.16 13:15:34.372 4: DLNAController: OG_SZ_MR Update reading transportStatus with
2021.05.16 13:15:34.372 5: UPNPController: warning: main, Use of uninitialized value $val in string ne at ./FHEM/98_DLNAController.pm line 664.

2021.05.16 13:15:34.373 5: UPNPController: warning: main, Use of uninitialized value $val in concatenation (.) or string at ./FHEM/98_DLNAController.pm line 663.

2021.05.16 13:15:34.373 4: DLNAController: OG_SZ_MR Update reading currentTrackURI with
2021.05.16 13:15:34.373 5: UPNPController: warning: main, Use of uninitialized value $val in string ne at ./FHEM/98_DLNAController.pm line 664.

2021.05.16 13:15:34.373 5: UPNPController: warning: main, Use of uninitialized value $val in concatenation (.) or string at ./FHEM/98_DLNAController.pm line 663.

2021.05.16 13:15:34.373 4: DLNAController: OG_SZ_MR Update reading nextAVTransportURI with
2021.05.16 13:15:34.374 5: UPNPController: warning: main, Use of uninitialized value $val in string ne at ./FHEM/98_DLNAController.pm line 664.

2021.05.16 13:15:34.374 5: UPNPController: warning: main, Use of uninitialized value $val in concatenation (.) or string at ./FHEM/98_DLNAController.pm line 663.

2021.05.16 13:15:34.374 4: DLNAController: OG_SZ_MR Update reading CurrentMediaDuration with
2021.05.16 13:15:34.374 5: UPNPController: warning: main, Use of uninitialized value $val in string ne at ./FHEM/98_DLNAController.pm line 664.

2021.05.16 13:15:34.374 5: UPNPController: warning: main, Use of uninitialized value $val in concatenation (.) or string at ./FHEM/98_DLNAController.pm line 663.

2021.05.16 13:15:34.374 4: DLNAController: OG_SZ_MR Update reading CurrentTrackDuration with
2021.05.16 13:15:34.374 5: UPNPController: warning: main, Use of uninitialized value $val in string ne at ./FHEM/98_DLNAController.pm line 664.

2021.05.16 13:15:34.375 5: UPNPController: warning: main, Use of uninitialized value $val in concatenation (.) or string at ./FHEM/98_DLNAController.pm line 663.

2021.05.16 13:15:34.375 4: DLNAController: OG_SZ_MR Update reading CurrentTransportActions with
2021.05.16 13:15:34.375 5: UPNPController: warning: main, Use of uninitialized value $val in string ne at ./FHEM/98_DLNAController.pm line 664.

2021.05.16 13:15:34.375 4: DLNAController OG_SZ_MR: state update from SYS_UPNP, address x.x.x.31_58643



Zeile 605 und 606 sieht irgendwie nach en/de aus. Soll das so sein?

Ich versuche Dir mal ein Stereo-Log zur Verfügung zu stellen, habe ich bisher noch nicht genutzt.

Readings ok:
currentAlbum --> Electronic Music Radio
currentAlbumArtURI -->http://i.flowlive.com/radio/53/25/12553_290.png?scale=640x480
currentTitle Sunshine Live
currentTrackURI -->http://p.flowlive.com/r/68/27/62768.mp3.m3u

Ändern sich nicht:
currentMediaDurration
currentTrackDurration

2021.05.16 13:56:16.645 4: DLNAController: OG_SZ_MR parsing did enter metadata: <DIDL-Lite xmlns="urn:schemas-upnp-org:metadata-1-0/DIDL-Lite/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:upnp="urn:schemas-upnp-org:metadata-1-0/upnp/" xmlns:dlna="urn:schemas-dlna-org:metadata-1-0/"><item id="22$@54098" parentID="22$4725" restricted="1"><dc:title>Road Songs for Lovers</dc:title><dc:creator>Chris Rea</dc:creator><dc:date>2017-01-01T00:00:00Z</dc:date><upnp:artist>Chris Rea</upnp:artist><upnp:actor>Chris Rea</upnp:actor><upnp:actor>Chris Rea</upnp:actor><upnp:author>Chris Rea</upnp:author><upnp:author>Chris Rea</upnp:author><upnp:album>Road Songs for Lovers</upnp:album><upnp:genre>Rock</upnp:genre><upnp:originalTrackNumber>3</upnp:originalTrackNumber><res duration="0:04:13.000" size="10131584" bitrate="40000" sampleFrequency="44100" nrAudioChannels="2" protocolInfo="http-get:*:audio/mpeg:DLNA.ORG_PN=MP3;DLNA.ORG_OP=01;DLNA.ORG_FLAGS=01700000000000000000000000000000">http://x.x.x.:50002/m/MP3/54098.mp3</res><upnp:class>object.item.audioItem.musicTrack</upnp:class></item></DIDL-Lite>


EDIT:
getMediaInfo
getPositionInfo
Muss man diese Info pollen oder kommen da normalerweise Events?

Gruß und sorry, wenn's mal länger dauert
Michael

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

KölnSolar

Hi Michael,
sieht gut aus.
ZitatWeiterhin kommen an einigen Stellen Warnings, wo zum Bsp. nodeValue nicht initialisiert ist.
Korrekt. Ist aber nur vorübergehend beim Logging, um das xml-parsing besser zu verstehen.
ZitatZeile 605 und 606 sieht irgendwie nach en/de aus. Soll das so sein?
Yes.  ;D Ich dachte auch erst, was soll das(ist aus DLNARenderer übernommen). Aber es gibt tatsächlich diese 2 unterschiedlichen Informationen seitens der events.
ZitatcurrentMediaDurration
scheint gar nicht geliefert zu werden.  :-\
ZitatcurrentTrackDurration
Da hast Du mich wieder erwischt. Nicht implementiert.
ZitatgetMediaInfo
getPositionInfo
Was meinst Du ? Kann Dir da nicht folgen.

Grüße Markus
RPi3/2 buster/stretch-SamsungAV_E/N-RFXTRX-IT-RSL-NC5462-Oregon-CUL433-GT-TMBBQ-01e-CUL868-FS20-EMGZ-1W(GPIO)-DS18B20-CO2-USBRS232-USBRS422-Betty_Boop-EchoDot-OBIS(Easymeter-Q3/EMH-KW8)-PCA301(S'duino)-Deebot(mqtt2)-zigbee2mqtt

Newbie

Hallo Markus,

nach dem Hinweis aus dem Beitrag 3

ZitatZusätzlich sind die Perlpakete ◾SOAP::Lite, ◾LWP::Simple, ◾XML::Simple, ◾XML::Parser::Lite, ◾LWP::UserAgent zu installieren

hab ich gedacht XML::Parser::Lite wird auf dem System nicht mehr gebraucht, also weg damit. Ergebnis = UPNPController platt

Zitat2021.05.16 13:30:34 1: reload: Error:Modul 98_UPNPController deactivated:
Can't locate XML/Parser/Lite.pm in @INC (you may need to install the XML::Parser::Lite module)

Grüße Jens
fhem-6.1 (configDB+DbLog)  auf ODROID-XU4

KölnSolar

Hi Jens,
wundert mich gerade. Ich gucke...
Grüße Markus
Edit: Oder liegt es daran ?  :-\
ZitatEdit2: Das
Code: [Auswählen]

....<Event xmlns="urn:schemas-upnp-org:metadata-1-0/AVT/"><InstanceID val="0"><CurrentTrackMetaData ....

"behauptet, Du hast kein Update des 98_UPNPController gemacht ?  :-\  ???  ::)
RPi3/2 buster/stretch-SamsungAV_E/N-RFXTRX-IT-RSL-NC5462-Oregon-CUL433-GT-TMBBQ-01e-CUL868-FS20-EMGZ-1W(GPIO)-DS18B20-CO2-USBRS232-USBRS422-Betty_Boop-EchoDot-OBIS(Easymeter-Q3/EMH-KW8)-PCA301(S'duino)-Deebot(mqtt2)-zigbee2mqtt

Newbie

Hallo Markus,

Zitat"behauptet, Du hast kein Update des 98_UPNPController gemacht ?  :-\  ??? 

das war auch mein erster Verdacht, deshalb die Dateien aus Beitrag 1 & 3 heute noch einmal runtergeladen, installiert und dann erst gepostet.
fhem-6.1 (configDB+DbLog)  auf ODROID-XU4

KölnSolar

Hi Jens,
ich hab nochmal ins Modul geguckt und auch versucht es nachzustellen.

"Direkt" wird nur XML::LibXML benutzt. Indirekt über das Perlpaket aber noch weitere(z.B. SOAP::Lite). Daher kann ich das nicht ausschließen.

Mich wundert aber, dass ich viel mehr Informationen im Log bei einem fehlenden Perlpaket bekomme als Du gepostet hast. Welches System nutzt Du ? Womit installierst/deinstallierst Du Perl-Pakete ? Im konkreten Fall ?

Grüße Markus
RPi3/2 buster/stretch-SamsungAV_E/N-RFXTRX-IT-RSL-NC5462-Oregon-CUL433-GT-TMBBQ-01e-CUL868-FS20-EMGZ-1W(GPIO)-DS18B20-CO2-USBRS232-USBRS422-Betty_Boop-EchoDot-OBIS(Easymeter-Q3/EMH-KW8)-PCA301(S'duino)-Deebot(mqtt2)-zigbee2mqtt

Newbie

Hallo Markus,

vollständige Fehlermeldung:
Zitat2021.05.16 13:30:34 1: reload: Error:Modul 98_UPNPController deactivated:
Can't locate XML/Parser/Lite.pm in @INC (you may need to install the XML::Parser::Lite module) (@INC contains: fhem.p/lib fhem.p/FHEM/lib ./FHEM/lib ./lib ./FHEM ./ /usr/local/FHEM/share/fhem/FHEM/lib . /etc/perl /usr/local/lib/arm-linux-gnueabihf/perl/5.30.0 /usr/local/share/perl/5.30.0 /usr/lib/arm-linux-gnueabihf/perl5/5.30 /usr/share/perl5 /usr/lib/arm-linux-gnueabihf/perl/5.30 /usr/share/perl/5.30 /usr/local/lib/site_perl /usr/lib/arm-linux-gnueabihf/perl-base) at FHEM/lib/UPnP/Common.pm line 752.
BEGIN failed--compilation aborted at FHEM/lib/UPnP/Common.pm line 752.
Compilation failed in require at FHEM/lib/UPnP/ControlPoint.pm line 39.
BEGIN failed--compilation aborted at FHEM/lib/UPnP/ControlPoint.pm line 39.
Compilation failed in require at ./FHEM/98_UPNPController.pm line 70.
BEGIN failed--compilation aborted at ./FHEM/98_UPNPController.pm line 70.

System = Ubuntu 20.xx
Perl-Version = 5.30
die meisten Perl-Module mit Cpanm installiert/deinstalliert (über FHEM Installer-Modul), aber ein paar auch mit apt-get

Grüße Jens
fhem-6.1 (configDB+DbLog)  auf ODROID-XU4

KölnSolar

Hi Jens,
nun wird es deutlich. Das perlupnp-Paket(konkret Common.pm) scheint es noch haben zu wollen. Dann ändere ich das wieder.

Grüße Markus
RPi3/2 buster/stretch-SamsungAV_E/N-RFXTRX-IT-RSL-NC5462-Oregon-CUL433-GT-TMBBQ-01e-CUL868-FS20-EMGZ-1W(GPIO)-DS18B20-CO2-USBRS232-USBRS422-Betty_Boop-EchoDot-OBIS(Easymeter-Q3/EMH-KW8)-PCA301(S'duino)-Deebot(mqtt2)-zigbee2mqtt

MichaelT

Zitat von: KölnSolar am 16 Mai 2021, 16:43:51
Hi Michael,
...
Grüße Markus

Hallo Markus,

zu Thema getMediaInfo. getPositionInfo..:

Ich hatte nur mal was davon gelesen. Wäre schön, wenn man Gesamt und aktuell sehen könnte. Ich weiß aber nicht, ob man diese
Infos subscriben kann oder ob man sie pollen muss!
Abfragen mit UPnPTest funktioniert.

Hier mal ein Ausschnitt aus der Spezifikation (http://www.upnp.org/specs/av/UPnP-av-AVTransport-v3-Service-20101231.pdf):
2.3.1 Event Model
Since the AVTransport service supports multiple virtual instances (via the InstanceID argument included in
each action), the traditional UPnP eventing model is unable to differentiate between multiple instances of
the same state variable. Therefore, the AVTransport service event model defines a specialized state variable
(LastChange) that is used exclusively for eventing individual state changes. In this model, the LastChange
state change is the only variable that is evented using the standard UPnP event mechanism. All other state
variables, except the position-related state variables listed below, are indirectly evented via the LastChange
state variable. (Note: A_ARG_TYPE_ state variables are not evented, either directly or indirectly.). More
details about the LastChange-based event mechanism can be found in the Event Model section of the
RenderingControl service.
The AVTransport service contains various state variables that, during certain transport states, change
almost continuously. The following variables are therefore not evented via LastChange:
 RelativeTimePosition
 AbsoluteTimePosition
 RelativeCounterPosition
 AbsoluteCounterPosition
Each control point can poll for these values at a rate appropriate for their application, whenever they need
to. For example, a control point can invoke GetPositionInfo() every second when the TransportState is
"PLAYING", "RECORDING" or "TRANSITIONING". This is more efficient and flexible than requiring
event notifications to be sent to all subscribing control points, in all cases.
Evented state variables MUST only be evented if their value actually changes. Writing the same value to a
state variable does not generate an event. For example, a transition from the state "PLAYING" to the state
"PLAYING" with a different speed does not generate an event for state variable TransportState
("PLAYING" → "PLAYING"). However, this transition will generate an event for the state variable
TransportPlaySpeed. If a moderated state variable is evented and it returns the same value, this means that
within the moderation time, its value has actually changed and then changed back to its previous value.


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

KölnSolar

Hi Michael,
kann man drüber nachdenken. Für mich persönlich uninteressant. Da müsst Ihr Musikliebhaber mir sagen, was Sinn macht. Ich hab halt das Problem, dass das im Detail unterschiedlich je Hersteller implementiert zu sein scheint und ich keine Hardware(Boxen, Inetradio....) hab.

Jetzt gucken wir aber erst einmal, dass "nur" die DLNARenderer-Funktionalität funktionsfähig implementiert ist. Danach dann den DLNAController "weiterentwickeln".

Grüße Markus
RPi3/2 buster/stretch-SamsungAV_E/N-RFXTRX-IT-RSL-NC5462-Oregon-CUL433-GT-TMBBQ-01e-CUL868-FS20-EMGZ-1W(GPIO)-DS18B20-CO2-USBRS232-USBRS422-Betty_Boop-EchoDot-OBIS(Easymeter-Q3/EMH-KW8)-PCA301(S'duino)-Deebot(mqtt2)-zigbee2mqtt

Newbie

#118
Hallo Markus,

konnte meine Probleme mit meinen kleinen Teufeln dahingehend eingrenzen, das es nur im Zusammenspiel mit TUNEIN.de auftritt.
Eigene Internet-Radioliste (Adressen von fmstream.org) angelegt und siehe da, es funktioniert ohne Fehlermeldungen im Log und Titelname wird angezeigt.

Bis jetzt sieht es top aus, Readings werden regelmäßig aktualisiert.


Gruß Jens

P.S.: Sobald im Titel oder beim Künstlernamen Sonderzeichen vorkommen, gib es folgende Fehlermeldung:
2021.05.24 21:10:43 1: DLNAController:  XML parsing error: :1: parser error : xmlParseEntityRef: no name
pnp:class><raumfeld:section>RadioTime</raumfeld:section><dc:title>Robin Schulz &
                                                                                ^
:1: parser error : xmlParseEntityRef: no name
mfeld:section>RadioTime</raumfeld:section><dc:title>Robin Schulz & Felix Jaehn &
fhem-6.1 (configDB+DbLog)  auf ODROID-XU4

Newbie

Hallo Markus,

noch mal eine Nachfrage zu meinen Teufel`n und dem Problem mit dem "&" im Titel.
Soweit ich das verstanden habe müsste das "&" korrekterweise ein "&amp;" sein, kommt das schon falsch vom Radiosender oder kodieren das meine Teufelchen falsch?

Lässt sich das irgendwie abfangen? Irgendwas in der Art:

ZitatVerwenden Sie CDATA-Abschnitte (Text in einem CDATA-Abschnitt wird vom Parser ignoriert.) Z. <! [CDATA [etwas Text & etwas mehr Text]]>

oder

Zitat$html = htmlspecialchars($html);

Kann natürlich alles falsch sein, aber das hat die Internetsuche unter anderem ausgespuckt.

noch einen schönen Sonntag, Jens

P.S.: Wenn es von den Geräten kommt, könnte man Teufel ja mal anschreiben
fhem-6.1 (configDB+DbLog)  auf ODROID-XU4