Modul für Kodi (ehemals 70_XBMC)

Begonnen von vbs, 02 Februar 2017, 23:11:10

Vorheriges Thema - Nächstes Thema

C0mmanda

Moin,

habe gesehen das scheinbar das Attribut "fork" beim Kodi-Modul entfernt wurde.
Ist das nicht mehr nötig?

Ohne Fork ging es bisher nicht bei mir (Hänger, Freezer etc.), hat sich das Problem erledigt?
Bin skeptisch ob ich updaten sollte...

Danke!

grtz

vbs

Ja, geht jetzt ohne diesen fork-Quatsch  8)
(hoffentlich)

C0mmanda

Danke für die schnelle Info! Werds mal testen...

Tommy82

Hi,
ist es mittlerweile über das Modul möglich die LiveTV Sender umzuschalten?

Danke
Fhem Cubitruck  Armbian Buster with Linux 5.3.9-sunxi
HM-CC_RT-DN, HM-Sec-RHS,HM-Sec-SD, HM-Sec-SCo,IT1500,1xIT GRR-3500 Fritz!Dect200,Powerline546E,Enigma2 Modul mit 3 Vu+,Wol Modul für WinServer2016 und WinServer 2019,FB6590
Allnetl Wandtablett mit FTUI

vbs

Sollte mit "openchannelid" gehen (wäre übrigens auch in der commandref zu finden gewesen  ;)). Ich habe jedoch kein Live-TV bei mir.

C0mmanda

Zitat von: Tommy82 am 07 September 2019, 20:46:18
Hi,
ist es mittlerweile über das Modul möglich die LiveTV Sender umzuschalten?

Danke

Geht mit "openchannelid", das Problem ist dabei nur:
Channelids werden nicht über das Modul ausgelesen (oder es geht nicht??).
Heisst man muss die Channelids mühselig händisch raussuchen und zu allem überfluss ändern diese sich auch noch
wenn man mal einen neuen Sender o.ä. hinzufügt.

grtz

vbs

Hab mal was gebaut dafür:
"get channelgroups" holt die Gruppen und legt sie in Readings ab.
"get channels <groupid>" holt die Kanäle eine Gruppe und legt sie in Readings ab.
"get channelid <channelname>" liefert die Channel-Id für einen Kanalnamen.

Mit "set openchannel <channelname>" kann direkt zu einem Kanal umgeschaltet werden. Es müssen aber vorher die Kanalnamen per "get channels" geholt worden sein.

C0mmanda

Sehr geil!

Allerdings liefert

"get channelid <channelname>" liefert die Channel-Id für einen Kanalnamen.

Bei mir nur "-1" zurück.
Einzig bei dem Sender mit der Channelid "1" liefert "get channelid <channelname> auch korrekt die  "1" zurück. (Also korrekt).

Der Sender mit der channelid "1" ist auch der einzige bei dem "openchannel <channelname>" funktioniert.
Bei allen anderen Kanälen bekomme ich z.B.  "Could not find channel DMAX HD" zurück.

vbs

Hm, das ist blöd. Kann ich leider nicht viel zu sagen. Kannst du mal das Device und ein verbose-Log posten?

C0mmanda

Verbose-Log:

