RPI2 + Hyperion + OSMC

Yes, but it doesn’t works. It returns same error: xbmx connection error(0).

I found the solution! It works with the init script:

/etc/systemd/system/multi-user.target.wants/hyperion.service

[Unit] Description = hyperion After = mediacenter.service

[Service]
User = osmc
Group = osmc
Type = simple
ExecStart= /usr/bin/hyperiond /etc/hyperion.config.json
Restart = always
RestartSec = 1

[Install]
WantedBy = multi-user.target

When I try to install this way I always run in the following error:

ln: failed to create symbolic link ‘/etc/hyperion.config.json’: File exists
Installing startup script in init.d
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LC_TIME = “en”,
LC_MONETARY = “en”,
LC_ADDRESS = “en”,
LC_TELEPHONE = “en”,
LC_NAME = “en”,
LC_MEASUREMENT = “en”,
LC_IDENTIFICATION = “en”,
LC_NUMERIC = “en”,
LC_PAPER = “en”,
LANG = “C”
are supported and installed on your system.
perl: warning: Falling back to the standard locale (“C”).
insserv: warning: script ‘K01hyperion’ missing LSB tags and overrides
insserv: warning: script ‘hyperion’ missing LSB tags and overrides
osmc@osmc:~$

can someone help me out? Im running OSMC Alpha 4 on a PI2.

Nevermind it’s working now. Just had to set the locale

Hi!

Every thing seems to be working but the leds doesnt get on.

-No errors running the server, no errors executing the test, and the mobile app seems to connect to the server :frowning:

Is it possible that the problem is in the GPIO pins that I am using (6, 19, 23)?

I have a WS2801 led strip with the raspberri pi 2.

Thanks! :smile:

osmc@osmc:~$ sudo hyperiond  /etc/hyperion.config.json
Application build time: Jan 11 2015 16:59:41
QCoreApplication initialised
Selected configuration file: /etc/hyperion.config.json
ColorTransform 'default' => [0; 24]
Device configuration:
{
        "colorOrder" : "rgb",
        "name" : "MyPi",
        "output" : "/dev/spidev0.0",
        "rate" : 250000,
        "type" : "ws2801"
}

Black border threshold set to 0.01 (3)
Not creating any smoothing
Effect loaded: Knight rider
[...]
Effect loaded: Strobe white
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
Display opened with resolution: 1280x720
Frame grabber created and started
Json server created and started on port 19444
Proto server created and started on port 19445
XBMC Connection error (0)
BORDER SWITCH REQUIRED!!
CURRENT BORDER TYPE: unknown=0 hor.size=0 vert.size=0
effect finished 

osmc@osmc:~$ hyperion-remote --priority 50 --color red --duration 5000          Connected to localhost:19444
Set color to 255 0 0

Hi guys,
I just got my Raspberry 2, installed OSMC and I’m now trying to get Hyperion to work.
Before I had a Raspberry 1, runnnig RASPBMC and HYperion and it worked fine.

I tried the instructions here, but I think something is not working right.

I If I use the following command…

sudo apt-get install libqtcore4 libqtgui4 libqt4-network libusb-1.0-0 libprotobuf9 ca-certificates

… I’m asked it I want to continue. If I say Yes, it’s aborted.

Any Ideas?

Thank You!

OK, I got it fixed. I just had to press enter without pressing Y before.

Ok, I had to do an new install of OSMC and now I’m having the same issue as before.

It aborts the process at the same place , whether I type Y or whether I just press enter.

Any ideas?

SOLUTION: It seems to be related with my PC and putty. If I use my tablet too SSH into the raspberry it works.

OMG!.. I didn’t realize that the raspberry 2 have more GPIO pins than the raspberry Pi B, so I was plug in the wires in the wrong pins :frowning:

2 Likes

Cannot make Hyperion work again after fresh install of OSMC RC. With Alpha it was working. Setup is unchanged.

Seems the /dev/spidev0.0 can’t been accessed.

here my log:

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Sun Mar 15 07:13:14 2015 from 192.168.1.75
osmc@osmc:~$ sudo service hyperion stop
osmc@osmc:~$ sudo /usr/bin/hyperiond /etc/hyperion.config.json
Application build time: Mar  6 2015 20:57:44
QCoreApplication initialised
Selected configuration file: /etc/hyperion.config.json
ColorTransform 'default' => [0; 49]
Device configuration: 
{
	"colorOrder" : "rgb",
	"name" : "MyPi",
	"output" : "/dev/spidev0.0",
	"rate" : 250000,
	"type" : "`indent preformatted text by 4 spaces`ws2801"
}

Failed to open device('/dev/spidev0.0') 
Black border threshold set to 0.01 (3)
Not creating any smoothing
Effect loaded: Knight rider
Effect loaded: Blue mood blobs
Effect loaded: Cold mood blobs
Effect loaded: Full color mood blobs
Effect loaded: Green mood blobs
Effect loaded: Red mood blobs
Effect loaded: Warm mood blobs
Effect loaded: Rainbow mood
Effect loaded: Rainbow swirl fast
Effect loaded: Rainbow swirl
Effect loaded: Snake
Effect loaded: Strobe blue
Effect loaded: Strobe Raspbmc
Effect loaded: Strobe white
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
Display opened with resolution: 1920x1080
Frame grabber 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":false}}
Message from XBMC: {"id":670,"jsonrpc":"2.0","result":{"version":{"major":14,"minor":1,"revision":"Unknown","tag":"stable"}}}
effect finished

There is probably an SPI DT overlay to enable

Sam

Hi Sam thanks for your answer.
It all worked fine in Alpha 4. Is there anything I can try/do? Otherwise I guess I can just wait for the next release which will be the finale. Hope SPI will work later.

SPI does work, but you need to enable it.

Ok sorry than I just said it wrong. Because I have no idea how to enable it and in Alpha 4 it just worked, the only thing I can do is wait or go back to Alpha 4.

Hi, this isn’t a bug so we’re not going to fix this. You just need to enable Device Tree Overlays. See

If you did not understand sam you just need to add the following line in you config.txt file

dtparam=spi=on
2 Likes

Thanks this worked. I already added this line but there was a typing error that’s why SPI wasn’t enabled.

cant get my hyperion to work on new rc version although it does work on raspbmc version ay help guys heres what was in ssh many thanks http://paste.osmc.io/ziraworale

@aberboy77
The posts just above yours explains how to enable SPI which you have not done.
You should probably start there…

thanks miappa but whats spi lol noob here where in config txt do I put that thanks ?