GithubHelp home page GithubHelp logo

speedy1985 / enigmalight Goto Github PK

View Code? Open in Web Editor NEW
6.0 6.0 19.0 2.69 MB

Ambilight clone for broadcom based linux receivers.

License: GNU General Public License v3.0

Shell 10.98% R 0.01% Makefile 1.61% Groff 52.57% PHP 0.66% Python 8.82% CSS 1.34% JavaScript 0.21% C++ 17.67% C 4.65% Perl 0.01% ApacheConf 1.49%

enigmalight's People

Contributors

speedy1985 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

enigmalight's Issues

2x Lightpack and DM7020 hangs

Hello Speedy,

My configuration is 2x Lightpack with DM7020 and I want to inform You about one bug in current version enigma2-plugin-extensions-enigmalight_0.2-rc1_all.ipk. It is different error that in the Boblight where was some USB connection error.

In 2 rc-1 after a while of working the lights stops at "last" displayed color. Bellow the logs:

log.1:

21:11:40.937516 [InitLog] start of log /home/elight-addons/.enigmalight/enigmalight.log
21:11:40.939054 [CConfig::LoadConfigFromFile] Opening /etc/enigmalight.conf
21:11:40.961699 [CConfig::CheckConfig] checking config lines
21:11:41.000108 [CConfig::CheckConfig] config lines valid
21:11:41.005432 [CConfig::LoadConfigFromFile] Opening /etc/enigmalight.conf
21:11:41.022581 [CConfig::BuildConfig] building config
21:11:41.072253 [CConfig::BuildConfig] built config successfully
21:11:41.072631 [main] Start device 1 from 2
21:11:41.073575 [main] Start device 2 from 2
21:11:41.076755 [CDevice::Process] Lightpack_1: starting
21:11:41.087481 [CDevice::Process] Lightpack_1: setting up
21:11:41.087720 [CDevice::Process] Lightpack_2: starting
21:11:41.087903 [CDevice::Process] Lightpack_2: setting up
21:11:41.103492 [CEnigmaLight::SetColorSequence] Set colorsequence to RGB
21:11:41.104804 [CMainLoop::Process] Start EnigmaLight Server
21:11:41.105025 [CMainLoop::Process] Opening listening socket on *:19333
21:11:41.108270 [CGuiServer::Process] Start GuiServer
21:11:41.109651 [CGuiServer::Process] Opening listening socket for Enigma2 GUI on 127.0.0.1:6767
21:11:41.126529 [CDeviceLightpack::SetupDevice] Lightpack_2: probing Lightpack at bus 1 address 4, serial is A48393431343513101E0
21:11:41.130130 [CDeviceLightpack::SetupDevice] Lightpack_2: probing Lightpack at bus 1 address 5, serial is A4830363935351708161
21:11:41.132104 [CDeviceLightpack::SetupDevice] Lightpack_1: probing Lightpack at bus 1 address 4, serial is A48393431343513101E0
21:11:41.133699 [CDeviceLightpack::SetupDevice] Lightpack_2: Lightpack is initialized, bus 1 device address 5
21:11:41.133940 [CDevice::Process] Lightpack_2: setup succeeded
21:11:41.137426 [CDeviceLightpack::SetupDevice] Lightpack_1: Lightpack is initialized, bus 1 device address 4
21:11:41.138920 [CDeviceLightpack::SetupDevice] Lightpack_1: probing Lightpack at bus 1 address 5. Couldn't get serial.
21:11:41.139096 [CDevice::Process] Lightpack_1: setup succeeded
21:11:41.625429 [CGuiServer::Process] GuiClient 127.0.0.1:59838 connected successful.
21:11:42.110601 [CMainLoop::Cleanup] Removing clients
21:11:42.110817 [CMainLoop::Cleanup] Closing listening socket
21:11:42.112816 [CFlagManager::SetVideoGamma] Gamma not set, using 2.2 since this is default for video
21:11:42.113914 [CMainLoop::Process] Starting grabber..
21:11:42.114125 [CGrabber::Setup] Lights: 20, Cluster leds: 1 as one led
21:11:42.114910 [CGrabber::Setup] Channels: 60
21:11:42.115074 [CGrabber::Setup] Interval: 0.10
21:11:42.115298 [CGrabber::Run] Mode -> Dynamic
21:11:42.116563 [CStb::DetectSTB] Detect STB-Type...
21:11:42.117971 [CStb::DetectSTB] Detected STB-Type: BCM7405
21:11:42.118220 [CFrameGrabber::Setup] Open memory /dev/mem
21:11:42.128854 [CFrameGrabber::CheckRes] Set Scanrange to 120x50 (Source 1920x800)
21:17:44.169180 [CFrameGrabber::CheckRes] Set Scanrange to 120x67 (Source 1920x1080)
21:17:46.573545 [CFrameGrabber::CheckRes] Set Scanrange to 89x50 (Source 1424x800)
21:17:46.777221 [CFrameGrabber::CheckRes] Set Scanrange to 95x50 (Source 1520x800)
21:17:46.894808 [CFrameGrabber::CheckRes] Set Scanrange to 120x50 (Source 1920x800)
21:18:03.179522 [CDevice::Process] Lightpack_2: io operation failed...
#21:18:03.179789 [CDevice::Process] Exiting EnigmaLight...

