Announcement

Collapse
No announcement yet.

Kodi/XBMC Plug-in - Feature Requests

Collapse
This is a sticky topic.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    I had the script run when XBMC player went to a "Playing" state. I tried adding a 5 sec wait time so maybe it would wait to load the movie details but still came up with 0's.

    Code:
    Jul-01 7:35:43 PM	 	XBMC Script	Aspect Ratio = 0
    Jul-01 7:35:43 PM	 	XBMC Script	Total Time in secs = 0
    Jul-01 7:35:43 PM	 	XBMC Script	Current Time in secs = 0
    Jul-01 7:35:43 PM	 	Event	Running script in background: C:/Program Files (x86)/HomeSeer HS3/scripts/Olag00officeAspectRatio.cs
    Jul-01 7:35:43 PM	 	Event	Event Trigger "XBMC XBMC Aspect Olag00Office"

    Comment


      Originally posted by olag00 View Post
      I had the script run when XBMC player went to a "Playing" state. I tried adding a 5 sec wait time so maybe it would wait to load the movie details but still came up with 0's.

      Code:
      Jul-01 7:35:43 PM         XBMC Script    Aspect Ratio = 0
      Jul-01 7:35:43 PM         XBMC Script    Total Time in secs = 0
      Jul-01 7:35:43 PM         XBMC Script    Current Time in secs = 0
      Jul-01 7:35:43 PM         Event    Running script in background: C:/Program Files (x86)/HomeSeer HS3/scripts/Olag00officeAspectRatio.cs
      Jul-01 7:35:43 PM         Event    Event Trigger "XBMC XBMC Aspect Olag00Office"
      try to run the event manually while the movie is playing
      also, double check the name of your Kodi player passed as the parameter of those functions, this should be the name you see in the config page

      Comment


        Same 0s when ran manually during movie playback. I can confirm the name of instance passed matches the config page.

        Comment


          I have quite a few Kodi players and I tried another one but it displays the same thing.

          Code:
          Jul-01 8:02:16 PM	 	XBMC Script	Aspect Ratio = 0
          Jul-01 8:02:16 PM	 	XBMC Script	Total Time in secs = 0
          Jul-01 8:02:16 PM	 	XBMC Script	Current Time in secs = 0
          Jul-01 8:02:16 PM	 	Event	Running script in background: C:/Program Files (x86)/HomeSeer HS3/scripts/familyAspectRatio.cs
          Jul-01 8:02:16 PM	 	Event	Event Trigger "XBMC XBMC Aspect Family"
          Code:
          public object Main(object[] Parms)
          {
              int currentTime = (int) hs.PluginFunction("XBMC", "", "GetCurrentTime", new object[] { "Family" });
              int totalTime = (int) hs.PluginFunction("XBMC", "", "GetTotalTime", new object[] { "Family" });
              double aspectRatio = (double) hs.PluginFunction("XBMC", "", "GetCurrentAspectRatio", new object[] { "Family" });
              
              hs.WriteLog("XBMC Script", "Current Time in secs = " + currentTime);
              hs.WriteLog("XBMC Script", "Total Time in secs = " + totalTime);
              hs.WriteLog("XBMC Script", "Aspect Ratio = " + aspectRatio);
              return 0;
          }
          Attached Files

          Comment


            Hi Spud this looks great, i will install and test later today.
            Thank you for adding the fanart Virtual Device!

            Did you get a chance to take a look at "Switch Player" restarting the media file rather than resuming from current point?

            As always thanks for your work! Its greatly appreciated.

            Comment


              Originally posted by olag00 View Post
              I have quite a few Kodi players and I tried another one but it displays the same thing.

              Code:
              Jul-01 8:02:16 PM         XBMC Script    Aspect Ratio = 0
              Jul-01 8:02:16 PM         XBMC Script    Total Time in secs = 0
              Jul-01 8:02:16 PM         XBMC Script    Current Time in secs = 0
              Jul-01 8:02:16 PM         Event    Running script in background: C:/Program Files (x86)/HomeSeer HS3/scripts/familyAspectRatio.cs
              Jul-01 8:02:16 PM         Event    Event Trigger "XBMC XBMC Aspect Family"
              Code:
              public object Main(object[] Parms)
              {
                  int currentTime = (int) hs.PluginFunction("XBMC", "", "GetCurrentTime", new object[] { "Family" });
                  int totalTime = (int) hs.PluginFunction("XBMC", "", "GetTotalTime", new object[] { "Family" });
                  double aspectRatio = (double) hs.PluginFunction("XBMC", "", "GetCurrentAspectRatio", new object[] { "Family" });
                  
                  hs.WriteLog("XBMC Script", "Current Time in secs = " + currentTime);
                  hs.WriteLog("XBMC Script", "Total Time in secs = " + totalTime);
                  hs.WriteLog("XBMC Script", "Aspect Ratio = " + aspectRatio);
                  return 0;
              }
              are the devices (title, media type, thumbnail, fan art, etc...) correctly updated when you play something on the Kodi player?
              could you add a call to GetCurrentMediaType() in your script so that we can compare to the status of the Media Type device.

              Comment


                all the devices created by the plugin do populate:

                I tried the new function and it returned "nothing"

                Code:
                public object Main(object[] Parms)
                {
                    int currentTime = (int) hs.PluginFunction("XBMC", "", "GetCurrentTime", new object[] { "Family" });
                    int totalTime = (int) hs.PluginFunction("XBMC", "", "GetTotalTime", new object[] { "Family" });
                    double aspectRatio = (double) hs.PluginFunction("XBMC", "", "GetCurrentAspectRatio", new object[] { "Family" });
                
                    string smediatype = (string) hs.PluginFunction("XBMC", "", "GetCurrentMediaType", new object[] { "Family" });
                
                   
                    
                    hs.WriteLog("XBMC Script", "Current Time in secs = " + currentTime);
                    hs.WriteLog("XBMC Script", "Total Time in secs = " + totalTime);
                    hs.WriteLog("XBMC Script", "Aspect Ratio = " + aspectRatio);
                    hs.WriteLog("XBMC Script", "Media Type = " + smediatype);
                
                    return 0;
                }
                Attached Files

                Comment


                  Not sure if it matters but I am using Chromeboxes with Kodi (OpenELEC) running on it. It currently boots directly to Kodi.

                  Comment


                    Originally posted by olag00 View Post
                    all the devices created by the plugin do populate:

                    I tried the new function and it returned "nothing"
                    hmm... weird it behave as if it was retrieving the values from another player, one that doesn't play anything

                    could you post your XBMC.ini

                    thanks

                    Comment


                      This should be it...

                      Code:
                      [GENERAL]
                      log_level=Info
                      [PLAYERS]
                      1###name=XBMC (HTPC-PC)
                      1###ipaddress=192.168.1.67
                      2###name=XBMCRPi1
                      2###ipaddress=10.0.0.50
                      3###name=XBMCRPi2
                      3###ipaddress=10.0.0.25
                      4###name=Billy-XBMC
                      4###ipaddress=10.0.0.4
                      5###name=XBMC (openelec)
                      5###ipaddress=10.0.0.27
                      6###name=XBMC (ChromeBox1)
                      6###ipaddress=10.0.0.27
                      7###name=ChromeBox1
                      7###ipaddress=10.0.0.27
                      8###name=XBMC (ChromeBox2)
                      8###ipaddress=10.0.0.28
                      9###name=Chromebox3
                      9###ipaddress=10.0.0.2
                      10###name=Chromebox4
                      10###ipaddress=192.168.1.100
                      1###username=xbmc
                      1###password=xbmc
                      11###name=ChromeBox1 #2
                      11###ipaddress=192.168.1.102
                      12###name=Kodi (OpenELEC)
                      12###ipaddress=192.168.1.71
                      13###name=Kodi (Game2)
                      13###ipaddress=192.168.1.71
                      14###name=Game2
                      14###ipaddress=192.168.1.103
                      15###name=Guest
                      15###ipaddress=192.168.1.71
                      16###name=Study
                      16###ipaddress=192.168.1.105
                      17###name=Family
                      17###ipaddress=192.168.1.106
                      18###name=Game1
                      18###ipaddress=192.168.1.71
                      19###name=MediaRoom
                      19###ipaddress=192.168.1.101
                      20###name=MasterBed
                      20###ipaddress=192.168.1.100
                      21###name=Game3
                      21###ipaddress=192.168.1.108
                      22###name=MasterBath
                      22###ipaddress=192.168.1.84
                      14###username=xbmc
                      14###password=xbmc
                      16###username=xbmc
                      16###password=xbmc
                      23###name=Kodi (localhost)
                      23###ipaddress=192.168.1.78
                      24###name=BillyOffice
                      24###ipaddress=192.168.1.102
                      24###username=xbmc
                      17###username=xbmc
                      19###username=xbmc

                      Comment


                        I have no idea what's going on.
                        It may be related to your large number of Kodi players, but I don't see where in the code it could go wrong.
                        Could you try to delete the ones that you don't use in the ini file, or ideally test with only one Kodi instance turned on, and an empty ini file?

                        Do you have some other XBMC events that could interfere? Any errors in the log?

                        Also could you make sure you only have one HSPI_XBMC.exe running in task manager?

                        Comment


                          Installed new version but now seeing issue
                          Thumbnails have stopped working in hstouch, and one instance keeps duplicating itself.

                          Ripping out n starting over.

                          Do you see the same issue?

                          Comment


                            There were two HSPI_XBMC instances in task manager. I ended both processes and restarted homeseer. I reran the script while movie was playing and everything works

                            Comment


                              Originally posted by OliP View Post
                              Installed new version but now seeing issue
                              Thumbnails have stopped working in hstouch, and one instance keeps duplicating itself.

                              Ripping out n starting over.

                              Do you see the same issue?
                              thumbnail not showing in HSTouch is fixed in version 3.0.0.32

                              not sure what you mean by "one instance keeps duplicating itself." ?

                              Comment


                                I'll download and give it a try - thanks for the quick turn around.
                                I suspect its my own fault on the duplicate, but XBMC-PI was picked up more than once, with the same IP within xbmc.ini

                                I'll report back

                                Comment

                                Working...
                                X