New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Xbmc checker doesn't work on Raspberry Pi B+ with OpenElec 6.0.0 and WS2801 #440

Closed
rudelm opened this Issue Jan 1, 2016 · 5 comments

Comments

Projects
None yet
3 participants
@rudelm

rudelm commented Jan 1, 2016

Happy new year!

I'm trying to configure my 104 WS2801 LEDs for use with my Raspberry Pi B+ with OpenElec 6.0.0. I had a working setup with 50 LEDs and upgraded to 104 LEDs. Together with this change I've updated my OpenElec installation from 5 to 6 and created a new hyperion.config.json.

Hyperion is working fine: I see the rainbow swirl start effect after openelec booted Kodi and I can control Hyperion with Hyperion Remote on iOS. I can also set colors from the console, so the hardware is configured correctly.

However, I'm not able to see any lights movement when I play any video on Kodi on my Rasbperry Pi B+. The LEDs stay black. This only happens for video playback directly on the Pi.

If I use the hyperion kodi addon on my Mac, I can easily connect to Hyperion and I see the output of Video played back by Kodi on my Mac.

I've enabled System, Services, Remote and Webserver so that access from outside and inside are allowed. I can control the Pi from webbrowser or from the Kodi iOS app.

So my assumption is that something stopped working with the xbmc checker of Hyperion. It cannot connect to the local Kodi installation and cannot react to any Kodi command or information.

Any help is highly appreciated!

Here's the relevant part of the xmbc checker config and the frame grabber:

/// The black border configuration, contains the following items: 
    ///  * enable    : true if the detector should be activated
    ///  * threshold : Value below which a pixel is regarded as black (value between 0.0 and 1.0)
    "blackborderdetector" : 
    {
        "enable" : true,
        "threshold" : 0.01
    },

    /// The configuration of the effect engine, contains the following items: 
    ///  * paths        : An array with absolute location(s) of directories with effects 
    ///  * bootsequence : The effect selected as 'boot sequence'
    "effects" : 
    {
        "paths" : 
        [
            "/storage/hyperion/effects"
        ]
    },

    "bootsequence" : 
    {
        "effect" : "Rainbow swirl fast",
        "duration_ms" : 3000
    },

    ///  The configuration for the frame-grabber, contains the following items: 
    ///   * width        : The width of the grabbed frames [pixels]
    ///   * height       : The height of the grabbed frames [pixels]
    ///   * frequency_Hz : The frequency of the frame grab [Hz]
    "framegrabber" : 
    {
        "width" : 64,
        "height" : 64,
        "frequency_Hz" : 10.0
    },

    /// The configuration of the XBMC connection used to enable and disable the frame-grabber. Contains the following fields: 
    ///  * xbmcAddress       : The IP address of the XBMC-host
    ///  * xbmcTcpPort       : The TCP-port of the XBMC-server
    ///  * grabVideo         : Flag indicating that the frame-grabber is on(true) during video playback
    ///  * grabPictures      : Flag indicating that the frame-grabber is on(true) during picture show
    ///  * grabAudio         : Flag indicating that the frame-grabber is on(true) during audio playback
    ///  * grabMenu          : Flag indicating that the frame-grabber is on(true) in the XBMC menu
    ///  * grabScreensaver   : Flag indicating that the frame-grabber is on(true) when XBMC is on screensaver
    ///  * enable3DDetection : Flag indicating that the frame-grabber should switch to a 3D compatible modus if a 3D video is playing
    "xbmcVideoChecker" : 
    {
        "xbmcAddress" : "127.0.0.1",
        "xbmcTcpPort" : 9090,
        "grabVideo" : true,
        "grabPictures" : true,
        "grabAudio" : true,
        "grabMenu" : true,
        "grabScreensaver" : false,
        "enable3DDetection" : true
    },

    /// The configuration of the Json server which enables the json remote interface
    ///  * port : Port at which the json server is started
    "jsonServer" : 
    {
        "port" : 19444
    },

    /// The configuration of the Proto server which enables the protobuffer remote interface
    ///  * port : Port at which the protobuffer server is started
    "protoServer" : 
    {
        "port" : 19445
    },
@penfold42

This comment has been minimized.

Show comment
Hide comment
@penfold42

penfold42 Jan 1, 2016

Contributor

If you start it directly from the command line, what output does it write to the terminal ?

also, "Allow programs on other systems to control Kodi" must be checked in System/Settings/Services/Remote control.

Contributor

penfold42 commented Jan 1, 2016

If you start it directly from the command line, what output does it write to the terminal ?

also, "Allow programs on other systems to control Kodi" must be checked in System/Settings/Services/Remote control.

@rudelm

This comment has been minimized.

Show comment
Hide comment
@rudelm

rudelm Jan 1, 2016

That option is checked. Here's the output (redacted the paths):