2019.09.08 18:21:38 3: KODI_Get
2019.09.08 18:21:38 4: KODI_KU: KODI_PvrGetChannelId: Discovery HD
2019.09.08 18:21:38 4: KODI_KU: KODI_PvrGetChannelId cid: 1
2019.09.08 18:21:38 4: KODI_KU: KODI_PvrGetChannelId cid: 2
2019.09.08 18:21:39 4: KODI_KU: KODI_Check
2019.09.08 18:21:39 4: KODI_KU: KODI_CheckConnection: Connection still alive. Last data from Kodi received 29.8891649246216 s ago
2019.09.08 18:21:39 4: KODI_KU: KODI_Update
2019.09.08 18:21:39 5: KODI_KU: KODI_Call: Sending: {"params":{"properties":["volume","muted","name","version"]},"jsonrpc":"2.0","method":"Application.GetProperties","id":578}
2019.09.08 18:21:39 5: SW: 7b22706172616d73223a7b2270726f70657274696573223a5b22766f6c756d65222c226d75746564222c226e616d65222c2276657273696f6e225d7d2c226a736f6e727063223a22322e30222c226d6574686f64223a224170706c69636174696f6e2e47657450726f70657274696573222c226964223a3537387d
2019.09.08 18:21:39 5: KODI_KU: KODI_Call: Sending: {"params":{"properties":["skin","fullscreen","stereoscopicmode"]},"jsonrpc":"2.0","method":"GUI.GetProperties","id":579}
2019.09.08 18:21:39 5: SW: 7b22706172616d73223a7b2270726f70657274696573223a5b22736b696e222c2266756c6c73637265656e222c2273746572656f73636f7069636d6f6465225d7d2c226a736f6e727063223a22322e30222c226d6574686f64223a224755492e47657450726f70657274696573222c226964223a3537397d
2019.09.08 18:21:39 4: KODI_KU: KODI_PlayerUpdate
2019.09.08 18:21:39 5: KODI_KU: KODI_Call: Sending: {"jsonrpc":"2.0","id":"580","method":"Player.GetActivePlayers"}
2019.09.08 18:21:39 5: SW: 7b226a736f6e727063223a22322e30222c226964223a22353830222c226d6574686f64223a22506c617965722e476574416374697665506c6179657273227d
2019.09.08 18:21:39 4: KODI_KU: KODI_UpdatePlayerItem
2019.09.08 18:21:39 4: KODI_KU: KODI_PlayerGetItem
2019.09.08 18:21:39 5: KODI_KU: KODI_Call: Sending: {"method":"Player.GetActivePlayers","id":"581","jsonrpc":"2.0"}
2019.09.08 18:21:39 5: SW: 7b226d6574686f64223a22506c617965722e476574416374697665506c6179657273222c226964223a22353831222c226a736f6e727063223a22322e30227d
2019.09.08 18:21:39 4: KODI_KU: KODI_ProcessRead
2019.09.08 18:21:39 5: KODI_KU: KODI_ProcessRead: Incoming data: {"id":578,"jsonrpc":"2.0","result":{"muted":false,"name":"Kodi","version":{"major":18,"minor":3,"revision":"18.3-Leia","tag":"stable"},"volume":49}}{"id":579,"jsonrpc":"2.0","result":{"fullscreen":true,"skin":{"id":"skin.estuary","name":"Estuary"},"stereoscopicmode":{"label":"Deaktiviert","mode":"off"}}}{"id":"580","jsonrpc":"2.0","result":[{"playerid":1,"playertype":"internal","type":"video"}]}
2019.09.08 18:21:39 5: KODI_KU: KODI_ProcessRead: Processing buffer now: {"id":578,"jsonrpc":"2.0","result":{"muted":false,"name":"Kodi","version":{"major":18,"minor":3,"revision":"18.3-Leia","tag":"stable"},"volume":49}}{"id":579,"jsonrpc":"2.0","result":{"fullscreen":true,"skin":{"id":"skin.estuary","name":"Estuary"},"stereoscopicmode":{"label":"Deaktiviert","mode":"off"}}}{"id":"580","jsonrpc":"2.0","result":[{"playerid":1,"playertype":"internal","type":"video"}]}
2019.09.08 18:21:39 4: KODI_KU: KODI_ProcessRead: Decoding JSON message. Length: 148 Content: {"id":578,"jsonrpc":"2.0","result":{"muted":false,"name":"Kodi","version":{"major":18,"minor":3,"revision":"18.3-Leia","tag":"stable"},"volume":49}}
2019.09.08 18:21:39 5: KODI_KU: KODI_ProcessResponse: ID 578
2019.09.08 18:21:39 4: KODI_KU: KODI_ProcessResponse: updating readings
2019.09.08 18:21:39 4: KODI_KU: KODI_ProcessRead: Decoding JSON message. Length: 157 Content: {"id":579,"jsonrpc":"2.0","result":{"fullscreen":true,"skin":{"id":"skin.estuary","name":"Estuary"},"stereoscopicmode":{"label":"Deaktiviert","mode":"off"}}}
2019.09.08 18:21:39 5: KODI_KU: KODI_ProcessResponse: ID 579
2019.09.08 18:21:39 4: KODI_KU: KODI_ProcessResponse: updating readings
2019.09.08 18:21:39 4: KODI_KU: KODI_ProcessRead: Decoding JSON message. Length: 93 Content: {"id":"580","jsonrpc":"2.0","result":[{"playerid":1,"playertype":"internal","type":"video"}]}
2019.09.08 18:21:39 5: KODI_KU: KODI_ProcessResponse: ID 580
2019.09.08 18:21:39 5: KODI_KU: KODI_ProcessResponse: processing pending player command 580
2019.09.08 18:21:39 5: KODI_KU: KODI_Call: Sending: {"method":"Player.GetProperties","id":582,"params":{"properties":["time","totaltime","repeat","shuffled","speed","partymode"],"playerid":1},"jsonrpc":"2.0"}
2019.09.08 18:21:39 5: SW: 7b226d6574686f64223a22506c617965722e47657450726f70657274696573222c226964223a3538322c22706172616d73223a7b2270726f70657274696573223a5b2274696d65222c22746f74616c74696d65222c22726570656174222c2273687566666c6564222c227370656564222c2270617274796d6f6465225d2c22706c617965726964223a317d2c226a736f6e727063223a22322e30227d
2019.09.08 18:21:39 4: KODI_KU: KODI_ProcessRead
2019.09.08 18:21:39 5: KODI_KU: KODI_ProcessRead: Incoming data: {"id":"581","jsonrpc":"2.0","result":[{"playerid":1,"playertype":"internal","type":"video"}]}
2019.09.08 18:21:39 5: KODI_KU: KODI_ProcessRead: Processing buffer now: {"id":"581","jsonrpc":"2.0","result":[{"playerid":1,"playertype":"internal","type":"video"}]}
2019.09.08 18:21:39 4: KODI_KU: KODI_ProcessRead: Decoding JSON message. Length: 93 Content: {"id":"581","jsonrpc":"2.0","result":[{"playerid":1,"playertype":"internal","type":"video"}]}
2019.09.08 18:21:39 5: KODI_KU: KODI_ProcessResponse: ID 581
2019.09.08 18:21:39 5: KODI_KU: KODI_ProcessResponse: processing pending player command 581
2019.09.08 18:21:39 5: KODI_KU: KODI_Call: Sending: {"params":{"properties":["artist","album","thumbnail","file","title","track","year","streamdetails","tvshowid"],"playerid":1},"jsonrpc":"2.0","id":583,"method":"Player.GetItem"}
2019.09.08 18:21:39 5: SW: 7b22706172616d73223a7b2270726f70657274696573223a5b22617274697374222c22616c62756d222c227468756d626e61696c222c2266696c65222c227469746c65222c22747261636b222c2279656172222c2273747265616d64657461696c73222c22747673686f776964225d2c22706c617965726964223a317d2c226a736f6e727063223a22322e30222c226964223a3538332c226d6574686f64223a22506c617965722e4765744974656d227d
2019.09.08 18:21:39 4: KODI_KU: KODI_ProcessRead
2019.09.08 18:21:39 5: KODI_KU: KODI_ProcessRead: Incoming data: {"id":582,"jsonrpc":"2.0","result":{"partymode":false,"repeat":"off","shuffled":false,"speed":1,"time":{"hours":0,"milliseconds":0,"minutes":6,"seconds":16},"totaltime":{"hours":1,"milliseconds":0,"minutes":0,"seconds":0}}}
2019.09.08 18:21:39 5: KODI_KU: KODI_ProcessRead: Processing buffer now: {"id":582,"jsonrpc":"2.0","result":{"partymode":false,"repeat":"off","shuffled":false,"speed":1,"time":{"hours":0,"milliseconds":0,"minutes":6,"seconds":16},"totaltime":{"hours":1,"milliseconds":0,"minutes":0,"seconds":0}}}
2019.09.08 18:21:39 4: KODI_KU: KODI_ProcessRead: Decoding JSON message. Length: 223 Content: {"id":582,"jsonrpc":"2.0","result":{"partymode":false,"repeat":"off","shuffled":false,"speed":1,"time":{"hours":0,"milliseconds":0,"minutes":6,"seconds":16},"totaltime":{"hours":1,"milliseconds":0,"minutes":0,"seconds":0}}}
2019.09.08 18:21:39 5: KODI_KU: KODI_ProcessResponse: ID 582
2019.09.08 18:21:39 4: KODI_KU: KODI_ProcessResponse: updating readings
2019.09.08 18:21:39 4: KODI_KU: KODI_Set: ?
2019.09.08 18:21:39 4: KODI_KU: KODI_Set: ?
2019.09.08 18:21:39 4: KODI_KU: KODI_Set: ?
2019.09.08 18:21:39 4: KODI_KU: KODI_ProcessRead
2019.09.08 18:21:39 5: KODI_KU: KODI_ProcessRead: Incoming data: {"id":583,"jsonrpc":"2.0","result":{"item":{"id":54,"label":"Sky Sport 1 HD","thumbnail":"image://http%3a%2f%2fhtpc%3atvhead%40192.168.1.109%3a9981%2fimagecache%2f2561/","title":"Motorsport: Die Fahrt ist das Ziel - Faszination Alfa Romeo","type":"channel","year":0}}}
2019.09.08 18:21:39 5: KODI_KU: KODI_ProcessRead: Processing buffer now: {"id":583,"jsonrpc":"2.0","result":{"item":{"id":54,"label":"Sky Sport 1 HD","thumbnail":"image://http%3a%2f%2fhtpc%3atvhead%40192.168.1.109%3a9981%2fimagecache%2f2561/","title":"Motorsport: Die Fahrt ist das Ziel - Faszination Alfa Romeo","type":"channel","year":0}}}
2019.09.08 18:21:39 4: KODI_KU: KODI_ProcessRead: Decoding JSON message. Length: 268 Content: {"id":583,"jsonrpc":"2.0","result":{"item":{"id":54,"label":"Sky Sport 1 HD","thumbnail":"image://http%3a%2f%2fhtpc%3atvhead%40192.168.1.109%3a9981%2fimagecache%2f2561/","title":"Motorsport: Die Fahrt ist das Ziel - Faszination Alfa Romeo","type":"channel","year":0}}}
2019.09.08 18:21:39 5: KODI_KU: KODI_ProcessResponse: ID 583
2019.09.08 18:21:39 4: KODI_KU: KODI_ProcessResponse: updating readings
2019.09.08 18:21:39 4: KODI_KU: KODI_Set: ?
2019.09.08 18:21:39 4: KODI_KU: KODI_Set: ?
2019.09.08 18:21:39 4: KODI_KU: KODI_Set: ?


