Kodi Community Forum

Full Version: XBMC on iMON Display (LCD / VFD) for Windows
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I have an extract of the debug log for you:
Code:
16.01.2011 23:26:59 [GUI] Settings successfully applied to the GUI
16.01.2011 23:26:59 [GUI] Setting up iMON
16.01.2011 23:26:59 [GUI] Setting up XBMC connection to 127.0.0.1:8080
16.01.2011 23:26:59 [GUI] Auto-connecting to XBMC at startup
16.01.2011 23:26:59 [XBMC] XbmcJsonRpcConnection.IsAlive
16.01.2011 23:26:59 [GUI] Asynchronous starting to connect with XBMC
16.01.2011 23:26:59 [XBMC] Opening a connection to XBMC
16.01.2011 23:26:59 [XBMC] XbmcJsonRpcConnection.IsAlive
16.01.2011 23:26:59 [XBMC] XbmcJsonRpc.Ping()
16.01.2011 23:26:59 [XBMC] Calling JSON RPC method "JSONRPC.Ping"...
16.01.2011 23:26:59 [GUI] Minimizing application to tray at startup
16.01.2011 23:27:00 [XBMC] JSON RPC call: {
  "jsonrpc": "2.0",
  "method": "JSONRPC.Ping",
  "id": 1
}
16.01.2011 23:27:00 [XBMC] JSON RPC response: {
   "id" : 1,
   "jsonrpc" : "2.0",
   "result" : "pong"
}

16.01.2011 23:27:00 [XBMC] XbmcPlayer.GetActivePlayers()
16.01.2011 23:27:00 [XBMC] Calling JSON RPC method "Player.GetActivePlayers"...
16.01.2011 23:27:00 [XBMC] JSON RPC call: {
  "jsonrpc": "2.0",
  "method": "Player.GetActivePlayers",
  "id": 2
}
16.01.2011 23:27:00 [XBMC] JSON RPC response: {
   "id" : 2,
   "jsonrpc" : "2.0",
   "result" : {
      "audio" : false,
      "picture" : false,
      "video" : false
   }
}

16.01.2011 23:27:00 [XBMC Handler] Start working
16.01.2011 23:27:00 [XBMC] XbmcSystem.GetInfoLabels(System.Time(hh), System.Time(mm), System.Time(ss))
16.01.2011 23:27:00 [XBMC] Calling JSON RPC method "System.GetInfoLabels"...
16.01.2011 23:27:00 [XBMC] JSON RPC call: {
  "jsonrpc": "2.0",
  "method": "System.GetInfoLabels",
  "params": [
    "System.Time(hh)",
    "System.Time(mm)",
    "System.Time(ss)"
  ],
  "id": 3
}
16.01.2011 23:27:00 [XBMC] JSON RPC response: {
   "id" : 3,
   "jsonrpc" : "2.0",
   "result" : {
      "System.Time(hh)" : "23",
      "System.Time(mm)" : "27",
      "System.Time(ss)" : "00"
   }
}

16.01.2011 23:27:00 [XBMC Handler] Update
16.01.2011 23:27:00 [XBMC] XbmcJsonRpcConnection.IsAlive
16.01.2011 23:27:00 [XBMC] XbmcJsonRpc.Ping()
16.01.2011 23:27:00 [XBMC] Calling JSON RPC method "JSONRPC.Ping"...
16.01.2011 23:27:00 [XBMC] JSON RPC call: {
  "jsonrpc": "2.0",
  "method": "JSONRPC.Ping",
  "id": 4
}
16.01.2011 23:27:00 [XBMC] JSON RPC response: {
   "id" : 4,
   "jsonrpc" : "2.0",
   "result" : "pong"
}

16.01.2011 23:27:00 [GUI] Connection with XBMC established
16.01.2011 23:27:00 [XBMC] XbmcGeneral.BuildVersion
16.01.2011 23:27:00 [XBMC] XbmcSystem.GetInfoLabel(System.BuildVersion)
16.01.2011 23:27:00 [XBMC] Calling JSON RPC method "System.GetInfoLabels"...
16.01.2011 23:27:00 [XBMC] JSON RPC call: {
  "jsonrpc": "2.0",
  "method": "System.GetInfoLabels",
  "params": [
    "System.BuildVersion"
  ],
  "id": 5
}
16.01.2011 23:27:00 [XBMC Handler] Updating icons
16.01.2011 23:27:00 [XBMC Handler] Displaying Idle
16.01.2011 23:27:00 [XBMC] JSON RPC response: {
   "id" : 5,
   "jsonrpc" : "2.0",
   "result" : {
      "System.BuildVersion" : "10.0 r35647"
   }
}