log.2:

19:38:34.853503 [InitLog] start of log /home/elight-addons/.enigmalight/enigmalight.log
19:38:34.857839 [CConfig::LoadConfigFromFile] Opening /etc/enigmalight.conf
19:38:34.878182 [CConfig::CheckConfig] checking config lines
19:38:34.909209 [CConfig::CheckConfig] config lines valid
19:38:34.916113 [CConfig::LoadConfigFromFile] Opening /etc/enigmalight.conf
19:38:34.934470 [CConfig::BuildConfig] building config
19:38:34.997729 [CConfig::BuildConfig] built config successfully
19:38:34.998055 [main] Start device 1 from 2
19:38:34.999021 [main] Start device 2 from 2
19:38:34.999226 [CDevice::Process] Lightpack_1: starting
19:38:34.999813 [CDevice::Process] Lightpack_1: setting up
19:38:35.000067 [CDevice::Process] Lightpack_2: starting
19:38:35.000170 [CDevice::Process] Lightpack_2: setting up
19:38:35.040818 [CEnigmaLight::SetColorSequence] Set colorsequence to RGB
19:38:35.042516 [CMainLoop::Process] Start EnigmaLight Server
19:38:35.042695 [CMainLoop::Process] Opening listening socket on *:19333
19:38:35.042855 [CGuiServer::Process] Start GuiServer
19:38:35.042973 [CGuiServer::Process] Opening listening socket for Enigma2 GUI on 127.0.0.1:6767
19:38:35.060229 [CDeviceLightpack::SetupDevice] Lightpack_2: probing Lightpack at bus 1 address 4. Couldn't get serial.
19:38:35.062688 [CDeviceLightpack::SetupDevice] Lightpack_1: probing Lightpack at bus 1 address 4, serial is A48393431343513101E0
19:38:35.066895 [CDeviceLightpack::SetupDevice] Lightpack_2: probing Lightpack at bus 1 address 5, serial is A4830363935351708161
19:38:35.071065 [CDeviceLightpack::SetupDevice] Lightpack_1: Lightpack is initialized, bus 1 device address 4
19:38:35.072218 [CDeviceLightpack::SetupDevice] Lightpack_2: Lightpack is initialized, bus 1 device address 5
19:38:35.072604 [CDevice::Process] Lightpack_2: setup succeeded
19:38:35.079220 [CDeviceLightpack::SetupDevice] Lightpack_1: probing Lightpack at bus 1 address 5. Couldn't get serial.
19:38:35.079465 [CDevice::Process] Lightpack_1: setup succeeded
19:38:35.232642 [CGuiServer::Process] GuiClient 127.0.0.1:43390 connected successful.
19:38:35.955506 [CMainLoop::Cleanup] Removing clients
19:38:35.955712 [CMainLoop::Cleanup] Closing listening socket
19:38:35.957859 [CFlagManager::SetVideoGamma] Gamma not set, using 2.2 since this is default for video
19:38:35.958873 [CMainLoop::Process] Starting grabber..
19:38:35.959039 [CGrabber::Setup] Lights: 20, Cluster leds: 1 as one led
19:38:35.959149 [CGrabber::Setup] Channels: 60
19:38:35.959327 [CGrabber::Setup] Interval: 0.10
19:38:35.959461 [CGrabber::Run] Mode -> Dynamic
19:38:35.960640 [CStb::DetectSTB] Detect STB-Type...
19:38:35.961958 [CStb::DetectSTB] Detected STB-Type: BCM7405
19:38:35.962139 [CFrameGrabber::Setup] Open memory /dev/mem
19:38:35.974789 [CFrameGrabber::CheckRes] Set Scanrange to 90x72 (Source 720x576)
19:39:04.705327 [CFrameGrabber::CheckRes] Set Scanrange to 120x67 (Source 1920x1080)
19:53:21.098401 [CDevice::Process] Lightpack_1: io operation failed...
#19:53:21.098581 [CDevice::Process] Exiting EnigmaLight...