Initializing Python interpreter
Hyperion created and initialised
run effect Rainbow swirl fast on channel 0
Boot sequence(Rainbow swirl fast) created and started
XBMC video checker created and started
Json server created and started on port 19444
Proto server created and started on port 19445
XBMC Connected
Message from XBMC: {"id":666,"jsonrpc":"2.0","result":[]}
XBMC checker: switching to OFF mode
Message from XBMC: {"id":668,"jsonrpc":"2.0","result":{"System.ScreenSaverActive":true}}
Message from XBMC: {"id":670,"jsonrpc":"2.0","result":{"version":{"major":15,"minor":2,"revision":"02e7013","tag":"stable"}}}
effect finished
Message from XBMC: {"jsonrpc":"2.0","method":"GUI.OnScreensaverDeactivated","params":{"data":{"shuttingdown":false},"sender":"xbmc"}}
Message from XBMC: {"jsonrpc":"2.0","method":"Playlist.OnClear","params":{"data":{"playlistid":1},"sender":"xbmc"}}
Message from XBMC: {"jsonrpc":"2.0","method":"Playlist.OnAdd","params":{"data":{"item":{"id":5782,"type":"episode"},"playlistid":1,"position":0},"sender":"xbmc"}}
Message from XBMC: {"jsonrpc":"2.0","method":"Player.OnPlay","params":{"data":{"item":{"id":5782,"type":"episode"},"player":{"playerid":1,"speed":1}},"sender":"xbmc"}}
Message from XBMC: {"id":666,"jsonrpc":"2.0","result":[{"playerid":1,"type":"video"}]}
XBMC checker: switching to VIDEO mode
Message from XBMC: {"id":667,"jsonrpc":"2.0","result":{"item":{"file":"smb://x.x.x.x/file.mp4","id":5782,"label":"Title","type":"episode"}}}
Message from XBMC: {"id":669,"jsonrpc":"2.0","result":{"stereoscopicmode":{"label":"Deaktiviert","mode":"off"}}}

So it seems to be talking to Kodi but I don't get the information for the color as it seems?

rudelm commented Jan 1, 2016

That option is checked. Here's the output (redacted the paths):

Initializing Python interpreter
Hyperion created and initialised
run effect Rainbow swirl fast on channel 0
Boot sequence(Rainbow swirl fast) created and started
XBMC video checker created and started
Json server created and started on port 19444
Proto server created and started on port 19445
XBMC Connected
Message from XBMC: {"id":666,"jsonrpc":"2.0","result":[]}
XBMC checker: switching to OFF mode
Message from XBMC: {"id":668,"jsonrpc":"2.0","result":{"System.ScreenSaverActive":true}}
Message from XBMC: {"id":670,"jsonrpc":"2.0","result":{"version":{"major":15,"minor":2,"revision":"02e7013","tag":"stable"}}}
effect finished
Message from XBMC: {"jsonrpc":"2.0","method":"GUI.OnScreensaverDeactivated","params":{"data":{"shuttingdown":false},"sender":"xbmc"}}
Message from XBMC: {"jsonrpc":"2.0","method":"Playlist.OnClear","params":{"data":{"playlistid":1},"sender":"xbmc"}}
Message from XBMC: {"jsonrpc":"2.0","method":"Playlist.OnAdd","params":{"data":{"item":{"id":5782,"type":"episode"},"playlistid":1,"position":0},"sender":"xbmc"}}
Message from XBMC: {"jsonrpc":"2.0","method":"Player.OnPlay","params":{"data":{"item":{"id":5782,"type":"episode"},"player":{"playerid":1,"speed":1}},"sender":"xbmc"}}
Message from XBMC: {"id":666,"jsonrpc":"2.0","result":[{"playerid":1,"type":"video"}]}
XBMC checker: switching to VIDEO mode
Message from XBMC: {"id":667,"jsonrpc":"2.0","result":{"item":{"file":"smb://x.x.x.x/file.mp4","id":5782,"label":"Title","type":"episode"}}}
Message from XBMC: {"id":669,"jsonrpc":"2.0","result":{"stereoscopicmode":{"label":"Deaktiviert","mode":"off"}}}

So it seems to be talking to Kodi but I don't get the information for the color as it seems?

@rudelm

This comment has been minimized.

Show comment
Hide comment
@rudelm

rudelm Jan 10, 2016

This seems to be an issue with OpenElec: I've tried OSMC with exact same hardware and software configuration and it worked without problems. Only thing is, that Hyperion with OSMC does not respect the configuration and always enable the LEDs in the kodi main menus :( Fixed that: OSMC had not set "Allow programs on other systems to control Kodi" by default.

rudelm commented Jan 10, 2016

This seems to be an issue with OpenElec: I've tried OSMC with exact same hardware and software configuration and it worked without problems. Only thing is, that Hyperion with OSMC does not respect the configuration and always enable the LEDs in the kodi main menus :( Fixed that: OSMC had not set "Allow programs on other systems to control Kodi" by default.

@tpmodding

This comment has been minimized.

Show comment
Hide comment
@tpmodding

tpmodding Feb 26, 2016

Collaborator

@rudelm did you fixed that problem? can it be closed?

Collaborator

tpmodding commented Feb 26, 2016

@rudelm did you fixed that problem? can it be closed?

@rudelm

This comment has been minimized.

Show comment
Hide comment
@rudelm

rudelm Feb 28, 2016

@tpmodding it didn't work for me with OpenElec 6.0.0, so I switched to OSMC where everything works. Maybe something changed with OpenElec 6.0.1, but I think this ticket can be closed then.

rudelm commented Feb 28, 2016

@tpmodding it didn't work for me with OpenElec 6.0.0, so I switched to OSMC where everything works. Maybe something changed with OpenElec 6.0.1, but I think this ticket can be closed then.

@rudelm rudelm closed this Feb 28, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment