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: 5
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: 6
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: Yesterday 01:36 by torma02.)
find quote
Jakester34 Offline
Junior Member
Posts: 44
Joined: Oct 2013
Reputation: 2
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
Post Reply