16.01.2011 23:27:00 [XBMC] XbmcGeneral.BuildDate
16.01.2011 23:27:00 [XBMC] XbmcSystem.GetInfoLabel(System.BuildDate)
16.01.2011 23:27:00 [XBMC] Calling JSON RPC method "System.GetInfoLabels"...
16.01.2011 23:27:00 [XBMC] JSON RPC call: {
  "jsonrpc": "2.0",
  "method": "System.GetInfoLabels",
  "params": [
    "System.BuildDate"
  ],
  "id": 6
}
16.01.2011 23:27:00 [XBMC] JSON RPC response: {
   "id" : 6,
   "jsonrpc" : "2.0",
   "result" : {
      "System.BuildDate" : "Dec 17 2010"
   }
}

16.01.2011 23:27:00 [GUI] Initializing iMON
16.01.2011 23:27:00 [iMON] IMON_Display_Init(66024, 37428)
16.01.2011 23:27:00 [iMON] Message received: PluginSuccess(2)
16.01.2011 23:27:00 [iMON] State changed
16.01.2011 23:27:00 [GUI] iMON LCD initialized
16.01.2011 23:27:00 [Display Handler] Start working
16.01.2011 23:27:00 [iMON] IMON_Display_SetLcdSpeakerIcon(10000000, 10000000)
16.01.2011 23:27:00 [iMON] IMON_Display_SetLcdSpeakerIcon(10000000, 10000000)
16.01.2011 23:27:00 [iMON] IMON_Display_SetLcdSpeakerIcon(10000001, 10000001)
16.01.2011 23:27:00 [iMON] IMON_Display_SetLcdSpeakerIcon(10000011, 10000011)
16.01.2011 23:27:00 [iMON] IMON_Display_SetLcdSpeakerIcon(10001011, 10001011)
16.01.2011 23:27:00 [iMON] IMON_Display_SetLcdSpeakerIcon(10101011, 10101011)
16.01.2011 23:27:00 [iMON] IMON_Display_SetLcdSpeakerIcon(11101011, 11101011)
16.01.2011 23:27:01 [Display Handler] Setting text to "23:27:01"
16.01.2011 23:27:01 [Display Handler] LCD.SetText: 23:27:01
16.01.2011 23:27:01 [iMON] IMON_Display_SetLcdText(23:27:01)
16.01.2011 23:27:02 [Display Handler] Setting text to "23:27:02"
16.01.2011 23:27:02 [Display Handler] LCD.SetText: 23:27:02
16.01.2011 23:27:02 [iMON] IMON_Display_SetLcdText(23:27:02)
16.01.2011 23:27:03 [Display Handler] Setting text to "23:27:03"
16.01.2011 23:27:03 [Display Handler] LCD.SetText: 23:27:03
16.01.2011 23:27:03 [iMON] IMON_Display_SetLcdText(23:27:03)
16.01.2011 23:27:04 [Display Handler] Setting text to "23:27:04"
16.01.2011 23:27:04 [Display Handler] LCD.SetText: 23:27:04
16.01.2011 23:27:04 [iMON] IMON_Display_SetLcdText(23:27:04)
16.01.2011 23:27:05 [Display Handler] Setting text to "23:27:05"
16.01.2011 23:27:05 [Display Handler] LCD.SetText: 23:27:05
16.01.2011 23:27:05 [iMON] IMON_Display_SetLcdText(23:27:05)
(...)
16.01.2011 23:27:40 [Display Handler] Setting text to "23:27:40"
16.01.2011 23:27:40 [Display Handler] LCD.SetText: 23:27:40
16.01.2011 23:27:40 [iMON] IMON_Display_SetLcdText(23:27:40)
16.01.2011 23:27:40 [XBMC] JSON RPC Announcement received: {
   "jsonrpc" : "2.0",
   "method" : "Announcement",
   "params" : {
      "message" : "ApplicationStop",
      "sender" : "xbmc"
   }
}