The last one working wiht 2xLightpask plugin version was: enigma2-plugin-extensions-enigmalight_0.1r5-b12_all.ipk - I mean there was no hardware bugs only some problems with GUI like when I shut down the lights after Enigma2 GUI off on the lights were on but lights worked for a whole movie.

popen device outputs floats bigger than 1- 0 range

When using popen device with command "tee /dev/MYFIFO" or dd bs=1 of=/dev/MYFIFO
The output for 255 color values is 1.000015 instead of 1

Fist created a named pipe:
root@vuduo:# mkfifo /dev/MYFIFO
Then show the output
root@vuduo:
# cat /dev/MYFIFO

Used moodlamp > static color to test this although 1.000015 values also appear in dynamic mode

Used Config File

[global]
interface 127.0.0.1
port 19333

[device]
name ambilight1
output tee /dev/MYFIFO
type popen
interval 20000
channels 18
debug off

[color]
name red
rgb 0000FF
gamma 0.91
adjust 1.0
blacklevel 0.0

[color]
name green
rgb 00FF00
gamma 0.86
adjust 0.96
blacklevel 0.0

[color]
name blue
rgb FF0000
gamma 0.95
adjust 0.80
blacklevel 0.0

[light]
position left
name 100
color red ambilight1 1
color green ambilight1 2
color blue ambilight1 3
hscan 0 33.33
vscan 0 0

position left
name 200
color red ambilight1 4
color green ambilight1 5
color blue ambilight1 6
hscan 33.33 66.67
vscan 0 0

position left
name 300
color red ambilight1 7
color green ambilight1 8
color blue ambilight1 9
hscan 66.67 100.0
vscan 0 0

position right
name 400
color red ambilight1 10
color green ambilight1 11
color blue ambilight1 12
hscan 100.0 100
vscan 0 33.33

position right
name 500
color red ambilight1 13
color green ambilight1 14
color blue ambilight1 15
hscan 100.0 100
vscan 33.33 66.67

position right
name 600
color red ambilight1 16
color green ambilight1 17
color blue ambilight1 18
hscan 100.0 100
vscan 66.67 100

Test pictures are not visible

At the tuning menu there is the possibility to activate different test pictures. But I do not see them when I want to tune something. The LEDs are lit in the corresponding color, but the menu occupies the entire screen. If I then confirm the save with the green button, I briefly see the complete picture, until the Enigmalight main menu appears again. How can I see the test images to adjust the colors correctly?

Segmentation fault

