•  Previous
  • 1
  • 5
  • 6
  • 7
  • 8(current)
  • 9
  • Next 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
Windows - KODI4SMARTIE - Kodi DLL for LCD Smartie
(2017-04-30, 02:20)barcoboy Wrote: I backed up my config.ini and plugins directory and tried a brand new empty config with only the lcd4smartie plugin, and no actions, with the following as screen 1 (sticky):

Code:
Line 1: $dll(kodi4smartie,7,XBMC.GetInfoLabels,System.CurrentWindow)
Line 2: $dll(kodi4smartie,7,XBMC.GetInfoLabels,System.CurrentControl)

and the same random delay happened, although not as frequently.

That is a pretty elaborate config. Very nice.. You could probably use function 9 instead of comparing strings for your actions

I just did the same thing on my W10 setup and am not seeing any delay what so ever. I have my refresh interval set to 1000ms so as you would expect the update take 1 second. Look at the kodi4smartie log file to see what the round trip times are

Code:
05/01/17 19:21:49: Sending: {"id":1294,"jsonrpc":"2.0","method":"XBMC.GetInfoLabels","params":{"labels":["System.CurrentWindow"]}}
05/01/17 19:21:49: Received: {"id":1294,"jsonrpc":"2.0","result":{"System.CurrentWindow":"Videos"}}
05/01/17 19:21:49: Sending: {"id":1295,"jsonrpc":"2.0","method":"XBMC.GetInfoLabels","params":{"labels":["System.CurrentControl"]}}
05/01/17 19:21:49: Received: {"id":1295,"jsonrpc":"2.0","result":{"System.CurrentControl":""}}
05/01/17 19:21:50: Sending: {"id":1296,"jsonrpc":"2.0","method":"XBMC.GetInfoLabels","params":{"labels":["System.CurrentWindow"]}}
05/01/17 19:21:50: Received: {"id":1296,"jsonrpc":"2.0","result":{"System.CurrentWindow":"Videos"}}
05/01/17 19:21:50: Sending: {"id":1297,"jsonrpc":"2.0","method":"XBMC.GetInfoLabels","params":{"labels":["System.CurrentControl"]}}
05/01/17 19:21:50: Received: {"id":1297,"jsonrpc":"2.0","result":{"System.CurrentControl":""}}
Reply
(2017-05-01, 14:28)torma02 Wrote: My actions:
[Actions]
Action01Variable=$dll(kodi4smartie,9,,)
Action01Condition=2
Action01ConditionValue=2
Action01Action=GotoScreen(1)
Action02Variable=$dll(kodi4smartie,9,,)
Action02Condition=2
Action02ConditionValue=1
Action02Action=GotoScreen(2)

I just did the following and is all appeared to work fine. I included the state (function 9) at the beginning of each line 1. When I start kodi it goes to screen 2, once I start a video it goes to screen 1. Make sure you have the screens you want shown enabled and all other screen disabled.

Code:
[Screen 01]
Text01="A$dll(kodi4smartie,9,,)B$dll(kodi4smartie,1,0,0)"
Text02="$dll(kodi4smartie,2,,)"

[Screen 02]
Text01="A$dll(kodi4smartie,9,,)B$dll(kodi4smartie,7,XBMC.GetInfoLabels,System.CurrentWindow)$dll(kodi4smartie,9,,)"
Text02="$dll(kodi4smartie,7,XBMC.GetInfoLabels,System.CurrentControl)"

[Actions]
Action01Variable=$dll(kodi4smartie,9,,)
Action01Condition=2
Action01ConditionValue=1
Action01Action=goto screen (2)
Action02Variable=$dll(kodi4smartie,9,,)
Action02Condition=2
Action02ConditionValue=2
Action02Action=goto screen (1)
Reply
Hi,
Your program is very helpful, my matrix orbital vfd live again thanks !
I have just a basic config with the function 1 and 2 (I use the last release), so
Htpc kodi center, date and time appears normally then during video play I have the title and the time elapsed witch is a good things.

But I beg your help to apply the function 7 with the lines:

$dll(kodi4smartie,7,XBMC.GetInfoLabels,System.CurrentWindow)
And :
$dll(kodi4smartie,7,XBMC.GetInfoLabels,System.CurrentControl)

in order to make appears the different name of menu like, movie, series, pictures, etc … .

I don’t know how configure and where enable this and how to create action if necessary.

My 2nd problem is that the movie title during video play doesn’t appears correctly and show
UNKNOW TITLE on the line 1. is there something to set in order to show the right title ?

Thank for your help
Regards.
Reply
(2017-05-02, 01:46)Jakester34 Wrote:
(2017-05-01, 14:28)torma02 Wrote: My actions:
[Actions]
Action01Variable=$dll(kodi4smartie,9,,)
Action01Condition=2
Action01ConditionValue=2
Action01Action=GotoScreen(1)
Action02Variable=$dll(kodi4smartie,9,,)
Action02Condition=2
Action02ConditionValue=1
Action02Action=GotoScreen(2)

I just did the following and is all appeared to work fine. I included the state (function 9) at the beginning of each line 1. When I start kodi it goes to screen 2, once I start a video it goes to screen 1. Make sure you have the screens you want shown enabled and all other screen disabled.

Code:
[Screen 01]
Text01="A$dll(kodi4smartie,9,,)B$dll(kodi4smartie,1,0,0)"
Text02="$dll(kodi4smartie,2,,)"

[Screen 02]
Text01="A$dll(kodi4smartie,9,,)B$dll(kodi4smartie,7,XBMC.GetInfoLabels,System.CurrentWindow)$dll(kodi4smartie,9,,)"
Text02="$dll(kodi4smartie,7,XBMC.GetInfoLabels,System.CurrentControl)"

[Actions]
Action01Variable=$dll(kodi4smartie,9,,)
Action01Condition=2
Action01ConditionValue=1
Action01Action=goto screen (2)
Action02Variable=$dll(kodi4smartie,9,,)
Action02Condition=2
Action02ConditionValue=2
Action02Action=goto screen (1)

Thank you for your help. I tried your config and it worked also for me. The problem seems to be the plugin 'BIGNUM' that I'm using in my first screen. This plugin seems to prevent the function $dll(kodi4smartie,9,,) from detecting the 'Play' event from Kodi. Infact $dll(kodi4smartie,9,,) shows correctly the values 0 and 1 but not 2 when a movie is played.. Is this possible? Am I wrong? Do you have any suggestion ? ( a solutions could be to avoid Bignum...)
Reply
(2017-05-05, 09:19)mikty Wrote: Hi,
Your program is very helpful, my matrix orbital vfd live again thanks !
I have just a basic config with the function 1 and 2 (I use the last release), so
Htpc kodi center, date and time appears normally then during video play I have the title and the time elapsed witch is a good things.

But I beg your help to apply the function 7 with the lines:

$dll(kodi4smartie,7,XBMC.GetInfoLabels,System.CurrentWindow)
And :
$dll(kodi4smartie,7,XBMC.GetInfoLabels,System.CurrentControl)

in order to make appears the different name of menu like, movie, series, pictures, etc … .

I don’t know how configure and where enable this and how to create action if necessary.

My 2nd problem is that the movie title during video play doesn’t appears correctly and show
UNKNOW TITLE on the line 1. is there something to set in order to show the right title ?

Thank for your help
Regards.

for your 1st issue you need to play with the action and function 9 to determine how to switch pages.

I think the 2nd issue is a KODI issue. It used to work with 16.x just fine. Someone needs to open a bug report stating that kodi does not populate the title in a json event when playing media. I dont have time right now to figure out how to open a kodi bug report and then fill it in with the proper backup data.
Reply
ok thanks I will make some test with fonction 9
thanks
Reply
Hi again. Sorry for the delay in getting back to this.

Well, after several attempts of trying to capture a log file, only to have LCDSMartie crash and shut down before the problem occurred, tonight I finally successfully captured a log file where the problem does occur. Posting the relevant section here.