16.01.2011 23:27:40 [XBMC] Closing the connection
16.01.2011 23:27:40 [GUI] XBMC has been closed
16.01.2011 23:27:40 [XBMC Handler] Update
16.01.2011 23:27:40 [Display Handler] Setting text to "XBMC Shutdown"
16.01.2011 23:27:40 [XBMC Handler] Update
16.01.2011 23:27:40 [Display Handler] LCD.SetText: XBMC Shutdown
16.01.2011 23:27:40 [XBMC Handler] Stop working
16.01.2011 23:27:40 [iMON] IMON_Display_SetLcdText(XBMC Shutdown)
16.01.2011 23:27:41 [Display Handler] Setting text to "23:27:41"
16.01.2011 23:27:41 [Display Handler] LCD.SetText: 23:27:41
16.01.2011 23:27:41 [iMON] IMON_Display_SetLcdText(23:27:41)
16.01.2011 23:27:42 [Display Handler] Setting text to "23:27:42"
16.01.2011 23:27:42 [Display Handler] LCD.SetText: 23:27:42
16.01.2011 23:27:42 [iMON] IMON_Display_SetLcdText(23:27:42)
16.01.2011 23:27:42 [GUI] Uninitializing iMON
16.01.2011 23:27:42 [iMON] LCD.Reset()
16.01.2011 23:27:42 [iMON] IMON_Display_SetLcdText()
16.01.2011 23:27:43 [iMON] LCD.Icons.Reset()
16.01.2011 23:27:43 [iMON] IMON_Display_SetLcdAllIcons(False)
16.01.2011 23:27:43 [iMON] IMON_Display_Uninit()
16.01.2011 23:27:43 [iMON] State changed
16.01.2011 23:27:43 [GUI] iMON uninitialized
16.01.2011 23:27:43 [Display Handler] Stop working
16.01.2011 23:27:43 [Display Handler] Setting text to "23:27:43"
(...)
16.01.2011 23:27:47 [Display Handler] Setting text to "23:27:47"
16.01.2011 23:27:48 [GUI] Trying to auto-connect with XBMC
16.01.2011 23:27:48 [XBMC] XbmcJsonRpcConnection.IsAlive
16.01.2011 23:27:48 [GUI] Asynchronous starting to connect with XBMC
16.01.2011 23:27:48 [XBMC] Opening a connection to XBMC
16.01.2011 23:27:48 [Display Handler] Setting text to "23:27:48"
16.01.2011 23:27:49 [GUI] Connection with XBMC failed
16.01.2011 23:27:49 [Display Handler] Setting text to "23:27:49"
(...)
16.01.2011 23:27:53 [Display Handler] Setting text to "23:27:53"
16.01.2011 23:27:54 [GUI] Trying to auto-connect with XBMC
16.01.2011 23:27:54 [XBMC] XbmcJsonRpcConnection.IsAlive
16.01.2011 23:27:54 [GUI] Asynchronous starting to connect with XBMC
16.01.2011 23:27:54 [XBMC] Opening a connection to XBMC
16.01.2011 23:27:55 [Display Handler] Setting text to "23:27:54"
16.01.2011 23:27:55 [GUI] Connection with XBMC failed
16.01.2011 23:27:56 [Display Handler] Setting text to "23:27:55"
(...)
16.01.2011 23:28:00 [Display Handler] Setting text to "23:27:59"
16.01.2011 23:28:00 [GUI] Trying to auto-connect with XBMC
16.01.2011 23:28:00 [XBMC] XbmcJsonRpcConnection.IsAlive
16.01.2011 23:28:00 [GUI] Asynchronous starting to connect with XBMC
16.01.2011 23:28:00 [XBMC] Opening a connection to XBMC
16.01.2011 23:28:01 [Display Handler] Setting text to "23:28:00"
16.01.2011 23:28:01 [GUI] Connection with XBMC failed
16.01.2011 23:28:02 [Display Handler] Setting text to "23:28:01"
(...)
16.01.2011 23:28:05 [Display Handler] Setting text to "23:28:04"
16.01.2011 23:28:06 [GUI] Trying to auto-connect with XBMC
16.01.2011 23:28:06 [XBMC] XbmcJsonRpcConnection.IsAlive
16.01.2011 23:28:06 [GUI] Asynchronous starting to connect with XBMC
16.01.2011 23:28:06 [XBMC] Opening a connection to XBMC
16.01.2011 23:28:06 [Display Handler] Setting text to "23:28:05"