Device:

Internals:
   DEF        192.168.1.104 tcp
   DeviceName 192.168.1.104:9090
   FD         15
   FUUID      5c443664-f33f-02b0-3c4a-73a76b8b41bf3e80
   Host       192.168.1.104
   LAST_RECV  1567959819.69246
   NAME       KODI_KU
   NR         191
   NextID     608
   PARTIAL   
   Port       9090
   Protocol   tcp
   STATE      opened
   TYPE       KODI
   PendingEvents:
   PendingPlayerCMDs:
   READINGS:
     2019-09-08 17:43:45   3dfile         
     2019-09-08 18:15:38   Thumb           
     2019-09-08 17:37:24   channel_1       History HD
     2019-09-08 17:38:54   channel_10      sportdigital HD
     2019-09-08 17:38:54   channel_106     Sky Sport 8 HD
     2019-09-08 17:38:54   channel_108     Sky Sport Bundesliga 5
     2019-09-08 17:37:24   channel_11      Discovery HD
     2019-09-08 17:37:24   channel_111     BBC World
     2019-09-08 17:37:52   channel_116     phoenix HD
     2019-09-08 17:38:54   channel_119     Sky Sport Bundesliga 1 HD
     2019-09-08 17:38:54   channel_120     Sky Sport Bundesliga 2 HD
     2019-09-08 17:38:54   channel_121     Sky Sport Bundesliga 8 HD
     2019-09-08 17:37:52   channel_122     arte HD
     2019-09-08 17:37:24   channel_123     DMAX HD
     2019-09-08 17:37:52   channel_126     ARD-alpha
     2019-09-08 17:37:52   channel_127     tagesschau24 HD
     2019-09-08 17:37:52   channel_13      NDR FS HH HD
     2019-09-08 17:38:54   channel_132     Sky Sport News HD
     2019-09-08 17:38:54   channel_135     ORF SPORT+
     2019-09-08 17:37:24   channel_136     NatGeo HD
     2019-09-08 17:37:52   channel_14      ONE HD
     2019-09-08 17:38:54   channel_142     Eurosport 2 HD
     2019-09-08 17:38:54   channel_143     Sky Sport 3 HD
     2019-09-08 17:37:52   channel_145     ONE
     2019-09-08 17:37:52   channel_148     Al Jazeera Channel
     2019-09-08 17:37:52   channel_150     3sat
     2019-09-08 17:38:54   channel_152     Sky Sport Bundesliga 6 HD
     2019-09-08 17:38:54   channel_153     DAZN 1 Bar HD
     2019-09-08 17:38:54   channel_156     Sky Sport 4 HD
     2019-09-08 17:38:54   channel_158     Sky Sport 2 HD
     2019-09-08 17:37:52   channel_160     Al Jazeera English HD
     2019-09-08 17:37:52   channel_162     rbb Brandenburg HD
     2019-09-08 17:38:54   channel_163     Sky Sport 9 HD
     2019-09-08 17:37:52   channel_164     WDR HD Münster
     2019-09-08 17:37:24   channel_170     N24 DOKU
     2019-09-08 17:38:54   channel_171     ORF SPORT+ HD
     2019-09-08 17:38:54   channel_172     Sky Sport 10 HD
     2019-09-08 17:37:52   channel_173     zdf_neo HD
     2019-09-08 17:37:52   channel_175     Bibel TV HD
     2019-09-08 17:38:54   channel_20      Sky Sport Bundesliga 3 HD
     2019-09-08 17:37:24   channel_23      kabel eins Doku
     2019-09-08 17:37:52   channel_24      Das Erste HD
     2019-09-08 17:37:24   channel_27      Spiegel TV Wissen
     2019-09-08 17:37:52   channel_28      Zee One HD
     2019-09-08 17:37:24   channel_3       WELT HD
     2019-09-08 17:38:54   channel_30      Sky Sport Bundesliga 5 HD
     2019-09-08 17:37:24   channel_32      n-tv HD
     2019-09-08 17:37:52   channel_33      BR Fernsehen Nord HD
     2019-09-08 17:38:54   channel_38      Sky Sport 7 HD
     2019-09-08 17:38:54   channel_4       Sky Sport 11 HD
     2019-09-08 17:37:24   channel_41      Nat Geo Wild HD
     2019-09-08 17:37:52   channel_42      rbb Berlin HD
     2019-09-08 17:38:54   channel_45      Sky Sport Bundesliga 7 HD
     2019-09-08 17:38:54   channel_48      Sky Sport 6 HD
     2019-09-08 17:37:52   channel_50      Die Neue Zeit TV
     2019-09-08 17:38:54   channel_51      Sky Sport 5 HD
     2019-09-08 17:38:54   channel_53      Sky Sport Bundesliga 4 HD
     2019-09-08 17:38:54   channel_54      Sky Sport 1 HD
     2019-09-08 17:37:52   channel_55      BR Fernsehen Süd HD
     2019-09-08 17:38:54   channel_6       Sky Sport UHD
     2019-09-08 17:37:52   channel_61      ZDFinfo
     2019-09-08 17:37:24   channel_63      History HD
     2019-09-08 17:38:54   channel_68      Eurosport 1 HD
     2019-09-08 17:37:52   channel_69      MDR Thüringen HD
     2019-09-08 17:37:52   channel_70      Das Erste
     2019-09-08 17:37:52   channel_71      hr-fernsehen HD
     2019-09-08 17:38:54   channel_73      Motorvision TV
     2019-09-08 17:37:52   channel_78      ZDF
     2019-09-08 17:37:52   channel_79      zdf_neo
     2019-09-08 17:37:24   channel_80      Spiegel Geschichte HD
     2019-09-08 17:37:52   channel_82      1-2-3.tv HD
     2019-09-08 17:37:52   channel_90      SWR BW HD
     2019-09-08 17:37:52   channel_94      ZDF HD
     2019-09-08 17:37:52   channel_97      ZDFinfo HD
     2019-09-08 17:38:54   channel_99      Sky Sport Bundesliga 10 HD
     2019-09-08 17:36:17   channelgroup_12_label SD-Kanäle
     2019-09-08 17:36:17   channelgroup_12_type tv
     2019-09-08 17:36:17   channelgroup_1_label Alle Kanäle
     2019-09-08 17:36:17   channelgroup_1_type tv
     2019-09-08 17:36:17   channelgroup_2_label Sky
     2019-09-08 17:36:17   channelgroup_2_type tv
     2019-09-08 17:36:17   channelgroup_3_label Dokumentation
     2019-09-08 17:36:17   channelgroup_3_type tv
     2019-09-08 17:36:17   channelgroup_4_label Private
     2019-09-08 17:36:17   channelgroup_4_type tv
     2019-09-08 17:36:17   channelgroup_5_label Öffentliche
     2019-09-08 17:36:17   channelgroup_5_type tv
     2019-09-08 17:36:17   channelgroup_6_label Musik
     2019-09-08 17:36:17   channelgroup_6_type tv
     2019-09-08 17:36:17   channelgroup_8_label ORF
     2019-09-08 17:36:17   channelgroup_8_type tv
     2019-09-08 17:36:17   channelgroup_9_label Sport
     2019-09-08 17:36:17   channelgroup_9_type tv
     2019-09-08 17:43:45   currentAlbum   
     2019-09-08 17:43:45   currentArtist   
     2019-09-08 17:43:45   currentMedia   
     2019-09-08 17:43:45   currentOriginaltitle
     2019-09-08 17:43:45   currentShowtitle
     2019-09-08 18:23:39   currentTitle    Motorsport: Die Fahrt ist das Ziel - Faszination Alfa Romeo
     2019-09-08 17:43:45   currentTrack   
     2019-09-08 17:43:46   duration        3600
     2019-09-08 18:23:39   elapsed         480
     2019-09-08 17:43:45   episode         
     2019-09-08 17:43:45   episodeid       
     2019-09-08 18:23:39   fullscreen      on
     2019-09-08 18:23:39   http_thumbnail  http://KuTablet:fhem@192.168.1.109:9981/imagecache/2561/
     2019-09-08 18:23:39   id              54
     2019-09-08 18:23:39   label           Sky Sport 1 HD
     2019-09-08 17:43:45   movieid         
     2019-09-08 18:23:39   mute            off
     2019-09-08 18:23:39   name            Kodi
     2019-09-08 18:23:39   partymode       off
     2019-09-08 18:23:39   playStatus      playing
     2019-09-08 17:43:45   playlist       
     2019-09-08 17:43:46   provider        Sky Sport 1 HD
     2019-09-08 18:23:39   repeat          off
     2019-09-08 17:43:45   season         
     2019-09-08 18:23:39   shuffle         off
     2019-09-08 18:23:39   skin            Estuary(skin.estuary)
     2019-09-08 17:43:45   songid         
     2019-09-08 18:23:39   speed           1
     2019-09-08 17:36:04   state           opened
     2019-09-08 18:23:39   stereoscopicmode off
     2019-09-08 17:36:04   system          wake
     2019-09-08 18:23:39   thumbnail       image://http%3a%2f%2fhtpc%3atvhead%40192.168.1.109%3a9981%2fimagecache%2f2561/
     2019-09-08 18:23:39   time            00:08:16.000
     2019-09-08 18:23:39   totaltime       01:00:00.000
     2019-09-08 18:23:39   type            channel
     2019-09-08 18:23:39   version         18.3-18.3-Leia stable
     2019-09-08 18:23:39   volume          49
     2019-09-08 18:23:39   year            0
