1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

SOLVED Kodi checker not functioning

Discussion in 'Software Support' started by bjn, 12 January 2017.

  1. bjn

    bjn New Member

    Messages:
    4
    I'm running OSMC on Raspberry Pi 3. I have activated the Kodi checker, pointed it at 127.0.0.1 port 8262 (this is the port my Kodi HTTP server is configured to) and set it for now to capture on video but not when paused.

    However, the lights are on both when paused and when playing a video.

    Kodi's HTTP server is definitely set up to allow connections -- I can tell it to update via JSONRPC from a commandline script on the Raspberry Pi itself or from another machine. I can also use the "Kore" remote on my phone, and such.

    Hyperion's log output says on startup that the Kodi checker has started (INFO: Kodi checker created and started), and that it connected (KODICHECK INFO: Kodi Connected), but with verbose JSONRPC logging enabled in Kodi, Kodi's log doesn't actually show anything which is coming from Hyperion, as far as I can tell. There are then no other Kodi-checker-related messages in the Hyperion log until Hyperion is quit, at which point it says it disconnected from Kodi.

    The IP and port are definitely correct; I don't have a username or password set. What else might be wrong?
     
  2. TPmodding

    TPmodding Administrator Staff Member Administrator

    Messages:
    1,372
    Hardware:
    RPi1/Zero, RPi2, RPi3, +Arduino, +nodeMCU/ESP8266
    Config-file please
     
  3. bjn

    bjn New Member

    Messages:
    4
    Sure, here it is:

    Code:
    {
            // DEVICE CONFIGURATION
            "device" :
            {
                    "name"       : "MyHyperionConfig",
                    "type"       : "lightpack",
                    "output"     : "",
                    "colorOrder" : "rgb"
            },
    
            // COLOR CALIBRATION CONFIG
            "color" :
            {
                    "channelAdjustment" :
                    [
                            {
                                    "id"   : "default",
                                    "leds" : "*",
                                    "pureRed" :
                                    {
                                            "redChannel"            : 255,
                                            "greenChannel"          : 0,
                                            "blueChannel"           : 0
                                    },
                                    "pureGreen" :
                                    {
                                            "redChannel"            : 0,
                                            "greenChannel"          : 255,
                                            "blueChannel"           : 0
                                    },
                                    "pureBlue" :
                                    {
                                            "redChannel"            : 0,
                                            "greenChannel"          : 0,
                                            "blueChannel"           : 255
                                    }
                            }
                    ],
                    "temperature" :
                    [
                            {
                                    "id"   : "default",
                                    "leds" : "*",
                                    "correctionValues" :
                                    {
                                            "red"   : 255,
                                            "green" : 255,
                                            "blue"  : 255
                                    }
                            }
                    ],
                    "transform" :
                    [
                            {
                                    "id"   : "default",
                                    "leds" : "*",
                                    "hsl" :
                                    {
                                            "saturationGain"        : 1.0000,
                                            "luminanceGain"         : 1.0000,
                                            "luminanceMinimum"              : 0.0000
                                    },
                                    "red" :
                                    {
                                            "threshold"     : 0.0000,
                                            "gamma"         : 2.5000
                                    },
                                    "green" :
                                    {
                                            "threshold"     : 0.0000,
                                            "gamma"         : 2.5000
                                    },
                                    "blue" :
                                    {
                                            "threshold"     : 0.0000,
                                            "gamma"         : 2.5000
                                    }
                            }
                    ],
            // SMOOTHING CONFIG
                    "smoothing" :
                    {
                            "type"            : "linear",
                            "time_ms"         : 75,
                            "updateFrequency" : 60.0000,
                            "updateDelay"     : 0
                    }
            },
    
            // NO V4L2 GRABBER CONFIG
            // FRAME GRABBER CONFIG
            "framegrabber" :
            {
                    "width" : 64,
                    "height" : 64,
                    "frequency_Hz" : 40.0,
                    "priority" : 890
            },
    
            // BLACKBORDER CONFIG
            "blackborderdetector" :
            {
                    "enable" : true,
                    "threshold" : 0.0,
                    "unknownFrameCnt" : 600,
                    "borderFrameCnt" : 50,
                    "maxInconsistentCnt" : 10,
                    "blurRemoveCnt" : 1,
                    "mode" : "default"
            },
    
            // KODI CHECK CONFIG
            "xbmcVideoChecker" :
            {
                    "xbmcAddress" : "127.0.0.1",
                    "xbmcTcpPort" : 8262,
                    "grabVideo" : true,
                    "grabPictures" : true,
                    "grabAudio" : true,
                    "grabMenu" : false,
                    "grabPause" : false,
                    "grabScreensaver" : false,
                    "enable3DDetection" : true
            },
    
            // BOOTEFFECT CONFIG
            "bootsequence" :
            {
                    "color" : [0,0,0],
                    "effect" : "Rainbow swirl fast",
                    "duration_ms" : 3000,
                    "priority" : 700
            },
    
            // JSON SERVER CONFIG
            "jsonServer" :
            {
                    "port" : 19444
            },
    
            // PROTO SERVER CONFIG
            "protoServer" :
            {
                    "port" : 19445
            },
    
            // EFFECT PATH
            "effects" :
            {
                    "paths" :
                    [
                            "/storage/hyperion/effects",
                            "/usr/share/hyperion/effects"
                    ]
            },
    
            // NO BOBLIGHT SERVER CONFIG
            // NO JSON/PROTO FORWARD CONFIG
    
            // LED CONFIGURATION
            "leds" :
            [
                    {
                            "index" : 0,
                            "hscan" : { "minimum" : 0.7500, "maximum" : 1.0000 },
                            "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
                    },
                    {
                            "index" : 1,
                            "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
                            "vscan" : { "minimum" : 0.5000, "maximum" : 1.0000 }
                    },
                    {
                            "index" : 2,
                            "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
                            "vscan" : { "minimum" : 0.0000, "maximum" : 0.5000 }
                    },
                    {
                            "index" : 3,
                            "hscan" : { "minimum" : 0.7500, "maximum" : 1.0000 },
                            "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
                    },
                    {
                            "index" : 4,
                            "hscan" : { "minimum" : 0.5000, "maximum" : 0.7500 },
                            "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
                    },
                    {
                            "index" : 5,
                            "hscan" : { "minimum" : 0.2500, "maximum" : 0.5000 },
                            "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
                    },
                    {
                            "index" : 6,
                            "hscan" : { "minimum" : 0.0000, "maximum" : 0.2500 },
                            "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
                    },
                    {
                            "index" : 7,
                            "hscan" : { "minimum" : 0.0000, "maximum" : 0.0500 },
                            "vscan" : { "minimum" : 0.0000, "maximum" : 0.5000 }
                    },
                    {
                            "index" : 8,
                            "hscan" : { "minimum" : 0.0000, "maximum" : 0.0500 },
                            "vscan" : { "minimum" : 0.5000, "maximum" : 1.0000 }
                    },
                    {
                            "index" : 9,
                            "hscan" : { "minimum" : 0.0000, "maximum" : 0.2500 },
                            "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
                    }
            ],
    
            "endOfJson" : "endOfJson"
    }
     
  4. bjn

    bjn New Member

    Messages:
    4
    Any thoughts?
     
  5. Brindosch

    Brindosch Active Member

    Messages:
    678
    Hardware:
    RPi1/Zero, RPi2, RPi3, +nodeMCU/ESP8266
  6. bjn

    bjn New Member

    Messages:
    4
    That did it; thank you.

    I think this should be clarified in the documentation. Though yes, it does say TCP port, I wasn't aware that there were separate ports for the webserver and some other service. A webserver runs over TCP, and the JSON-RPC service runs over the webserver (or at least it can -- I use the webserver port in some of my JSON-RPC scripts), so I assumed TCP port meant webserver port.

    It might also be nice to provide some better error logging. As I said earlier I did have a debug message saying Hyperion had connected to Kodi, but then obviously nothing was happening beyond that. Some messaging here saying it's not getting responses, or bad responses, or whatever, would have helped debug.
     
  7. Brindosch

    Brindosch Active Member

    Messages:
    678
    Hardware:
    RPi1/Zero, RPi2, RPi3, +nodeMCU/ESP8266
    Indeed, the docu needs a hint for this and the connected message is just "wrong".
    Besides of that. We are not so happy with the current implementation. Adding more options/combinations on this base just bloats up Hyperion and could be better handled from kodi itself (as a kodi addon has better access to internals) and you are not forced to enable remote access.