Code:
05/17/17 23:17:08: Init
05/17/17 23:17:08: SmartieInit
05/17/17 23:17:08: Connecting to ws://LOCALHOST:9090
05/17/17 23:17:10: Error connecting. Error= set_fail_handler: 3: Underlying Transport Error
05/17/17 23:17:16: Connecting to ws://LOCALHOST:9090
05/17/17 23:17:19: Error connecting. Error= set_fail_handler: 3: Underlying Transport Error
05/17/17 23:17:20: Connecting to ws://LOCALHOST:9090
05/17/17 23:17:20: Connected to ws://LOCALHOST:9090
----
05/17/17 23:17:45: Sending: {"id":471,"jsonrpc":"2.0","method":"XBMC.GetInfoLabels","params":{"labels":["Player.Title"]}}
05/17/17 23:17:45: Received: {"id":471,"jsonrpc":"2.0","result":{"Player.Title":"Armed and Dangerous - Cowboy.avi"}}
05/17/17 23:17:45: Sending: {"id":472,"jsonrpc":"2.0","method":"XBMC.GetInfoLabels","params":{"labels":["System.CurrentControl"]}}
05/17/17 23:17:45: Received: {"id":472,"jsonrpc":"2.0","result":{"System.CurrentControl":""}}
05/17/17 23:17:45: Sending: {"id":473,"jsonrpc":"2.0","method":"XBMC.GetInfoLabels","params":{"labels":["Player.Time(h:mm:ss)"]}}
05/17/17 23:17:45: Received: {"id":473,"jsonrpc":"2.0","result":{"Player.Time(h:mm:ss)":"0:00:11"}}
05/17/17 23:17:45: Sending: {"id":474,"jsonrpc":"2.0","method":"XBMC.GetInfoLabels","params":{"labels":["Player.Duration"]}}
05/17/17 23:17:45: Received: {"id":474,"jsonrpc":"2.0","result":{"Player.Duration":"17:14"}}
05/17/17 23:17:45: Sending: {"id":475,"jsonrpc":"2.0","method":"XBMC.GetInfoLabels","params":{"labels":["Player.Duration(h:mm:ss"]}}
05/17/17 23:17:45: Received: {"id":475,"jsonrpc":"2.0","result":{"Player.Duration(h:mm:ss":"0:17:14"}}
05/17/17 23:17:45: Sending: {"id":476,"jsonrpc":"2.0","method":"XBMC.GetInfoLabels","params":{"labels":["Player.Title"]}}
05/17/17 23:17:45: Received: {"id":476,"jsonrpc":"2.0","result":{"Player.Title":"Armed and Dangerous - Cowboy.avi"}}
05/17/17 23:17:45: Sending: {"id":477,"jsonrpc":"2.0","method":"XBMC.GetInfoLabels","params":{"labels":["System.CurrentWindow"]}}
05/17/17 23:17:45: Received: {"id":477,"jsonrpc":"2.0","result":{"System.CurrentWindow":"Fullscreen video"}}
05/17/17 23:17:45: Sending: {"id":478,"jsonrpc":"2.0","method":"XBMC.GetInfoLabels","params":{"labels":["MusicPlayer.Artist"]}}
05/17/17 23:17:45: Received: {"id":478,"jsonrpc":"2.0","result":{"MusicPlayer.Artist":""}}
05/17/17 23:17:45: Sending: {"id":479,"jsonrpc":"2.0","method":"XBMC.GetInfoLabels","params":{"labels":["MusicPlayer.Artist"]}}
05/17/17 23:17:45: Received: {"id":479,"jsonrpc":"2.0","result":{"MusicPlayer.Artist":""}}
05/17/17 23:17:45: Sending: {"id":480,"jsonrpc":"2.0","method":"XBMC.GetInfoLabels","params":{"labels":["Player.Title"]}}
05/17/17 23:17:45: Received: {"id":480,"jsonrpc":"2.0","result":{"Player.Title":"Armed and Dangerous - Cowboy.avi"}}
05/17/17 23:17:45: Sending: {"id":481,"jsonrpc":"2.0","method":"XBMC.GetInfoLabels","params":{"labels":["MusicPlayer.Album"]}}
05/17/17 23:17:45: Sending: {"id":482,"jsonrpc":"2.0","method":"Player.GetProperties","params":{"playerid":1,"properties":["percentage","time","totaltime"]}}
05/17/17 23:17:45: Received: {"id":483,"jsonrpc":"2.0","result":{"MusicPlayer.Album":""}}
05/17/17 23:17:45: Received: {"id":482,"jsonrpc":"2.0","result":{"percentage":1.0624419450759887695,"time":{"hours":0,"milliseconds":986,"minutes":0,"seconds":10},"totaltime":{"hours":0,"milliseconds":33,"minutes":17,"seconds":14}}}
05/17/17 23:17:45: Received: {"id":484,"jsonrpc":"2.0","result":{"Player.Title":"Armed and Dangerous - Cowboy.avi"}}
05/17/17 23:17:45: Sending: {"id":485,"jsonrpc":"2.0","method":"XBMC.GetInfoLabels","params":{"labels":["System.CurrentControl"]}}
05/17/17 23:17:45: Received: {"id":485,"jsonrpc":"2.0","result":{"System.CurrentControl":""}}
05/17/17 23:17:45: Sending: {"id":486,"jsonrpc":"2.0","method":"XBMC.GetInfoLabels","params":{"labels":["Player.Time(h:mm:ss)"]}}
05/17/17 23:17:45: Received: {"id":486,"jsonrpc":"2.0","result":{"Player.Time(h:mm:ss)":"0:00:11"}}
05/17/17 23:17:45: Sending: {"id":487,"jsonrpc":"2.0","method":"XBMC.GetInfoLabels","params":{"labels":["Player.Duration"]}}
05/17/17 23:17:45: Received: {"id":487,"jsonrpc":"2.0","result":{"Player.Duration":"17:14"}}
05/17/17 23:17:45: Sending: {"id":488,"jsonrpc":"2.0","method":"XBMC.GetInfoLabels","params":{"labels":["Player.Duration(h:mm:ss"]}}
05/17/17 23:17:45: Received: {"id":488,"jsonrpc":"2.0","result":{"Player.Duration(h:mm:ss":"0:17:14"}}
05/17/17 23:17:46: Sending: {"id":489,"jsonrpc":"2.0","method":"Player.GetProperties","params":{"playerid":1,"properties":["percentage","time","totaltime"]}}
05/17/17 23:17:46: Received: {"id":489,"jsonrpc":"2.0","result":{"percentage":1.1582802534103393555,"time":{"hours":0,"milliseconds":977,"minutes":0,"seconds":11},"totaltime":{"hours":0,"milliseconds":33,"minutes":17,"seconds":14}}}
05/17/17 23:17:47: Sending: {"id":490,"jsonrpc":"2.0","method":"Player.GetProperties","params":{"playerid":1,"properties":["percentage","time","totaltime"]}}
05/17/17 23:17:47: Received: {"id":490,"jsonrpc":"2.0","result":{"percentage":1.2550857067108154297,"time":{"hours":0,"milliseconds":978,"minutes":0,"seconds":12},"totaltime":{"hours":0,"milliseconds":33,"minutes":17,"seconds":14}}}
05/17/17 23:17:48: Sending: {"id":491,"jsonrpc":"2.0","method":"Player.GetProperties","params":{"playerid":1,"properties":["percentage","time","totaltime"]}}
05/17/17 23:17:48: Received: {"id":491,"jsonrpc":"2.0","result":{"percentage":1.3518910408020019531,"time":{"hours":0,"milliseconds":979,"minutes":0,"seconds":13},"totaltime":{"hours":0,"milliseconds":33,"minutes":17,"seconds":14}}}
05/17/17 23:17:49: Sending: {"id":492,"jsonrpc":"2.0","method":"Player.GetProperties","params":{"playerid":1,"properties":["percentage","time","totaltime"]}}
05/17/17 23:17:49: Received: {"id":492,"jsonrpc":"2.0","result":{"percentage":1.4485031366348266602,"time":{"hours":0,"milliseconds":978,"minutes":0,"seconds":14},"totaltime":{"hours":0,"milliseconds":33,"minutes":17,"seconds":14}}}
05/17/17 23:17:50: Sending: {"id":493,"jsonrpc":"2.0","method":"Player.GetProperties","params":{"playerid":1,"properties":["percentage","time","totaltime"]}}
05/17/17 23:17:50: Received: {"id":493,"jsonrpc":"2.0","result":{"percentage":1.545405268669128418,"time":{"hours":0,"milliseconds":980,"minutes":0,"seconds":15},"totaltime":{"hours":0,"milliseconds":33,"minutes":17,"seconds":14}}}
05/17/17 23:17:51: Sending: {"id":494,"jsonrpc":"2.0","method":"XBMC.GetInfoLabels","params":{"labels":["Player.Title"]}}
05/17/17 23:17:51: Received: {"id":494,"jsonrpc":"2.0","result":{"Player.Title":"Armed and Dangerous - Cowboy.avi"}}
05/17/17 23:17:51: Sending: {"id":495,"jsonrpc":"2.0","method":"XBMC.GetInfoLabels","params":{"labels":["System.CurrentWindow"]}}
05/17/17 23:17:51: Received: {"id":495,"jsonrpc":"2.0","result":{"System.CurrentWindow":"Fullscreen video"}}
05/17/17 23:17:51: Sending: {"id":496,"jsonrpc":"2.0","method":"XBMC.GetInfoLabels","params":{"labels":["MusicPlayer.Artist"]}}
05/17/17 23:17:51: Received: {"id":496,"jsonrpc":"2.0","result":{"MusicPlayer.Artist":""}}
05/17/17 23:17:51: Sending: {"id":497,"jsonrpc":"2.0","method":"XBMC.GetInfoLabels","params":{"labels":["MusicPlayer.Artist"]}}
05/17/17 23:17:51: Received: {"id":497,"jsonrpc":"2.0","result":{"MusicPlayer.Artist":""}}
05/17/17 23:17:51: Sending: {"id":498,"jsonrpc":"2.0","method":"XBMC.GetInfoLabels","params":{"labels":["Player.Title"]}}
05/17/17 23:17:51: Received: {"id":498,"jsonrpc":"2.0","result":{"Player.Title":"Armed and Dangerous - Cowboy.avi"}}
05/17/17 23:17:51: Sending: {"id":499,"jsonrpc":"2.0","method":"XBMC.GetInfoLabels","params":{"labels":["MusicPlayer.Album"]}}
05/17/17 23:17:51: Received: {"id":499,"jsonrpc":"2.0","result":{"MusicPlayer.Album":""}}
05/17/17 23:17:51: Sending: {"id":500,"jsonrpc":"2.0","method":"XBMC.GetInfoLabels","params":{"labels":["MusicPlayer.Album"]}}
05/17/17 23:17:51: Received: {"id":500,"jsonrpc":"2.0","result":{"MusicPlayer.Album":""}}
05/17/17 23:17:51: Sending: {"id":501,"jsonrpc":"2.0","method":"XBMC.GetInfoLabels","params":{"labels":["Player.Title"]}}
05/17/17 23:17:51: Received: {"id":501,"jsonrpc":"2.0","result":{"Player.Title":"Armed and Dangerous - Cowboy.avi"}}
05/17/17 23:17:51: Sending: {"id":502,"jsonrpc":"2.0","method":"XBMC.GetInfoLabels","params":{"labels":["System.CurrentControl"]}}
05/17/17 23:17:51: Received: {"id":502,"jsonrpc":"2.0","result":{"System.CurrentControl":""}}
05/17/17 23:17:51: Sending: {"id":503,"jsonrpc":"2.0","method":"XBMC.GetInfoLabels","params":{"labels":["Player.Time(h:mm:ss)"]}}
05/17/17 23:17:51: Received: {"id":503,"jsonrpc":"2.0","result":{"Player.Time(h:mm:ss)":"0:00:17"}}
05/17/17 23:17:51: Sending: {"id":504,"jsonrpc":"2.0","method":"XBMC.GetInfoLabels","params":{"labels":["Player.Duration"]}}
05/17/17 23:17:51: Received: {"id":504,"jsonrpc":"2.0","result":{"Player.Duration":"17:14"}}
05/17/17 23:17:51: Sending: {"id":505,"jsonrpc":"2.0","method":"XBMC.GetInfoLabels","params":{"labels":["Player.Duration(h:mm:ss"]}}
05/17/17 23:17:51: Received: {"id":505,"jsonrpc":"2.0","result":{"Player.Duration(h:mm:ss":"0:17:14"}}
05/17/17 23:17:51: Sending: {"id":506,"jsonrpc":"2.0","method":"XBMC.GetInfoLabels","params":{"labels":["Player.Title"]}}
05/17/17 23:17:51: Received: {"id":506,"jsonrpc":"2.0","result":{"Player.Title":"Armed and Dangerous - Cowboy.avi"}}
05/17/17 23:17:51: Sending: {"id":507,"jsonrpc":"2.0","method":"XBMC.GetInfoLabels","params":{"labels":["System.CurrentWindow"]}}
05/17/17 23:17:51: Received: {"id":507,"jsonrpc":"2.0","result":{"System.CurrentWindow":"Fullscreen video"}}
05/17/17 23:17:51: Sending: {"id":508,"jsonrpc":"2.0","method":"XBMC.GetInfoLabels","params":{"labels":["MusicPlayer.Artist"]}}
05/17/17 23:17:51: Received: {"id":508,"jsonrpc":"2.0","result":{"MusicPlayer.Artist":""}}
05/17/17 23:17:51: Sending: {"id":509,"jsonrpc":"2.0","method":"XBMC.GetInfoLabels","params":{"labels":["MusicPlayer.Artist"]}}
05/17/17 23:17:51: Received: {"id":509,"jsonrpc":"2.0","result":{"MusicPlayer.Artist":""}}
05/17/17 23:17:51: Sending: {"id":510,"jsonrpc":"2.0","method":"XBMC.GetInfoLabels","params":{"labels":["Player.Title"]}}
05/17/17 23:17:51: Received: {"id":510,"jsonrpc":"2.0","result":{"Player.Title":"Armed and Dangerous - Cowboy.avi"}}
05/17/17 23:17:51: Sending: {"id":511,"jsonrpc":"2.0","method":"XBMC.GetInfoLabels","params":{"labels":["MusicPlayer.Album"]}}
05/17/17 23:17:51: Received: {"id":511,"jsonrpc":"2.0","result":{"MusicPlayer.Album":""}}
05/17/17 23:17:51: Sending: {"id":512,"jsonrpc":"2.0","method":"XBMC.GetInfoLabels","params":{"labels":["MusicPlayer.Album"]}}
05/17/17 23:17:51: Received: {"id":512,"jsonrpc":"2.0","result":{"MusicPlayer.Album":""}}
05/17/17 23:17:51: Sending: {"id":513,"jsonrpc":"2.0","method":"XBMC.GetInfoLabels","params":{"labels":["Player.Title"]}}
05/17/17 23:17:51: Received: {"id":513,"jsonrpc":"2.0","result":{"Player.Title":"Armed and Dangerous - Cowboy.avi"}}
05/17/17 23:17:51: Sending: {"id":514,"jsonrpc":"2.0","method":"XBMC.GetInfoLabels","params":{"labels":["System.CurrentControl"]}}
05/17/17 23:17:51: Received: {"id":514,"jsonrpc":"2.0","result":{"System.CurrentControl":""}}
05/17/17 23:17:51: Sending: {"id":516,"jsonrpc":"2.0","method":"XBMC.GetInfoLabels","params":{"labels":["Player.Time(h:mm:ss)"]}}
05/17/17 23:17:51: Received: {"id":516,"jsonrpc":"2.0","result":{"Player.Time(h:mm:ss)":"0:00:17"}}
05/17/17 23:17:51: Sending: {"id":517,"jsonrpc":"2.0","method":"XBMC.GetInfoLabels","params":{"labels":["Player.Duration"]}}
05/17/17 23:17:51: Received: {"id":517,"jsonrpc":"2.0","result":{"Player.Duration":"17:14"}}
05/17/17 23:17:51: Sending: {"id":518,"jsonrpc":"2.0","method":"XBMC.GetInfoLabels","params":{"labels":["Player.Duration(h:mm:ss"]}}
05/17/17 23:17:51: Received: {"id":518,"jsonrpc":"2.0","result":{"Player.Duration(h:mm:ss":"0:17:14"}}
05/17/17 23:17:51: Sending: {"id":519,"jsonrpc":"2.0","method":"XBMC.GetInfoLabels","params":{"labels":["Player.Title"]}}
05/17/17 23:17:51: Received: {"id":519,"jsonrpc":"2.0","result":{"Player.Title":"Armed and Dangerous - Cowboy.avi"}}
05/17/17 23:17:51: Sending: {"id":520,"jsonrpc":"2.0","method":"XBMC.GetInfoLabels","params":{"labels":["System.CurrentWindow"]}}
05/17/17 23:17:51: Received: {"id":520,"jsonrpc":"2.0","result":{"System.CurrentWindow":"Fullscreen video"}}
05/17/17 23:17:51: Sending: {"id":521,"jsonrpc":"2.0","method":"XBMC.GetInfoLabels","params":{"labels":["MusicPlayer.Artist"]}}
05/17/17 23:17:52: Received: {"id":521,"jsonrpc":"2.0","result":{"MusicPlayer.Artist":""}}
05/17/17 23:17:52: Sending: {"id":522,"jsonrpc":"2.0","method":"XBMC.GetInfoLabels","params":{"labels":["MusicPlayer.Artist"]}}
05/17/17 23:17:52: Received: {"id":522,"jsonrpc":"2.0","result":{"MusicPlayer.Artist":""}}
05/17/17 23:17:52: Sending: {"id":523,"jsonrpc":"2.0","method":"XBMC.GetInfoLabels","params":{"labels":["Player.Title"]}}
05/17/17 23:17:52: Received: {"id":523,"jsonrpc":"2.0","result":{"Player.Title":"Armed and Dangerous - Cowboy.avi"}}
05/17/17 23:17:52: Sending: {"id":524,"jsonrpc":"2.0","method":"XBMC.GetInfoLabels","params":{"labels":["MusicPlayer.Album"]}}
05/17/17 23:17:52: Received: {"id":524,"jsonrpc":"2.0","result":{"MusicPlayer.Album":""}}
05/17/17 23:17:52: Sending: {"id":525,"jsonrpc":"2.0","method":"XBMC.GetInfoLabels","params":{"labels":["MusicPlayer.Album"]}}
05/17/17 23:17:52: Received: {"id":525,"jsonrpc":"2.0","result":{"MusicPlayer.Album":""}}
05/17/17 23:17:52: Sending: {"id":526,"jsonrpc":"2.0","method":"XBMC.GetInfoLabels","params":{"labels":["Player.Title"]}}
05/17/17 23:17:52: Received: {"id":526,"jsonrpc":"2.0","result":{"Player.Title":"Armed and Dangerous - Cowboy.avi"}}
05/17/17 23:17:52: Sending: {"id":527,"jsonrpc":"2.0","method":"XBMC.GetInfoLabels","params":{"labels":["System.CurrentControl"]}}
05/17/17 23:17:52: Received: {"id":527,"jsonrpc":"2.0","result":{"System.CurrentControl":""}}
05/17/17 23:17:52: Sending: {"id":528,"jsonrpc":"2.0","method":"XBMC.GetInfoLabels","params":{"labels":["Player.Time(h:mm:ss)"]}}
05/17/17 23:17:52: Received: {"id":528,"jsonrpc":"2.0","result":{"Player.Time(h:mm:ss)":"0:00:17"}}