enigmalight
EnigmaLight (c) 2014 Speedy1985 and Oktay Oeztueter.
(Based on Boblight (c) 2009 by Bob Loosen)

[InitLog] start of log /home/elight-addons/.enigmalight/enigmalight.log
[CConfig::LoadConfigFromFile] Opening /etc/enigmalight.conf
[CConfig::CheckConfig] checking config lines
[CConfig::CheckConfig] config lines valid
[CConfig::LoadConfigFromFile] Opening /etc/enigmalight.conf
[CConfig::BuildConfig] building config
[CConfig::BuildConfig] built config successfully
[main] Start device 1 from 1
[CDevice::Process] ambilight: starting with output "/dev/ttyUSB0"
[CDevice::Process] ambilight: setting up
[CEnigmaLight::SetColorSequence]Set colorsequence to RGB
[CGuiServer::Process] Start GuiServerset adjust 0 0 0
1
[CGuiServer::Process] Opening listening socket for Enigma2 GUI on 127.0.0.1:6767
[CFlagManager::SetVideoGamma] Gamma not set, using 2.2 since this is default for video
[CMainLoop::Process] Starting grabber..
[CGrabber::Setup] Lights: 144, Cluster leds: 1 as one led
[CGrabber::Setup] Channels: 432
[CGrabber::Setup] Interval: 0.10
Segmentation fault

System: openatv 6.3 on Gigablue HD Quad Plus.
With openatv 6.2 anything was okay.

uname -a
Linux gbquadplus 4.8.3 #1 SMP Tue Oct 23 03:15:52 UTC 2018 mips GNU/Linux

/etc/image-version:
box_type=gbquadplus
build_type=
machine_brand=GigaBlue
machine_name=Quad Plus
version=6.3
build=0
date=20181216104156
comment=openATV
target=9
creator=openATV
url=http://www.opena.tv
catalog=http://www.opena.tv
oever=OE-Alliance 4.3
distro=openatv
brandoem=gigablue
machinemake=gbquadplus
imageversion=6.3
imagebuild=0
imagedevbuild=001
imagetype=release
feedsurl=http://feeds2.mynonpublic.com/6.3/gb7356
imagedir=gigablue/quadplus
imagefs=ubi
mtdrootfs=mtd0
mtdkernel=mtd2
rootfile=rootfs.bin
kernelfile=kernel.bin
mkubifs=-m 2048 -e 126976 -c 4096 -F
ubinize=-m 2048 -p 128KiB
driverdate=
arch=mips32el
display-type=colorlcd400
hdmi=True
yuv=True
rca=True
av-jack=False
scart=False
scart-yuv=False
dvi=False
minitv=False
hdmi-in-hd=False
hdmi-in-fhd=False
wol=False
wwol=False
ci=True
transcoding=transcoding

ssh/telnet commands

hi
I want to control enigmalight with homebridge-ssh
i need the ssh command for enigmalight to turn lights on\off\status if possible
and the commad to start the moodlight

Can't install on DM820

When trying to install on a DM820, I get the following error:

Setting up enigma2-plugin-extensions-enigmalight (0.2-rc1) ...

Try to find box model....

  • No supported box found! Plugin will be removed from flash...
    E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)
    E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
    dpkg: error processing package enigma2-plugin-extensions-enigmalight (--install):
    subprocess installed post-installation script returned error exit status 1
    Errors were encountered while processing:
    enigma2-plugin-extensions-enigmalight

Control via URL?

Hi,
can I control enigmalight via URL?
Or via commandline?

I want to control with FHEM.

Thank you ;)

Flashlights

Hi Speedy.
Yesterday I´ve changed from Boblight to Enigmalight - updating was very easy (thanks for the ConfigEditor!).
But I have big problems with flashlights:
Boblight = 2 - 5 flashlights / hour
Enigmalight = 2 - 10 flashlights / minute

It will be better, when interval is > 0,3 (but then it´s not fast enough and there are still more flashlights than with Boblight).
Any idea?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.