Windows - KODI4SMARTIE - Kodi DLL for LCD Smartie

  Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
IsogoniC Offline
Junior Member
Posts: 7
Joined: Mar 2015
Reputation: 0
Post: #91
$dll(Kodi4smartie,2,,) shows the time when nothing is playing. the line is blank when playing video stream either local or remote. shows the time left bar playing bar when playing music. if you then stop playing music and play a video stream local or remote the time left bar works ok (or untill crash or system reboot.

Will capture a log for you tonight.

Chris.

a quick sample from my log.. most of the info is just repeated chunk after chunk so i cut and pasted a few lines.

03/21/17 01:37:09: Init
03/21/17 01:37:09: SmartieInit
03/21/17 01:37:09: Connecting to ws://LOCALHOST:9090
03/21/17 01:37:09: Connected to ws://LOCALHOST:9090
03/21/17 01:38:27: Sending: {"id":303,"jsonrpc":"2.0","method":"Player.GetActivePlayers"}
03/21/17 01:38:27: Received: {"id":303,"jsonrpc":"2.0","result":[]}
03/21/17 01:38:27: Received: {"jsonrpc":"2.0","method":"Player.OnPlay","params":{"data":{"item":{"episode":8,"season":1,"showtitle":"24: Legacy","title":"7:00 P.M. - 8:00 P.M.","type":"episode"},"player":{"playerid":-1,"speed":1}},"sender":"xbmc"}}
03/21/17 01:38:27: Mode set to episode
03/21/17 01:38:27: title 7:00 P.M. - 8:00 P.M.
03/21/17 01:38:27: title=7:00 P.M. - 8:00 P.M.
03/21/17 01:38:27: Sending: {"id":304,"jsonrpc":"2.0","method":"Player.GetActivePlayers"}
03/21/17 01:38:27: Received: {"id":304,"jsonrpc":"2.0","result":[{"playerid":1,"type":"video"}]}
03/21/17 01:38:27: Sending: {"id":305,"jsonrpc":"2.0","method":"Player.GetProperties","params":{"playerid":1,"properties":["speed"]}}
03/21/17 01:38:27: Received: {"id":305,"jsonrpc":"2.0","result":{"speed":1}}
03/21/17 01:38:27: Sending: {"id":306,"jsonrpc":"2.0","method":"Player.GetActivePlayers"}
03/21/17 01:38:27: Received: {"id":306,"jsonrpc":"2.0","result":[{"playerid":1,"type":"video"}]}
03/21/17 01:38:27: Sending: {"id":307,"jsonrpc":"2.0","method":"Player.GetProperties","params":{"playerid":1,"properties":["speed"]}}
03/21/17 01:38:29: Received: {"id":328,"jsonrpc":"2.0","result":{"speed":1}}
03/21/17 01:38:29: Sending: {"id":329,"jsonrpc":"2.0","method":"Player.GetProperties","params":{"playerid":-1,"properties":["percentage","time","totaltime"]}}
03/21/17 01:38:29: Received: {"error":{"code":-32602,"data":{"method":"Player.GetProperties","stack":{"message":"Value between 0 (inclusive) and 2 (inclusive) expected but -1 received","name":"playerid","type":"integer"}},"message":"Invalid params."},"id":329,"jsonrpc":"2.0"}
03/21/17 01:38:29: Sending: {"id":330,"jsonrpc":"2.0","method":"Player.GetActivePlayers"}
03/21/17 01:38:29: Received: {"id":330,"jsonrpc":"2.0","result":[{"playerid":1,"type":"video"}]}
03/21/17 01:38:29: Sending: {"id":331,"jsonrpc":"2.0","method":"Player.GetProperties","params":{"playerid":1,"properties":["speed"]}}
03/21/17 01:38:30: Received: {"id":341,"jsonrpc":"2.0","result":{"speed":1}}
03/21/17 01:38:30: Sending: {"id":342,"jsonrpc":"2.0","method":"Player.GetProperties","params":{"playerid":-1,"properties":["percentage","time","totaltime"]}}
03/21/17 01:38:30: Received: {"error":{"code":-32602,"data":{"method":"Player.GetProperties","stack":{"message":"Value between 0 (inclusive) and 2 (inclusive) expected but -1 received","name":"playerid","type":"integer"}},"message":"Invalid params."},"id":342,"jsonrpc":"2.0"}
03/21/17 01:38:30: Sending: {"id":343,"jsonrpc":"2.0","method":"Player.GetActivePlayers"}
03/21/17 01:38:30: Received: {"id":343,"jsonrpc":"2.0","result":[{"playerid":1,"type":"video"}]}
03/21/17 01:38:30: Sending: {"id":344,"jsonrpc":"2.0","method":"Player.GetProperties","params":
03/21/17 01:38:56: SmartieFini

config ini

[Communication Settings]
DisplayDLLName=matrix.dll
DisplayDLLParameters=COM3,9600
Baudrate=8
COMPort=1
USBPalm=0
ParallelPort=888
HDAlternativeAddressing=0
HDKS0073Addressing=0
HDTimingMultiplier=1
MX3USB=0
HTTPProxy=
HTTPProxyPort=0
RemoteHost=localhost

[General Settings]
RefreshRate=1000
WinAmpLocation=C:\Program Files\Winamp\winamp.exe
BootDriverDelay=1
[email protected]
DistLog=C:\koelog.txt
EmailPeriod=1
DLLPeriod=250
ScrollPeriod=300
AlwaysOnTop=0
Size=11
NewsRefresh=120
RandomScreens=0
FoldUsername=Test
GameRefresh=1
MBMRefresh=30
CheckUpdates=1
ColorOption=1
MinFadeContrast=0
SkinPath=images\smoothandblack\
DLLContrast=249
DLLBrightness=254
HideOnStartup=1
AutoStart=0
AutoStartHidden=1
EmulateLCD=1
LCDType=7
Contrast=88
Brightness=26
CFContrast=66
CFBrightness=61
CFCGRomVersion=2
IRBrightness=3
LastTab=10
TrayIcon=smartie.ico
ShowMBM=0
ShutdownLine1=" System going down"
ShutdownLine2=" for a reboot"
ShutdownLine3=""
ShutdownLine4=""
ActionsRefreshRate=250

[Screen 01]
Enabled=1
Theme=1
ShowTime=30
Sticky=0
Skip=0
InteractionTime=20
Interaction=0
Text01="$dll(bignum,3,1,$Time(h:nnConfuseds))"
Text02="$dll(bignum,3,2,$Time(h:nnConfuseds))"
Text03="$dll(bignum,3,3,$Time(h:nnConfuseds))"
Text04="$dll(bignum,3,4,$Time(h:nnConfuseds))"
NoScroll01=0
NoScroll02=0
NoScroll03=0
NoScroll04=0
ContinueNextLine01=0
ContinueNextLine02=0
ContinueNextLine03=0
ContinueNextLine04=0
Center01=1
Center02=1
Center03=1
Center04=1

[Screen 02]
Enabled=0
Theme=1
ShowTime=10
Sticky=1
Skip=0
InteractionTime=15
Interaction=0
Text01=""
Text02="$dll(kodi4smartie,7,XBMC.GetInfoLabels,System.CurrentWindow)"
Text03=""
Text04=""
NoScroll01=0
NoScroll02=1
NoScroll03=1
NoScroll04=1
ContinueNextLine01=0
ContinueNextLine02=0
ContinueNextLine03=0
ContinueNextLine04=0
Center01=1
Center02=1
Center03=1
Center04=1

[Screen 03]
Enabled=0
Theme=1
ShowTime=20
Sticky=1
Skip=0
InteractionTime=15
Interaction=0
Text01="$dll(kodi4smartie,1,,)"
Text02=""
Text03="$dll(kodi4smartie,2,,)"
Text04="$dll(kodi4smartie,5,Player.GetProperties,time#minutes) mins / $dll(kodi4smartie,5,Player.GetProperties,totaltime#minutes) mins"
NoScroll01=0
NoScroll02=0
NoScroll03=0
NoScroll04=0
ContinueNextLine01=0
ContinueNextLine02=0
ContinueNextLine03=0
ContinueNextLine04=0
Center01=1
Center02=1
Center03=1
Center04=1

[Screen 04]
Enabled=1
Theme=1
ShowTime=15
Sticky=0
Skip=0
InteractionTime=15
Interaction=0
Text01="$CPUType"
Text02="working @ $CPUUsage%%$Fill(20)$Bar($CPUUsage%,100,20)"
Text03="$NetAdapter(7)"
Text04="Down-$NetSpDownK(7) : Up-$NetSpUpK(7)"
NoScroll01=1
NoScroll02=1
NoScroll03=0
NoScroll04=1
ContinueNextLine01=0
ContinueNextLine02=0
ContinueNextLine03=0
ContinueNextLine04=0
Center01=0
Center02=1
Center03=1
Center04=1

[Screen 05]
Enabled=1
Theme=1
ShowTime=10
Sticky=0
Skip=0
InteractionTime=20
Interaction=0
Text01=""
Text02="$UpTime"
Text03=""
Text04="$Time(hh:nnConfuseds 'on' dddd d mmmm yyyy)"
NoScroll01=1
NoScroll02=1
NoScroll03=0
NoScroll04=1
ContinueNextLine01=0
ContinueNextLine02=0
ContinueNextLine03=0
ContinueNextLine04=0
Center01=1
Center02=1
Center03=0
Center04=1

[Screen 06]
Enabled=1
Theme=1
ShowTime=15
Sticky=0
Skip=0
InteractionTime=20
Interaction=0
Text01="Hdd usage Stats"
Text02=""
Text03="C: $Right($HDUseg©GB / $HDTotag©,$2%)GB"
Text04="D: $Right($HDUseg(D)GB / $HDTotag(D),$2%)GB"
NoScroll01=1
NoScroll02=1
NoScroll03=1
NoScroll04=1
ContinueNextLine01=0
ContinueNextLine02=0
ContinueNextLine03=0
ContinueNextLine04=0
Center01=1
Center02=0
Center03=1
Center04=1

[Screen 07]
Enabled=0
Theme=1
ShowTime=30
Sticky=0
Skip=0
InteractionTime=20
Interaction=0
Text01="$dll(kodi4smartie,9,,)"
Text02=""
Text03=""
Text04=""
NoScroll01=1
NoScroll02=1
NoScroll03=1
NoScroll04=1
ContinueNextLine01=0
ContinueNextLine02=0
ContinueNextLine03=0
ContinueNextLine04=0
Center01=1
Center02=1
Center03=1
Center04=1

[Screen 08]
Enabled=1
Theme=1
ShowTime=15
Sticky=0
Skip=0
InteractionTime=20
Interaction=0
Text01="Today is the :-"
Text02=""
Text03="$dll(bignum,2,1#1,$Time(d mmm yyyy))"
Text04="$dll(bignum,2,2#1,$Time(d mmm yyyy))"
NoScroll01=1
NoScroll02=0
NoScroll03=1
NoScroll04=1
ContinueNextLine01=0
ContinueNextLine02=0
ContinueNextLine03=0
ContinueNextLine04=0
Center01=1
Center02=0
Center03=1
Center04=1

next ten are not used. email etc not used game servers etc not used but still in there....

[Actions]
Action01Variable=$dll(kodi4smartie,5,Player.GetProperties,speed)
Action01Condition=0
Action01ConditionValue=0
Action01Action=GotoScreen(3)
(This post was last modified: 2017-03-21 04:54 by IsogoniC.)
find quote
torma02 Offline
Junior Member
Posts: 10
Joined: Mar 2017
Reputation: 0
Location: Italy
Post: #92
I start Kodi and after a while LCDSmartie. It is on screen 1 when I start a movie. Instead to switch to screen 2 it hangs on screen 1 and it doesn't respond to any
command. When the movie is stopped LCDSmartie crashes.

This is my log:

03/22/17 00:14:07: Init
03/22/17 00:14:07: SmartieInit
03/22/17 00:14:07: Connecting to ws://LOCALHOST:9090
03/22/17 00:14:07: Connected to ws://LOCALHOST:9090
03/22/17 00:14:07: Sending: {"id":10,"jsonrpc":"2.0","method":"Player.GetActivePlayers"}
03/22/17 00:14:07: Received: {"id":10,"jsonrpc":"2.0","result":[]}
03/22/17 00:14:07: Sending: {"id":11,"jsonrpc":"2.0","method":"Player.GetActivePlayers"}
03/22/17 00:14:07: Received: {"id":11,"jsonrpc":"2.0","result":[]}
Same as above..................................
03/22/17 00:14:27: Received: {"id":191,"jsonrpc":"2.0","result":[]}
03/22/17 00:14:27: Sending: {"id":192,"jsonrpc":"2.0","method":"Player.GetActivePlayers"}
03/22/17 00:14:27: Received: {"id":192,"jsonrpc":"2.0","result":[]}
03/22/17 00:14:27: Received: {"jsonrpc":"2.0","method":"Player.OnPlay","params":{"data":{"item":{"title":"","type":"movie"},"player":{"playerid":1,"speed":1}},"sender":"xbmc"}}
03/22/17 00:14:27: Mode set to movie
03/22/17 00:14:27: title (null)
03/22/17 00:14:27: Malformed json message received: 2673848
03/22/17 00:14:27: Sending: {"id":193,"jsonrpc":"2.0","method":"Player.GetActivePlayers"}
03/22/17 00:14:27: Received: {"id":193,"jsonrpc":"2.0","result":[{"playerid":1,"type":"video"}]}
03/22/17 00:14:27: Sending: {"id":194,"jsonrpc":"2.0","method":"Player.GetProperties","params":{"playerid":1,"properties":["speed"]}}
03/22/17 00:14:27: Received: {"id":194,"jsonrpc":"2.0","result":{"speed":1}}
03/22/17 00:14:27: Sending: {"id":195,"jsonrpc":"2.0","method":"Player.GetActivePlayers"}
03/22/17 00:14:27: Received: {"id":195,"jsonrpc":"2.0","result":[{"playerid":1,"type":"video"}]}
03/22/17 00:14:27: Sending: {"id":196,"jsonrpc":"2.0","method":"Player.GetProperties","params":{"playerid":1,"properties":["speed"]}}
03/22/17 00:14:27: Received: {"id":196,"jsonrpc":"2.0","result":{"speed":1}}
03/22/17 00:14:27: Sending: {"id":197,"jsonrpc":"2.0","method":"Player.GetActivePlayers"}
03/22/17 00:14:27: Received: {"id":197,"jsonrpc":"2.0","result":[{"playerid":1,"type":"video"}]}
03/22/17 00:14:27: Sending: {"id":198,"jsonrpc":"2.0","method":"Player.GetProperties","params":{"playerid":1,"properties":["percentage"]}}
03/22/17 00:14:27: Received: {"id":198,"jsonrpc":"2.0","result":{"percentage":6.4775991439819335938}}
Same as above...........................................................
03/22/17 00:15:07: Sending: {"id":811,"jsonrpc":"2.0","method":"Player.GetActivePlayers"}
03/22/17 00:15:07: Received: {"id":811,"jsonrpc":"2.0","result":[{"playerid":1,"type":"video"}]}
03/22/17 00:15:07: Sending: {"id":812,"jsonrpc":"2.0","method":"Player.GetProperties","params":{"playerid":1,"properties":["speed"]}}
03/22/17 00:15:08: Received: {"id":812,"jsonrpc":"2.0","result":{"speed":1}}
03/22/17 00:15:08: Sending: {"id":813,"jsonrpc":"2.0","method":"Player.GetActivePlayers"}
03/22/17 00:15:08: Received: {"id":813,"jsonrpc":"2.0","result":[{"playerid":1,"type":"video"}]}
03/22/17 00:15:08: Sending: {"id":814,"jsonrpc":"2.0","method":"Player.GetProperties","params":{"playerid":1,"properties":["speed"]}}
03/22/17 00:15:08: Received: {"id":814,"jsonrpc":"2.0","result":{"speed":1}}
03/22/17 00:15:08: Sending: {"id":815,"jsonrpc":"2.0","method":"Player.GetActivePlayers"}
03/22/17 00:15:08: Received: {"id":815,"jsonrpc":"2.0","result":[{"playerid":1,"type":"video"}]}
03/22/17 00:15:08: Sending: {"id":816,"jsonrpc":"2.0","method":"Player.GetProperties","params":{"playerid":1,"properties":["percentage"]}}
03/22/17 00:15:08: Received: {"id":816,"jsonrpc":"2.0","result":{"percentage":6.9130873680114746094}}
03/22/17 00:15:08: Sending: {"id":817,"jsonrpc":"2.0","method":"Player.GetActivePlayers"}
03/22/17 00:15:08: Received: {"id":817,"jsonrpc":"2.0","result":[{"playerid":1,"type":"video"}]}
03/22/17 00:15:08: Sending: {"id":818,"jsonrpc":"2.0","method":"Player.GetProperties","params":{"playerid":1,"properties":["speed"]}}
03/22/17 00:15:08: Received: {"id":818,"jsonrpc":"2.0","result":{"speed":1}}
03/22/17 00:15:08: Sending: {"id":819,"jsonrpc":"2.0","method":"Player.GetActivePlayers"}
03/22/17 00:15:08: Received: {"id":819,"jsonrpc":"2.0","result":[]}
03/22/17 00:15:08: Sending: {"id":820,"jsonrpc":"2.0","method":"Player.GetActivePlayers"}
03/22/17 00:15:08: Received: {"id":820,"jsonrpc":"2.0","result":[]}
03/22/17 00:15:08: Sending: {"id":821,"jsonrpc":"2.0","method":"Player.GetActivePlayers"}
03/22/17 00:15:08: Received: {"id":821,"jsonrpc":"2.0","result":[]}
03/22/17 00:15:08: Sending: {"id":822,"jsonrpc":"2.0","method":"Player.GetActivePlayers"}
03/22/17 00:15:08: Received: {"id":822,"jsonrpc":"2.0","result":[]}
03/22/17 00:15:08: Sending: {"id":823,"jsonrpc":"2.0","method":"Player.GetActivePlayers"}
03/22/17 00:15:08: Received: {"id":823,"jsonrpc":"2.0","result":[]}
03/22/17 00:15:08: Received: {"jsonrpc":"2.0","method":"Player.OnStop","params":{"data":{"end":false,"item":{"id":69,"type":"movie"}},"sender":"xbmc"}}

I have cut repeating lines.

This is error display: (sorry for italian language)

Nome evento problema: BEX
Nome applicazione: LCDSmartie.exe
Versione applicazione: 5.4.2.92
Timestamp applicazione: 2a425e19
Nome modulo con errori: ucrtbase.DLL
Versione modulo con errori: 10.0.10586.9
Timestamp modulo con errori: 5642c5f8
Offset eccezione: 0008468b
Codice eccezione: c0000409
Dati eccezione: 00000007
Versione SO: 6.3.9600.2.0.0.256.103
ID impostazioni locali: 1040
Informazioni aggiuntive 1: e108
Ulteriori informazioni 2: e108b378fe52a601f97fc3e63049312a
Ulteriori informazioni 3: ec14
Ulteriori informazioni 4: ec140bbe76d8ebf7909e87c579867a48

This is config file:
[Communication Settings]
DisplayDLLName=HD44780.dll
DisplayDLLParameters=LPT1
Baudrate=8
COMPort=1
USBPalm=0
ParallelPort=378
HDAlternativeAddressing=0
HDKS0073Addressing=0
HDTimingMultiplier=1
MX3USB=0
HTTPProxy=
HTTPProxyPort=0
RemoteHost=localhost

[General Settings]
RefreshRate=1000
WinAmpLocation=C:\Program Files\Winamp\winamp.exe
BootDriverDelay=1
[email protected]
DistLog=C:\koelog.txt
EmailPeriod=1
DLLPeriod=250
ScrollPeriod=300
AlwaysOnTop=0
Size=11
NewsRefresh=120
RandomScreens=0
FoldUsername=Test
GameRefresh=1
MBMRefresh=30
CheckUpdates=1
ColorOption=4
MinFadeContrast=0
SkinPath=images\
DLLContrast=127
DLLBrightness=127
HideOnStartup=0
AutoStart=0
AutoStartHidden=0
EmulateLCD=0
LCDType=7
Contrast=88
Brightness=26
CFContrast=66
CFBrightness=61
CFCGRomVersion=2
IRBrightness=3
LastTab=0
TrayIcon=smartie.ico
ShowMBM=0
ShutdownLine1=""
ShutdownLine2=""
ShutdownLine3=""
ShutdownLine4=""
ActionsRefreshRate=250

[Screen 01]
Enabled=1
Theme=1
ShowTime=8
Sticky=1
Skip=0
InteractionTime=20
Interaction=1
Text01="$dll(bignum,3,1#2,$Time(hh : nn))"
Text02="$dll(bignum,3,2#2,$Time(hh : nn))"
Text03="$dll(bignum,3,3#2,$Time(hh : nn))"
Text04="$dll(bignum,3,4#2,$Time(hh : nn))"
NoScroll01=1
NoScroll02=1
NoScroll03=1
NoScroll04=1
ContinueNextLine01=0
ContinueNextLine02=0
ContinueNextLine03=0
ContinueNextLine04=0
Center01=1
Center02=1
Center03=1
Center04=1

[Screen 02]
Enabled=1
Theme=1
ShowTime=10
Sticky=1
Skip=0
InteractionTime=15
Interaction=5
Text01="$dll(bignum,2,1#2,$Time(hh : nn)) | $dll(bignum,2,1#2,$dll(kodi4smartie,5,Player.GetProperties,percentage))"
Text02="$dll(bignum,2,2#2,$Time(hh : nn)) | $dll(bignum,2,2#2,$dll(kodi4smartie,5,Player.GetProperties,percentage))"
Text03=""
Text04=""
NoScroll01=1
NoScroll02=1
NoScroll03=1
NoScroll04=1
ContinueNextLine01=0
ContinueNextLine02=0
ContinueNextLine03=0
ContinueNextLine04=0
Center01=0
Center02=0
Center03=0
Center04=0

[Screen 03]
Enabled=1
Theme=1
ShowTime=6
Sticky=1
Skip=0
InteractionTime=15
Interaction=5
Text01="$dll(kodi4smartie,5,Player.GetItem,title)"
Text02="$dll(kodi4smartie,5,Player.GetItem,duration)"
Text03=""
Text04=""
NoScroll01=1
NoScroll02=1
NoScroll03=1
NoScroll04=1
ContinueNextLine01=0
ContinueNextLine02=0
ContinueNextLine03=0
ContinueNextLine04=0
Center01=0
Center02=0
Center03=0
Center04=0
...
.....
.......
GameServer20-02=213.208.119.11:27025
GameServer20-03=195.149.21.121:27025
GameServer20-04=195.149.21.18:27035

[Actions]
Action01Variable=($dll(kodi4smartie,5,Player.GetProperties,speed))
Action01Condition=2
Action01ConditionValue=0
Action01Action=GotoScreen(1)
Action02Variable=($dll(kodi4smartie,5,Player.GetProperties,speed))
Action02Condition=0
Action02ConditionValue=0
Action02Action=GotoScreen(2)
Action03Variable=($dll(kodi4smartie,5,Player.GetProperties,percentage))
Action03Condition=2
Action03ConditionValue=
Action03Action=GotoScreen(1)

[Versions]
ConfigFileFormat=1.0
ScreenTextSyntax=1.0
(This post was last modified: 2017-03-22 01:36 by torma02.)
find quote
Jakester34 Offline
Member
Posts: 54
Joined: Oct 2013
Reputation: 4
Post: #93
My first suggestion is to remove all the bignum and screen switching stuff so that we are sure that it is not causing any problems. You want to first be able to play and stop movies without issues before complicating the configuration.

also, you might want to consider using $dll(kodi4smartie,9,,) instead of $dll(kodi4smartie,5,Player.GetProperties,speed) in your actions

function 9 returns an integer of the current state: kodi_not_running(0),none(1), play(2), stop(3), pause(4), ff(5), rew(6)

Actions:
if $dll(kodi4smartie,9,,) ==1 goto screen(1)
if $dll(kodi4smartie,9,,) ==2 goto screen(2)
find quote
torma02 Offline
Junior Member
Posts: 10
Joined: Mar 2017
Reputation: 0
Location: Italy
Post: #94
New test:
I removed bignum and switch stuff, just one screen used, see the following. The other parameters of the config.ini are the same of my previous test.
I started LCDSmartie after Kodi, the screen 01 is correctly showed. The time (minutes) increases on the screen, so Smartie is running, it doesn't hang.
I started a movie, the title is showed on Smartie (Gladiatore) . After this LCDSmartie hangs, the minutes don't increase any more. I paused (the same if stopped) the movie and LCDSmartie crashes, with the same error I reported in my previous post (BEX on ucrtbase.dll).
I did this test on two different desktops, one with win 8.1 32 bits , the other win 8.1 64 bits with the same results. The phisical LCD is present only on the 8.1 32 bits.

[Screen 01]
Enabled=1
Theme=1
ShowTime=8
Sticky=1
Skip=0
InteractionTime=20
Interaction=1
Text01="$dll(Kodi4smartie,1,,)"
Text02="$dll(Kodi4smartie,2,,)"
Text03=""
Text04="$dll(kodi4smartie,5,Player.GetItem,title)"
NoScroll01=1
NoScroll02=1
NoScroll03=1
NoScroll04=1
ContinueNextLine01=0
ContinueNextLine02=0
ContinueNextLine03=0
ContinueNextLine04=0
Center01=1
Center02=1
Center03=1
Center04=1

The log is:

03/24/17 00:23:33: Init
03/24/17 00:23:33: SmartieInit
03/24/17 00:23:33: Connecting to ws://LOCALHOST:9090
03/24/17 00:23:33: Client Close Detected: status=1006
03/24/17 00:23:33: Connected to ws://LOCALHOST:9090
03/24/17 00:23:33: Sending: {"id":10,"jsonrpc":"2.0","method":"Player.GetActivePlayers"}
03/24/17 00:23:33: Received: {"id":10,"jsonrpc":"2.0","result":[]}
03/24/17 00:23:33: Sending: {"id":11,"jsonrpc":"2.0","method":"Player.GetActivePlayers"}
03/24/17 00:23:33: Received: {"id":11,"jsonrpc":"2.0","result":[]}
.....same as above
03/24/17 00:24:07: Sending: {"id":45,"jsonrpc":"2.0","method":"Player.GetActivePlayers"}
03/24/17 00:24:07: Received: {"id":45,"jsonrpc":"2.0","result":[]}
03/24/17 00:24:08: Sending: {"id":46,"jsonrpc":"2.0","method":"Player.GetActivePlayers"}
03/24/17 00:24:08: Received: {"id":46,"jsonrpc":"2.0","result":[{"playerid":1,"type":"video"}]}
03/24/17 00:24:08: Sending: {"id":47,"jsonrpc":"2.0","method":"Player.GetItem","params":{"playerid":1,"properties":["title"]}}
03/24/17 00:24:08: Received: {"id":47,"jsonrpc":"2.0","result":{"item":{"id":69,"label":"Il gladiatore","title":"Il gladiatore","type":"movie"}}}
03/24/17 00:24:08: Received: {"jsonrpc":"2.0","method":"Player.OnPlay","params":{"data":{"item":{"title":"","type":"movie"},"player":{"playerid":1,"speed":1}},"sender":"xbmc"}}
03/24/17 00:24:08: Mode set to movie
03/24/17 00:24:08: title (null)
03/24/17 00:24:08: Malformed json message received: 2849616
03/24/17 00:26:20: Received: {"jsonrpc":"2.0","method":"Player.OnPause","params":{"data":{"item":{"id":69,"type":"movie"},"player":{"playerid":1,"speed":0}},"sender":"xbmc"}}
find quote
Jakester34 Offline
Member
Posts: 54
Joined: Oct 2013
Reputation: 4
Post: #95
(2017-03-24 01:48)torma02 Wrote:  03/24/17 00:24:08: Received: {"jsonrpc":"2.0","method":"Player.OnPlay","params":{"data":{"item":{"title":"","type":"movie"},"player":{"playerid":1,"speed":1}},"sender":"xbmc"}}
03/24/17 00:24:08: Mode set to movie
03/24/17 00:24:08: title (null)
03/24/17 00:24:08: Malformed json message received: 2849616
03/24/17 00:26:20: Received: {"jsonrpc":"2.0","method":"Player.OnPause","params":{"data":{"item":{"id":69,"type":"movie"},"player":{"playerid":1,"speed":0}},"sender":"xbmc"}}

Not sure why you are getting the "Malformed json" error as everything in the json response looks ok. The title is null which seems to be causing a problem.I am debugging it but in the mean time I just uploaded a new version that should handle connecting to Kodi better.
(This post was last modified: 2017-03-27 02:57 by Jakester34.)
find quote
IsogoniC Offline
Junior Member
Posts: 7
Joined: Mar 2015
Reputation: 0
Post: #96
Thanks for the latest update. It seems to work a lot better if smartie is loaded before kodi now.

I still do not have the bar no matter what one of the 4 options i use --->-- >>>>> etc etc when watching a stream from the interwebs. I will try a local stream from hdd in the next couple of days and let you know how that one goes.

Playing audio - mp3 tracks from my local hdd has the time played/remaining bar working good that is selected from the config but when stopping the audio and going back to a video stream this results in the time played/remaining bar staying at the same position as when the mp3 music was last player. ( if i stop a track half way through then load and internet video stream the time played / remaining stays at half way through and never moves as the progress goes on )

Any joy with the season name / number and episode number etc from option 5 that you were going to have a look into for us 4 line lcd users ?? Smile
(This post was last modified: 2017-04-05 16:07 by IsogoniC.)
find quote
IsogoniC Offline
Junior Member
Posts: 7
Joined: Mar 2015
Reputation: 0
Post: #97
I can make the plugin crash just about on demand. playing any local video file after a few mins will create the bug / fault and trash smartie.. log below

the fault always seems to occur just after a screensaver call.

04/16/17 01:23:13: Received: {"jsonrpc":"2.0","method":"GUI.OnScreensaverDeactivated","params":{"data":{"shuttingdown":false},"sender":"xbmc"}}
04/16/17 01:23:13: Sending: {"id":210,"jsonrpc":"2.0","method":"Player.GetActivePlayers"}
04/16/17 01:23:13: Received: {"id":210,"jsonrpc":"2.0","result":[]}
04/16/17 01:23:13: Sending: {"id":211,"jsonrpc":"2.0","method":"Player.GetActivePlayers"}
04/16/17 01:23:13: Received: {"id":211,"jsonrpc":"2.0","result":[]}
04/16/17 01:23:16: Received: {"jsonrpc":"2.0","method":"Player.OnPlay","params":{"data":{"item":{"title":"","type":"movie"},"player":{"playerid":1,"speed":1}},"sender":"xbmc"}}
04/16/17 01:23:16: Mode set to movie
04/16/17 01:23:16: title (null)
04/16/17 01:23:16: Malformed json message received: 53691096
04/16/17 01:28:34: Received: {"jsonrpc":"2.0","method":"Player.OnPause","params":{"data":{"item":{"id":6,"type":"movie"},"player":{"playerid":1,"speed":0}},"sender":"xbmc"}}


I have the same results 5 times in a row now on playing local video. If i then reload smartie it will work ok untill i watch i different video then crash again.

Chris
find quote
Jakester34 Offline
Member
Posts: 54
Joined: Oct 2013
Reputation: 4
Post: #98
It has to do with the NULL title. Not sure what would cause a null title. I think the title should be the filename it is is video. But in this case it is a "movie" so why is there no title? Is this a Kodi bug?
I have a fix that I will upload this week so it wont crash on null title
find quote
Jakester34 Offline
Member
Posts: 54
Joined: Oct 2013
Reputation: 4
Post: #99
Ok. I had some time so I uploaded a new version to https://kodi4smartie.codeplex.com/

Let me know if you have any issues.
find quote
torma02 Offline
Junior Member
Posts: 10
Joined: Mar 2017
Reputation: 0
Location: Italy
Post: #100
I tried your new version, it was a big step forward for me !
LCDSmartie doesn't crash in ucrtbase.dll (C++ runtime) any longer , moreover it works even if it is started before Kodi.
I have tried some functions and they work. The only not working function I have tried is :
$dll(kodi4smartie,9,,)
when I use it in the 'action' conditions. I.e. : If $dll(kodi4smartie,9,,) = 2 then GotoScreen(2)
When used in a normal screen the right values (0,1,2,..) are showed.
find quote
trihy Offline
Senior Member
Posts: 158
Joined: Dec 2015
Reputation: 0
Post: #101
Hi, latest build works way better.

With default settings, music is fine, tv shows, fine too.


But on movies I get the play symbol on first line (this seems ok)

and on second line only get _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ symbols. Tried different movies, all the same.
(This post was last modified: 2017-04-24 18:43 by trihy.)
find quote
barcoboy Offline
Member
Posts: 66
Joined: Feb 2011
Reputation: 0
Location: Canada
Post: #102
I'm having a different "problem". Everything seems to work fine, but when I am running Kodi and LCDSmartie has switched to the kodi4smartie screen (using the latest build of kodi4smartie), my display as well as LCDSmartie will freeze for about 5-10 seconds and then resume. Sometimes it will work for a minute before freezing, sometimes only a few seconds. If Kodi is not running and my other screens are displaying, everything runs smoothly.
find quote
Jakester34 Offline
Member
Posts: 54
Joined: Oct 2013
Reputation: 4
Post: #103
torma02: if you are seeing the correct kodi states then it sounds like you have something not configured properly in LcdSmartie. Let me know what you have for all your actions

trihy: try using the bar_mode option in the cfg file. Sounds like your lcd doesnt handle the graphics bars correctly.

barcoboy: Sounds like it might be hanging on the connect to kodi. What are you using for you lcdSmartie configs and actions?
find quote
barcoboy Offline
Member
Posts: 66
Joined: Feb 2011
Reputation: 0
Location: Canada
Post: #104
I am using the following actions to switch to and from my Kodi screen:

Code:
If $dll(kodi4smartie,7,XBMC.GetInfoLabels,System.Time) <> "Kodi Not Found" Then GotoTheme(3)
If $dll(kodi4smartie,7,XBMC.GetInfoLabels,System.Time) <> "Kodi Not Found" Then GotoScreen(19)
If $dll(kodi4smartie,7,XBMC.GetInfoLabels,System.Time) = "Kodi Not Found" Then GotoTheme(1)
If $dll(kodi4smartie,7,XBMC.GetInfoLabels,System.Time) = "Kodi Not Found" Then GotoScreen(11)

My Kodi screen is quite complex:

Code:
Line 1: $dll(if,1,$dll(kodi4smartie,7,XBMC.GetInfoLabels,Player.Title)#,$dll(kodi4smarti​e,7,XBMC.GetInfoLabels,System.CurrentWindow)#$dll(if,1,$dll(kodi4smartie,7,XBMC.​GetInfoLabels,MusicPlayer.Artist)#,#$dll(kodi4smartie,7,XBMC.GetInfoLabels,Music​Player.Artist) - )$dll(kodi4smartie,7,XBMC.GetInfoLabels,Player.Title)$dll(if,1,$dll(kodi4smartie​,7,XBMC.GetInfoLabels,MusicPlayer.Album)#,# [$dll(kodi4smartie,7,XBMC.GetInfoLabels,MusicPlayer.Album)])                    )

Code:
Line 2:
$dll(if,1,$dll(kodi4smartie,7,XBMC.GetInfoLabels,Player.Title)#,$dll(kodi4smarti​e,7,XBMC.GetInfoLabels,System.CurrentControl)#$dll(kodi4smartie,7,XBMC.GetInfoLa​bels,Player.Time(h:mm:ss))$dll(if,1,$dll(kodi4smartie,7,XBMC.GetInfoLabels,Playe​r.Duration)#,#/$dll(kodi4smartie,7,XBMC.GetInfoLabels,Player.Duration(h:mm:ss)))

These lines let me change the display depending on if a song's artist and/or album are known, or if a song/movie duration is known (as opposed to a stream where there is no known duration), and if nothing is playing, display the CurrentWindow and CurrentControl.

HOWEVER

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.
find quote
torma02 Offline
Junior Member
Posts: 10
Joined: Mar 2017
Reputation: 0
Location: Italy
Post: #105
My actions:
[Actions]
Action01Variable=$dll(kodi4smartie,9,,)
Action01Condition=2
Action01ConditionValue=1
Action01Action=Goto Screen(1)
Action02Variable=$dll(kodi4smartie,9,,)
Action02Condition=2
Action02ConditionValue=2
Action02Action=Goto Screen(2)
find quote
Post Reply