This time the display showed: 23:27:01 - but the time was not refreshed, so was stuck to this output... Maybe the debug.log is helpful (remark: I have shorten the debug.log with "(...)").

Thanks and best regards,
Markus
When booting from hibernation mode,
the program does not communicate with XBMC.
Only works from the total shutdown.

This happens to someone? Huh

Greetings.
Montellese

I just wanna say thank you. 2 hour ago my imon ultrabay arrived to home. And i did install. Then i found your program. After installing and trying i cant say anything. Its just amazing.
Really working very good.

PS: One question. I didnt read all pages. When navigating XBMC menu I see system clock. Can I see menu navigation. It will be great. If it will be possible i will never turn on my tv for listening music over my z-5500.

Thank you again.
I'm not sure if this issue has been reported or not, but I find that when I am in XBMC that the time is displayed 12 hours ahead. i.e if it' 9:56PM, the VFD dispay will show 9:56AM when using running XBMC with the XBMC IMON Plugin. When i close XBMC, the time will be displayed correctly.

Debug log can be found here

http://pastebin.com/pzvybpJw
Love the new version!
Schumi Wrote:PS: One question. I didnt read all pages. When navigating XBMC menu I see system clock. Can I see menu navigation. It will be great. If it will be possible i will never turn on my tv for listening music over my z-5500..

Enable "Control Mode" in the XBMC settings of XBMC on iMON to see the label of the currently active item in your XBMC interface.
Montellese Wrote:Enable "Control Mode" in the XBMC settings of XBMC on iMON to see the label of the currently active item in your XBMC interface.

`ello Montellese

Ur plugin working really great and I love it Big Grin
But I have 1 question/problem!
When I close XBMC my iMON display stays stuck with text of last XBMC window Confused
It does not switch on idle clock or idle text.
I use ur last version of plugin and XBMCdharma of course
For some reason, when XBMC is started, the display switches to the default text "XBMC" (wich is obviously a good thing). But when I start a movie or serie episode, the display does not show information on what's playing. It still shows only XBMC. Also, when I quit XBMC, it doesn't switch back to the default iMON information, XBMC on iMON stays active with XBMC on the display. When I check the link http://[IP of XBMC MACHINE]/xbmcCmds/xb...tlyPlaying (found in an earlier post in this topic) the information on that page is correct. So for some reasen XBMC on iMON does detect that XBMC is started, but cannot show information from XBMC.

XBMC remote For Android does show the correct information, so it is provided by XMBC. I'm running Dharma final on Windows 7 ultimate 64bit.

Any hints/tips/tricks?
Hey everyone

sorry for letting you waiting but I got a lot going on currently so it might take a while till I get the time to really look at your issues.

Zrino Wrote:When I close XBMC my iMON display stays stuck with text of last XBMC window Confused
It does not switch on idle clock or idle text.
This happens to me sometimes as well but not always. I'll look into it.

Wummeke Wrote:For some reason, when XBMC is started, the display switches to the default text "XBMC" (wich is obviously a good thing). But when I start a movie or serie episode, the display does not show information on what's playing. It still shows only XBMC. Also, when I quit XBMC, it doesn't switch back to the default iMON information, XBMC on iMON stays active with XBMC on the display. When I check the link http://[IP of XBMC MACHINE]/xbmcCmds/xb...tlyPlaying (found in an earlier post in this topic) the information on that page is correct. So for some reasen XBMC on iMON does detect that XBMC is started, but cannot show information from XBMC.

Do you have any program running that uses port 9090? If so it blocks XBMC from informing its clients about state changes and XBMC on iMON won't do anything without being notified by XBMC. Try starting XBMC, start playing something and then start XBMC on iMON and you should see the information but it won't update. Furthermore the link you gave points to XBMC HTTP API but XBMC on iMON uses the new JSON RPC API so that is no indication that it works.
PatOso Wrote:When booting from hibernation mode,
the program does not communicate with XBMC.
Only works from the total shutdown.

This happens to someone? Huh

Greetings.

Same thing here pretty much. If I suspend my machine and resume, the iMon display is okay. However, if I suspend and then resume a second time, the program stops communicating with XBMC and refuses to connect. I then have to close XBMC and restart it again for the program to work.
Montellese Wrote:Do you have any program running that uses port 9090? If so it blocks XBMC from informing its clients about state changes and XBMC on iMON won't do anything without being notified by XBMC. Try starting XBMC, start playing something and then start XBMC on iMON and you should see the information but it won't update. Furthermore the link you gave points to XBMC HTTP API but XBMC on iMON uses the new JSON RPC API so that is no indication that it works.

Does it only listen to port 9090? I have SABnzbd+ running there. I had XBMC set to port 80 at first (with the described problems), now I've changed the port in XBMC to 8080 and XBMC on iMON does now display movie and series information. So I went back to SABnzbd, set it to port 9191 and set XBMC and XBMC on iMON to port 9090.

However, when I stop the movie and start another one, XBMC on iMON does not discover that the movie is stopped, and also the new movie is not shown. In fact, even after shutting down XBMC the display still shows that the first movie is running. The only way to solve this is by shutting down XBMC on iMON completely.

Edit:
Ok, After reading this topic again I have one question: in the opening post you say that port 9090 is hard coded in XBMC, however, I can change this port in the network settings op XBMC. If I change the port to another number (I've tried 80, 8080, and some others) there is no information shown on the display, unless I change the port in XBMC on iMON to the exact same port. I've tried port 80 in XBMC and port 9090 in XBMC on iMON, and that doesn't work. Perhaps it's something that should be mentioned in the README that the ports in XBMC and XBMC on iMON should be the same. It does not explicitly say so at this moment.
Well it's a bit more complicated as there actually are 2. The port of the webinterface and the JSON RPC API is the one you can define in the XBMC settings. I have it set to 8080 and whatever you choose there you need to set this in XBMC on iMON as well. The second port is hardcoded in XBMC to port 9090 and cannot be configured, neither in XBMC nor in XBMC on iMON (because it can't be changed in XBMC anyway). Problem with port 9090 is, that other apps like SABnzbd+ use port 9090 as well and you can't have two apps using the same port.

So here is what you should do:
1. Go to XBMC settings and set the port to something like 8080 (not 9090)
2. Go to XBMC on iMON and set the same port
3. Go to SABnzbd+ (or whatever uses port 9090) and set the port to something else like 9091.

Now XBMC on iMON should work as expected.
Firstly thank you for all your hard work. This app is fantastic.

I just have a few requests, read pretty much the whole thread and saw you were open to them.

I really like the clock option and the navigation option (Control mode) but I cant have both. Could you incorporate a 5-10 second timeout on Control Mode to then switch to clock?

Would it be possible for an eventghost plugin to enable some remote control functionality. It would be good be able to switch the display part way through watching a film to see the time, read the latest update on an rss feed or something else entirely.
If this is unlikely how about some hotkeys that way I could program eventghost to send specific keycommands instead of direct functionality with your tool.

Again, thanks for the what you have done.
Hi Montellese, (and all of you guys Rolleyes)

I receive my new HTPC case tomorrow, with integrated Imon VFD.
I'm looking the best way for using it with XBMC.
Soundgraph released a beta version of Imon Manager with XBMC support.
It seems a little buggy according to the official forum.

So what is the best solution to make XBMC compatible with IMon ?

Imon manager only ?
Imon manager + your software ?
Eventghost + your software ?

And what can I expect ? (Runnning title info, disc icon, equalizer...)

Thanks for your answer, and your great job !
mika91 Wrote:Soundgraph released a beta version of Imon Manager with XBMC support.
It seems a little buggy according to the official forum.
I haven't used it since the first time it was added because it only showed the filename of the currently playing file so I can't say much about the quality of the latest version.

mika91 Wrote:Imon manager only ?
Try it out and see if it is enough for you.
mika91 Wrote:Imon manager + your software ?
Eventghost + your software ?
My software needs imon manager to be running (with XBMC support disabled and plugin api enabled).

mika91 Wrote:And what can I expect ? (Runnning title info, disc icon, equalizer...)
You can customize the text visible on your display while playing a movie/tv episode/music video/song with custom text and certain placeholders like title, duration, plot (whatever XBMC offers). Furthermore you get (customizable) support for the video/audio codec icons and the context icons at the top (Movie, Tv, Music, ...). The disc icon can be enabled (and spinned) in the latest version as well. If you enable "control mode" you can even see the the label of the currently active GUI element on your display and can control XBMC without having to turn on your display.
Unfortunately there's no equalizer functionality yet.