Корзина пуста

Настройка Lightpack для OpenElec

21.12.2016

https://techbits.io/getting-started-with-lightpack-boblight-raspberry-pi-2/

After setting up OpenELEC on the Raspberry Pi 2, the next step was to install and configure boblight to get my Lightpack unit working.

For those who are unaware, Lightpack is an aftermarket solution for dynamic TV/monitor backlighting, and was successfully funded via Kickstarter (I actually ordered my pack after the crowdfunding from Lightpack.tv). Boblight is “a collection of tools for driving lights connected to an external controller“. Boblight is the ‘go to’ controller for this kind of thing, due to there being a Kodi/XBMC plugin.

Installing the hardware

When you open the package, you’ll find one small square USB controller box, and lots of LED light strips. You’ll also have some small cable ties and other bits for tidily installing the cables. You need to stick the lights to the back of your screen, but before doing this, you’ll need to pick the layout. Technically, you could do this however you want as long as you match the boblightd config accordingly, however, picking one of the Lightpack suggested layouts will give an even result. I went for ‘Andromeda’. To see the other Lightpack suggestions (Pegasus and Cassiopeia), see the image of their quickstart guide at the end of this post.

Installing the software

You’ll need to install two Kodi plugins: XBMC Boblight and boblightd. XBMC Boblight is the plugin that will allow you to change settings, and boblightd is the backend service which actually sends commands to the USB Lightpack device. These options can be found using THESE SCREENSHOTS

Boblight1Boblight2Boblight3Boblight4Boblight5Boblight6Boblight7

Once installed, you need to modify the boblightd config. SSH into the Raspberry Pi (the following instructions are assuming you’re using a Mac or Linux, but should work equally well using something like Putty for Windows). The default username is ‘root’, and password is ‘openelec’. Obviously, substitute the IP/hostname of your Pi.

ssh root@192.168.0.100

For recent installations, you’ll be using Kodi, but for anything older, substitute ‘kodi’ in the following commands for ‘xbmc’:

cd .kodi/userdata/addon_data/service.multimedia.boblightd

 

cp boblight.conf backup.boblight.conf

 

nano boblight.conf

The above ‘cp’ it to make a backup of the config file; always good practice. Nano will let us edit the config file. If, like me, you went for the Andromeda layout, the easiest way is to copy my config from below (alternatively, download):

SEE BOBLIGHT.CONF

Once you’ve pasted that in, hit CTRL + X to exit, hit Y, then enter to save (if using nano). Now reboot the Raspberry Pi. If you’re still SSHd in as ‘root’, just type ‘reboot’, otherwise, use the shutdown/reboot option through the Kodi GUI.

Once booted back up, you should see a notification saying that boblight has loaded, and your lights should transition through red, green and blue. Your setup should now work, but you can tweak the settings in the ‘XBMC Boblight’ plugin. Click here to see how to navigate to the installed plugins.

XBMCBoblight5

General: for a standard installation, you probably won’t need to change anything here.

XBMCBoblight6

Other: choose whether you want a static light on when there’s no other content playing, and the colour.

XBMCBoblight9

Preset: You can choose a different preset for Movie, TVShows, LiveTV, Musicvideo and Files. Choose from ‘Fast’, ‘Slow’, ‘Disabled’ and ‘Custom’. As the name suggests, ‘Fast’ responds quickly to what’s on screen but can be quite jumpy, where ‘Slow’ takes a little longer but gives a smoother effect.

This should get Lightpack up and running on Kodi/XBMC (the guide is aimed at Raspberry Pi and Raspberry Pi 2, however, it should work on other Linux hardware, as well as Windows and OS X). If there’s anything I’ve missed, or if this was just really helpful, please leave a comment below.

Файл boblight.conf 

[global]
interface 127.0.0.1
port      19333

[device]
name            LP1
type            lightpack
#output          /dev/bus/usb/007/001
channels        30
prefix		41 64 61 00 18 4D
interval        20000
rate            115200
#debug           on #turn this on to see what it's doing with the serial port
delayafteropen	1000000


[color]
name            red
rgb             FF0000

[color]
name            green
rgb             00FF00

[color]
name            blue
rgb             0000FF

[light]
name bottom1
color red LP1 1
color green LP1 2
color blue LP1 3
hscan 0.0 50.0
vscan 85.0 100

[light]
name left1
color red LP1 4
color green LP1 5
color blue LP1 6
hscan 0 15.0
vscan 50.0 100.0

[light]
name left2
color red LP1 7
color green LP1 8
color blue LP1 9
hscan 0 15.0
vscan 0.0 50.0

[light]
name top1
color red LP1 10
color green LP1 11
color blue LP1 12
hscan 0.0 25.0
vscan 0 15.0

[light]
name top2
color red LP1 13
color green LP1 14
color blue LP1 15
hscan 25.0 50.0
vscan 0 15.0

[light]
name top3
color red LP1 16
color green LP1 17
color blue LP1 18
hscan 50.0 75.0
vscan 0 15.0

[light]
name top4
color red LP1 19
color green LP1 20
color blue LP1 21
hscan 75.0 100.0
vscan 0 15.0

[light]
name right1
color red LP1 22
color green LP1 23
color blue LP1 24
hscan 85.0 100
vscan 0.0 50.0

[light]
name right2
color red LP1 25
color green LP1 26
color blue LP1 27
hscan 85.0 100
vscan 50.0 100.0

[light]
name bottom2
color red LP1 28
color green LP1 29
color blue LP1 30
hscan 50.0 100.0
vscan 85.0 100

Комментарии

Пока нет комментариев

Написать комментарий