Attributes:
   DbLogExclude .*
   event-on-change-reading current.*,.*time,label,duration,state,elapsed,.*(T|t)humb.*,volume
   event-on-update-reading playStatus,thumbnail
   group      Küche
   offMode    shutdown
   room       Multimedia
   updateInterval 30
   userReadings elapsed:time.* { {time2sec(ReadingsVal($name,"time",0))}},

duration:totaltime.* { {time2sec(ReadingsVal($name,"totaltime",0))}},

http_thumbnail:thumbnail.* { KodiFTUIthumb("KODI_KU",ReadingsVal($name,"thumbnail","error"),ReadingsVal($name,"Thumb","error")) },

Thumb:currentTitle:.* { {DownloadCover("KODI_KU",ReadingsVal("KODI_KU","currentTitle","error"),ReadingsVal($name,"type","error"))} },


   verbose    5

Tommy82

Hi,
ich kann C0mmanda's Problem bestätigen
2019.09.08 19:47:27.937 3: Kodi: KODI_CheckConnection: Connection lost! Last data from Kodi received 120.52531003952 s ago
2019.09.08 19:47:27.937 1: 192.168.188.79:8088 disconnected, waiting to reappear (Kodi)
2019.09.08 19:48:34.971 3: FHEMWEB WEB CSRF error: csrf_124618116778870 ne csrf_324158644676421 for client WEB_192.168.188.52_57099 / command save. For details see the csrfToken FHEMWEB attribute.
2019.09.08 19:48:37.170 1: [Freezemon] myFreezemon: possible freeze starting at 19:48:36, delay is 1.167 possibly caused by: no bad guy found :-(
2019.09.08 19:48:57.297 3: FHEMWEB WEBtablet CSRF error: csrf_625651416473215 ne csrf_460003893372419 for client WEBtablet_192.168.188.52_57104 / command jsonlist2 Alarm,YahooWetter,Anruferliste,GelbeTonneIn,BiomuellIn,PapierIn,RestmuellIn,Fenster_neben_Couch,Fenster_ueber_Heizung,Terassen_Tuer,VU_Ultimo,Uno_Schlafzimmer,Uno_Kellerbar,WHS_2011,WinServer,Feueralrm_Dummy,rd_SysInfo STATE fc1_icon fc2_icon fc3_icon fc4_icon fc5_icon fc6_icon fc7_icon 1-state 1-number 2-number 2-state 1-timestamp 1-name 1-duration 2-timestamp 2-name 2-duration fc1_condition fc1_low_c fc1_high_c fc2_day_of_week fc2_condition fc2_low_c fc2_high_c fc3_day_of_week fc3_condition fc3_low_c fc3_high_c fc4_day_of_week fc4_condition fc4_low_c fc4_high_c fc5_day_of_week fc5_condition fc5_low_c fc5_high_c fc6_day_of_week fc6_condition fc6_low_c fc6_high_c fc7_day_of_week fc7_condition fc7_low_c fc7_high_c. For details see the csrfToken FHEMWEB attribute.
2019.09.08 19:49:21.999 3: FHEMWEB WEB CSRF error: csrf_124618116778870 ne csrf_324158644676421 for client WEB_192.168.188.52_57116 / command deleteattr Kodi compatibilityMode. For details see the csrfToken FHEMWEB attribute.
2019.09.08 19:49:38.586 3: KODI_Get
2019.09.08 19:49:45.048 3: KODI_Get
2019.09.08 19:49:52.380 3: FHEMWEB WEBtablet CSRF error: csrf_625651416473215 ne csrf_460003893372419 for client WEBtablet_192.168.188.30_48884 / command jsonlist2 Alarm,YahooWetter,Anruferliste,GelbeTonneIn,BiomuellIn,PapierIn,RestmuellIn,Fenster_neben_Couch,Fenster_ueber_Heizung,Terassen_Tuer,VU_Ultimo,Uno_Schlafzimmer,Uno_Kellerbar,WHS_2011,WinServer,Feueralrm_Dummy,rd_SysInfo STATE fc1_icon fc2_icon fc3_icon fc4_icon fc5_icon fc6_icon fc7_icon 1-state 1-number 2-number 2-state 1-timestamp 1-name 1-duration 2-timestamp 2-name 2-duration fc1_condition fc1_low_c fc1_high_c fc2_day_of_week fc2_condition fc2_low_c fc2_high_c fc3_day_of_week fc3_condition fc3_low_c fc3_high_c fc4_day_of_week fc4_condition fc4_low_c fc4_high_c fc5_day_of_week fc5_condition fc5_low_c fc5_high_c fc6_day_of_week fc6_condition fc6_low_c fc6_high_c fc7_day_of_week fc7_condition fc7_low_c fc7_high_c. For details see the csrfToken FHEMWEB attribute.
2019.09.08 19:49:55.314 3: KODI_Get
2019.09.08 19:50:17.815 3: KODI_Get
2019.09.08 19:50:31.599 3: Opening Kodi device 192.168.188.79:8088
2019.09.08 19:50:31.727 3: Kodi device opened
2019.09.08 19:50:42.160 3: KODI_Get
2019.09.08 19:50:56.179 1: [Freezemon] myFreezemon: possible freeze starting at 19:50:54, delay is 2.175 possibly caused by: tmr-ENIGMA2_GetStatus(Uno_Schlafzimmer) tmr-SYSMON_Update(sysmon)
2019.09.08 19:50:56.402 3: KODI_Get
2019.09.08 19:50:56.403 3: Kodi channelid requires channel name parameter
2019.09.08 19:51:04.525 3: KODI_Get
2019.09.08 19:51:09.635 3: KODI_Get
2019.09.08 19:51:09.636 3: Kodi channels requires channelgroup ID parameter
2019.09.08 19:51:14.863 3: KODI_Get
2019.09.08 19:51:14.864 1: PERL WARNING: Argument "RTL" isn't numeric in addition (+) at ./FHEM/70_KODI.pm line 1509.
2019.09.08 19:51:14.864 1: stacktrace:
2019.09.08 19:51:14.865 1:     main::__ANON__                      called by ./FHEM/70_KODI.pm (1509)
2019.09.08 19:51:14.865 1:     main::KODI_PvrGetChannels           called by ./FHEM/70_KODI.pm (671)
2019.09.08 19:51:14.866 1:     main::KODI_Get                      called by fhem.pl (3752)
2019.09.08 19:51:14.866 1:     main::CallFn                        called by fhem.pl (1957)
2019.09.08 19:51:14.866 1:     main::CommandGet                    called by fhem.pl (1238)
2019.09.08 19:51:14.867 1:     main::AnalyzeCommand                called by ./FHEM/01_FHEMWEB.pm (2681)
2019.09.08 19:51:14.867 1:     main::FW_fC                         called by ./FHEM/01_FHEMWEB.pm (910)
2019.09.08 19:51:14.868 1:     main::FW_answerCall                 called by ./FHEM/01_FHEMWEB.pm (579)
2019.09.08 19:51:14.868 1:     main::FW_Read                       called by fhem.pl (3752)
2019.09.08 19:51:14.868 1:     main::CallFn                        called by fhem.pl (750)
2019.09.08 19:52:23.841 4: Kodi: KODI_Set: ?
2019.09.08 19:52:23.851 4: Kodi: KODI_Set: ?
2019.09.08 19:52:24.032 4: Kodi: KODI_Set: ?
2019.09.08 19:52:24.040 4: Kodi: KODI_Set: ?
2019.09.08 19:52:24.231 3: KODI_Get
2019.09.08 19:52:28.819 1: [Freezemon] myFreezemon: possible freeze starting at 19:52:27, delay is 1.814 possibly caused by: tmr-HttpUtils_Err(N/A) tmr-echodevice_GetSettings(ECHO_90F00718642405VR) tmr-echodevice_GetSettings(ECHO_G000MW0773410SEV) tmr-echodevice_GetSettings(ECHO_70900309449702SN) tmr-echodevice_GetSettings(ECHO_4a0cec98a8804693ad0ff22a505339ad) tmr-echodevice_GetSettings(ECHO_G000MW04742305HS)
2019.09.08 19:52:31.792 3: KODI_Get
2019.09.08 19:52:31.793 5: Kodi: KODI_Call: Sending: {"method":"PVR.GetChannelGroups","jsonrpc":"2.0","id":9,"params":{"channeltype":"tv"}}
2019.09.08 19:52:31.794 5: SW: 7b226d6574686f64223a225056522e4765744368616e6e656c47726f757073222c226a736f6e727063223a22322e30222c226964223a392c22706172616d73223a7b226368616e6e656c74797065223a227476227d7d
2019.09.08 19:52:31.834 4: Kodi: KODI_Check
2019.09.08 19:52:31.834 3: Kodi: KODI_CheckConnection: Connection lost! Last data from Kodi received 120.113867044449 s ago
2019.09.08 19:52:31.835 1: 192.168.188.79:8088 disconnected, waiting to reappear (Kodi)
2019.09.08 19:52:31.847 4: Kodi: KODI_Set: ?
2019.09.08 19:52:31.859 4: Kodi: KODI_Set: ?
2019.09.08 19:52:32.353 5: HttpUtils url=http://192.168.188.79:8088/
2019.09.08 19:52:32.356 4: IP: 192.168.188.79 -> 192.168.188.79
2019.09.08 19:52:32.404 4: Kodi: Connection established
2019.09.08 19:52:32.405 4: Kodi: KODI_ResetPlayerReadings
2019.09.08 19:52:32.427 4: Kodi: KODI_Set: ?
2019.09.08 19:52:32.438 4: Kodi: KODI_Set: ?
2019.09.08 19:52:32.458 4: Kodi: KODI_Set: ?
2019.09.08 19:52:32.466 4: Kodi: KODI_Set: ?
2019.09.08 19:52:32.475 4: Kodi: KODI_Update
2019.09.08 19:52:32.476 5: Kodi: KODI_Call: Sending: {"id":10,"params":{"properties":["volume","muted","name","version"]},"jsonrpc":"2.0","method":"Application.GetProperties"}
2019.09.08 19:52:32.476 5: SW: 7b226964223a31302c22706172616d73223a7b2270726f70657274696573223a5b22766f6c756d65222c226d75746564222c226e616d65222c2276657273696f6e225d7d2c226a736f6e727063223a22322e30222c226d6574686f64223a224170706c69636174696f6e2e47657450726f70657274696573227d
2019.09.08 19:52:32.479 5: Kodi: KODI_Call: Sending: {"jsonrpc":"2.0","method":"GUI.GetProperties","id":11,"params":{"properties":["skin","fullscreen","stereoscopicmode"]}}
2019.09.08 19:52:32.479 5: SW: 7b226a736f6e727063223a22322e30222c226d6574686f64223a224755492e47657450726f70657274696573222c226964223a31312c22706172616d73223a7b2270726f70657274696573223a5b22736b696e222c2266756c6c73637265656e222c2273746572656f73636f7069636d6f6465225d7d7d
2019.09.08 19:52:32.481 4: Kodi: KODI_PlayerUpdate
2019.09.08 19:52:32.482 5: Kodi: KODI_Call: Sending: {"jsonrpc":"2.0","method":"Player.GetActivePlayers","id":"12"}
2019.09.08 19:52:32.482 5: SW: 7b226a736f6e727063223a22322e30222c226d6574686f64223a22506c617965722e476574416374697665506c6179657273222c226964223a223132227d
2019.09.08 19:52:32.484 4: Kodi: KODI_UpdatePlayerItem
2019.09.08 19:52:32.485 4: Kodi: KODI_UpdatePlayerItem - cancelled (disconnected or not playing)
2019.09.08 19:52:32.486 1: 192.168.188.79:8088 reappeared (Kodi)
2019.09.08 19:52:32.497 4: Kodi: KODI_Set: ?
2019.09.08 19:52:32.508 4: Kodi: KODI_Set: ?
2019.09.08 19:52:53.123 3: KODI_Get
2019.09.08 19:52:53.124 4: Kodi: KODI_PvrGetChannelId: RTL
2019.09.08 19:52:53.124 4: Kodi: KODI_PvrGetChannelId cid: 1
2019.09.08 19:52:59.135 3: KODI_Get
2019.09.08 19:52:59.136 3: Kodi channels requires channelgroup ID parameter
2019.09.08 19:53:05.081 3: KODI_Get
2019.09.08 19:53:05.081 5: Kodi: KODI_Call: Sending: {"id":13,"params":{"channeltype":"tv"},"jsonrpc":"2.0","method":"PVR.GetChannelGroups"}


Internals:
   DEF        192.168.188.79:8088 tcp kodi 1Tina9-
   DeviceName 192.168.188.79:8088
   FD         16
   FUUID      5c48d22d-f33f-f412-9fde-d1605aab1bb2e4b8
   Host       192.168.188.79
   LAST_RECV  1567965273.6065
   NAME       Kodi
   NR         340
   NextID     20
   PARTIAL   
   Port       8088
   Protocol   tcp
   STATE      opened
   TYPE       KODI
   Helper:
     DBLOG:
       playStatus:
         myDbLog:
           TIME       1567965273.56499
           VALUE      stopped
       state:
         myDbLog:
           TIME       1567965273.62189
           VALUE      CONNECTED
       system:
         myDbLog:
           TIME       1567965273.59315
           VALUE      wake
   PendingPlayerCMDs:
     12:
       method     Player.GetProperties
       params:
         properties:
           time
           totaltime
           repeat
           shuffled
           speed
           partymode
     16:
       method     Player.GetProperties
       params:
         properties:
           time
           totaltime
           repeat
           shuffled
           speed
           partymode
     19:
       method     Player.GetProperties
       params:
         properties:
           time
           totaltime
           repeat
           shuffled
           speed
           partymode
     3:
       method     Player.GetProperties
       params:
         properties:
           time
           totaltime
           repeat
           shuffled
           speed
           partymode
     6:
       method     Player.GetProperties
       params:
         properties:
           time
           totaltime
           repeat
           shuffled
           speed
           partymode
     8:
       method     Player.GetProperties
       params:
         properties:
           time
           totaltime
           repeat
           shuffled
           speed
           partymode
   READINGS:
     2017-10-21 14:58:20   3dfile          off
     2017-10-21 14:58:48   audiolibrary    update
     2017-10-21 14:58:20   currentAlbum   
     2017-10-21 14:58:20   currentArtist   Micky Krause
     2017-10-21 14:58:20   currentMedia    D:\Musik\Sonstige\G-Q\Micky Krause - Zeig Doch mal die Möpse.mp3
     2017-10-21 14:55:08   currentOriginaltitle
     2017-10-21 14:55:08   currentShowtitle
     2017-10-21 14:58:20   currentTitle    Zeig Doch mal die Möpse
     2017-10-21 14:58:20   currentTrack    0
     2017-10-21 14:55:08   episode         
     2017-10-21 14:55:08   episodeid       
     2017-11-04 19:02:07   fullscreen      off
     2017-10-21 14:58:20   id              36483
     2017-10-21 14:58:20   label           Zeig Doch mal die Möpse
     2017-10-21 14:55:08   movieid         
     2017-11-04 19:02:07   mute            off
     2017-11-04 19:02:07   name            Kodi
     2019-09-08 19:54:33   partymode       
     2019-09-08 19:54:33   playStatus      stopped
     2017-10-21 14:55:08   playlist       
     2019-09-08 19:54:33   repeat         
     2017-10-21 14:55:08   season         
     2019-09-08 19:54:33   shuffle         
     2017-11-04 19:02:07   skin            Estuary(skin.estuary)
     2017-10-21 14:55:08   songid          36483
     2019-09-08 19:54:33   speed           
     2019-09-08 19:54:33   state           opened
     2017-11-04 19:02:07   stereoscopicmode off
     2019-09-08 19:54:33   system          wake
     2017-10-21 14:58:20   thumbnail       image://music@D%3a%5cMusik%5cSonstige%5cG-Q%5cMicky%20Krause%20-%20Zeig%20Doch%20mal%20die%20M%c3%b6pse.mp3/
     2019-09-08 19:54:33   time           
     2019-09-08 19:54:33   totaltime       
     2017-10-21 14:58:20   type            song
     2017-11-04 19:02:07   version         18.0-20170914-ae8206a alpha
     2017-11-04 19:02:07   volume          100
     2017-10-21 14:58:20   year            0
Attributes:
   devStateIcon opened:rc_GREEN:on disconnected:rc_RED:off Initialized:message_socket_disabled
   group      Alexa
   room       Wohnzimmer
   updateInterval 60
   verbose    5
Fhem Cubitruck  Armbian Buster with Linux 5.3.9-sunxi
HM-CC_RT-DN, HM-Sec-RHS,HM-Sec-SD, HM-Sec-SCo,IT1500,1xIT GRR-3500 Fritz!Dect200,Powerline546E,Enigma2 Modul mit 3 Vu+,Wol Modul für WinServer2016 und WinServer 2019,FB6590
Allnetl Wandtablett mit FTUI

vbs

#221
Ok, danke euch. Ich seh schon: ihr habt keinen Kanal "2". Ich bin davon ausgegangen, dass die Kanalnummern lückenlos fortlaufend sind. Aber offenbar muss das nicht so sein.

Probiert mal bitte diese Version hier.

C0mmanda

Mega!
Jetzt funktioniert es :)
Vielen vielen Dank dafür!

Die "gets" sind nun allerdings verändert.
Es gibt:

"get channelid <channel> und
"get update_channels was alle Kanäle holt.

Das macht aber überhaupt nichts.
Top Erweiterung für die Live-TV Nutzer!
Danke!

vbs

Ja fein, gut, dass es jetzt geht.

Genau, ich hab das nochmal etwas umgebaut: es werden nun alle Sender automatisch abgefragt, sobald die Verbindung zu Kodi aufgebaut wurde. Im Zweifel oder bei Änderungen zwischendurch kann man aber mit "get update_channels" eine erneute Aktualisierung anstoßen. Also im Idealfall muss man sich um das Abholen der Senderliste nicht kümmern.

vbs

@Tommy82
Kann es sein, dass du vorher gar keine Kanäle geholt hast? Ich seh zumindest kein einziges Kanal-Reading.