The LCD display pauses between the 11 and 17 second mark of the video (between 23:17:45 and 23:17:51 in the log). All that appears to be requested and received during that time is "Player.GetProperties"... not sure where that is coming from, as I don't use that function in any of my screens. Something internal in the plugin itself?
Reply
Thanks for the logs. Here is what I found.

Code:
05/17/17 23:17:45: Sending: {"id":481,"jsonrpc":"2.0","method":"XBMC.GetInfoLabels","params":{"labels":["MusicPlayer.Album"]}}
05/17/17 23:17:45: Sending: {"id":482,"jsonrpc":"2.0","method":"Player.GetProperties","params":{"playerid":1,"properties":["percentage","time","totaltime"]}}
05/17/17 23:17:45: Received: {"id":483,"jsonrpc":"2.0","result":{"MusicPlayer.Album":""}}

We first send the request "XBMC.GetInfoLabels" (id=481), we then send a Player.GetProperties (id=482). We then get a response for id 483 (which we haven't even sent yet) which looks like the response we are waiting for 481. This looks like it could be a kodi bug as it doesn't seem to handling multiple requests from the same socket from multiple threads.
The reason why you are having the delay is that there is 5000 ms wait (5 seconds) before we return. We could decrease this timeout as it should never take 5 seconds for a request to get an answer....at least I don't think it should. Even if we do decrease this you could still get into a situation where kodi did not send a response to a request due to the id mismatch

Btw, the Player.GetProperties is from a thread that is started to get the time information when you hit play for Function2.
Reply
Interesting... thanks for the explanation.

Wondering if you could leave the timeout to default to 5000 ms, but have it as a optional setting in the configuration file?
Reply
Im still getting this when watching movies:

Image

Tried bar mode, but only change the squares for << symbols.

Music works fine. Only happens in movies.

My config:

$dll(kodi4smartie,1,,)
$dll(kodi4smartie,2,,)
Reply
The lcdsmartie lcd screen does not emulate the bars. You need to use an actual LCD to see the bars properly
Reply
(2017-06-17, 02:28)Jakester34 Wrote: The lcdsmartie lcd screen does not emulate the bars. You need to use an actual LCD to see the bars properly

Hi, I have a lcd and shows exactly the same. It s a 2x16 Irtrans oem.

Shows names correctly when playing music. When playing movies shows those weird symbols. If I change bar mode to 0,1,2 or 3, only shows other symbols, never the movie name.

Even when kodi is not running, shows perfectly the date and time and the "kodi media center" text.

Only problem is with movies.
Reply
The lack of bars might be a problem with your lcd compatibility with LCDsmartie as I am sending the LCD smartie bars function. You can try it on a line and see if you see the real bars or not.

$Bar([value],[maxvalue],[barsize])

I think the title not showing is a kodi bug. In previous versions of kodi the title was filled in now it is blank.

{"jsonrpc":"2.0","method":"Player.OnPlay","params":{"data":{"item":{"title":"","type":"movie"},"player":{"playerid":1,"speed":1}},"sender":"xbmc"}}
Reply
Hi, yes, I think it s a kodi bug.

I also tried this

$dll(kodi4smartie,7,XBMC.GetInfoLabels,System.CurrentWindow)
$dll(kodi4smartie,7,XBMC.GetInfoLabels,System.CurrentControl)

And works pretty fine, the movie name is shown when browsing movies, but once you hit play, only shows something like "video fullscreen is playing"
Reply
hmm, with kodi 17.5 now i only get the welcomescreen. I had this working for a very long time, im now on the latest version, but i can get kodi to display livetv channels en movies, only sticks with kodi mediacenter and second line is date and time??
is is kodi now that has a bug?
hope you can help
Reply
  •  Previous
  • 1
  • 5
  • 6
  • 7
  • 8(current)
  • 9
  • Next 
 
Thread Rating:
  • 0 Vote(s) - 0 Average



Logout Mark Read Team Forum Stats Members Help
KODI4SMARTIE - Kodi DLL for LCD Smartie00