NEW - Der Feed des Merlin Images jetzt bei BoxPirates - NEW

NEW - BoxPirates Plugin Feed - NEW
Unsere Plugins direkt über den Plugin Browser eure Box installierbar

[Plugin] EnigmaLight / Ambilight für Enigma2 Receiver (OE1.6, OE2.0 ,OE2.2, OE2.5) Dreambox, openATV, VTI

    • Ich kann dir leider nicht sagen ob das auf einer dm8000 mit oatv funktioniert.
      Es gibt Fehler in den logs.
      Welche Version von wled_DRGB.py wird verwendet?

      Du könntest die Version (v.01) ohne numpy testen, ist im Anhang.

      gruß pclin
      Dateien
      • wled_DRGB.py.zip

        (1,38 kB, 3 mal heruntergeladen, zuletzt: )
      Dreambox ONE / TWO, DM920UHD, DM900UHD, DM820HD HDD + USB-HUB, Stick 64GB, USB-HDD, Wireless Touch Keyboard K400r, Wlan-Stick 11n
      ONE (Flash) DP-OE2.6 (@) eigenes OE2.6, Debian-Bullseye | TWO (Flash) DP-OE2.6 (BAXII) eigenes OE2.6, Debian-Buster, Diverse
      (Flash) DP-OE2.5 (BAXII) eigenes OE2.5-e2+kodi+X, debian-stretch, Diverse
      AudioDSP: miniDSP 2x4HD
      TV: LG OLED65BX9LB (PicCap)
      Hyperion und Plugin HyperionControl auf der Dreambox ONE | TWO
      ESP32 mit WLED Wlan 263 LED's SK6812-RGBW-NW 60 LED/m



      Ambilight for ever

    • Hallo,

      ich nutze eine Gigablue mit OpenATV 7.3
      ich wollte enigmalight wieder installieren, erhalte aber folgenden Fehler:
      Kann mir bitte jemand erklären, was falsch ist? Dankeschön

      Quellcode

      1. root@gbquad4k:~# opkg list-installed | grep enigmalight
      2. enigma2-plugin-extensions-enigmalight - 1.42+git136+df9097b-r12
      3. root@gbquad4k:~# opkg remove enigma2-plugin-extensions-enigmalight
      4. Removing enigma2-plugin-extensions-enigmalight (1.42+git136+df9097b) from root...
      5. Check if enigmalight is running...
      6. enigmalight: not running
      7. root@gbquad4k:~# opkg remove enigmalight
      8. No packages removed.
      9. root@gbquad4k:~# opkg update
      10. Downloading https://feeds2.mynonpublic.com/7.3/gb7252/3rdparty/Packages.gz.
      11. Updated source 'openatv-3rdparty'.
      12. Downloading https://feeds2.mynonpublic.com/7.3/gb7252/all/Packages.gz.
      13. Updated source 'openatv-all'.
      14. Downloading http://updates.mynonpublic.com/oea/5.3/cortexa15hf-neon-vfpv4/Packages.gz.
      15. Updated source 'cortexa15hf-neon-vfpv4-3rdparty-secret-feed'.
      16. Downloading https://feeds2.mynonpublic.com/7.3/gb7252/cortexa15hf-neon-vfpv4/Packages.gz.
      17. Updated source 'openatv-cortexa15hf-neon-vfpv4'.
      18. Downloading https://raw.githubusercontent.com/oe-alliance/enigma2-settings-feed/gh-pages/Packages.gz.
      19. Updated source 'enigma2-settings-feed'.
      20. Downloading https://feeds2.mynonpublic.com/7.3/gb7252/gb7252/Packages.gz.
      21. Updated source 'openatv-gb7252'.
      22. Downloading https://feeds2.mynonpublic.com/7.3/gb7252/gb7252_3rdparty/Packages.gz.
      23. Updated source 'openatv-gb7252_3rdparty'.
      24. Downloading https://feeds2.mynonpublic.com/7.3/gb7252/gbquad4k/Packages.gz.
      25. Updated source 'openatv-gbquad4k'.
      26. Downloading https://raw.githubusercontent.com/oe-alliance/picons-feed/gh-pages/Packages.gz.
      27. Updated source 'oe-alliance-picon-feed'.
      28. Downloading https://feeds2.mynonpublic.com/7.3/STATIC/static-cortexa15hf-neon-vfpv4/Packages.gz.
      29. Updated source 'openatv-static-cortexa15hf-neon-vfpv4'.
      30. Downloading https://feeds2.mynonpublic.com/7.3/STATIC/static-gb7252/Packages.gz.
      31. Updated source 'openatv-static-gb7252'.
      32. root@gbquad4k:~# opkg install /tmp/enigma2-plugin-extensions-enigmalight_2.00+git54+b3d012c-r0.0_all.ipk
      33. * calculate_dependencies_for: Cannot satisfy the following dependencies for enigma2-plugin-extensions-enigmalight:
      34. * python-urllib3 * python-unittest *
      35. * opkg_solver_install: Cannot install package enigma2-plugin-extensions-enigmalight.
      36. root@gbquad4k:~#
      Alles anzeigen

    • wenn ich die Feed Version benutze, klappt die Installation.
      aber ich kann die Leuchten nicht starten:

      Quellcode

      1. [InitLog] start of log /tmp/enigmalight/enigmalight.log
      2. [CConfig::LoadConfigFromFile] Opening /etc/enigmalight.conf
      3. [CConfig::CheckConfig] checking config lines
      4. [CConfig::CheckConfig] config lines valid
      5. [CConfig::LoadConfigFromFile] Opening /etc/enigmalight.conf
      6. [CConfig::BuildConfig] building config
      7. [CConfig::BuildConfig] built config successfully
      8. [main] Start device 1 from 1
      9. [CDevice::Process] ambilight: starting with output "python /home/elight-addons/wifilight/philips_hue/enigmalight_hue_LR.py"
      10. [CDevice::Process] ambilight: setting up
      11. [CEnigmaLight::SetColorSequence]Set colorsequence to RGB
      12. set adjust 0 0 0
      13. 1[CFlagManager::SetVideoGamma] Gamma not set, using 2.2 since this is default for video
      14. [CMainLoop::Process] Starting grabber..
      15. [CGrabber::Setup] Lights: 2, Cluster leds: 1 as one led
      16. [CGrabber::Setup] Channels: 6
      17. [CGrabber::Setup] Interval: 0.10
      18. [CGrabber::Run] Mode -> Dynamic
      19. [CDevice::Process] ambilight: setup succeeded
      20. [CStb::DetectSTB] Detect STB-Type...
      21. [CStb::DetectSTB] Detected STB-Type: BCM7252
      22. [CGuiServer::Process] Start GuiServer
      23. [CGuiServer::Process] Opening listening socket for Enigma2 GUI on 127.0.0.1:6767
      24. [CFrameGrabber::CheckRes] Set Scanrange to 120x67 (Source 1920x1080)
      25. Traceback (most recent call last):
      26. File "/home/elight-addons/wifilight/philips_hue/enigmalight_hue_LR.py", line 5, in <module>
      27. import httplib
      28. ModuleNotFoundError: No module named 'httplib'
      29. [CGuiServer::Process] GuiClient 127.0.0.1:51616 connected successful.
      30. root@gbquad4k:~#
      Alles anzeigen


      er möchte irgendeine httplib haben... woher bekomme ich die und wo muss die hin?
      ich nutze eine Philips Hue um meine Leuchten zu steuern und enigamlight steuert die Hue.

      installiere ich die httplib2
      opkg install python3-httplib2
      und passt meine .py Datei an, so das ich aus import httplib --> httplib2 mache, kommen woanders Fehler:

      Quellcode

      1. EnigmaLight rc4 (c) 2014 Speedy1985 and Oktay Oeztueter.
      2. (Based on Boblight (c) 2009 by Bob Loosen)
      3. [InitLog] start of log /tmp/enigmalight/enigmalight.log
      4. [CConfig::LoadConfigFromFile] Opening /etc/enigmalight.conf
      5. [CConfig::CheckConfig] checking config lines
      6. [CConfig::CheckConfig] config lines valid
      7. [CConfig::LoadConfigFromFile] Opening /etc/enigmalight.conf
      8. [CConfig::BuildConfig] building config
      9. [CConfig::BuildConfig] built config successfully
      10. [main] Start device 1 from 1
      11. [CDevice::Process] ambilight: starting with output "python /home/elight-addons/wifilight/philips_hue/enigmalight_hue_LR.py"
      12. [CDevice::Process] ambilight: setting up
      13. [CEnigmaLight::SetColorSequence]Set colorsequence to RGB
      14. set adjust 0 0 0
      15. 1[CFlagManager::SetVideoGamma] Gamma not set, using 2.2 since this is default for video
      16. [CMainLoop::Process] Starting grabber..
      17. [CGrabber::Setup] Lights: 2, Cluster leds: 1 as one led
      18. [CGrabber::Setup] Channels: 6
      19. [CGrabber::Setup] Interval: 0.10
      20. [CGrabber::Run] Mode -> Dynamic
      21. [CStb::DetectSTB] Detect STB-Type...
      22. [CStb::DetectSTB] Detected STB-Type: BCM7252
      23. [CDevice::Process] ambilight: setup succeeded
      24. [CGuiServer::Process] Start GuiServer
      25. [CGuiServer::Process] Opening listening socket for Enigma2 GUI on 127.0.0.1:6767
      26. [CFrameGrabber::CheckRes] Set Scanrange to 120x67 (Source 1920x1080)
      27. [CGuiServer::Process] GuiClient 127.0.0.1:42408 connected successful.
      28. Traceback (most recent call last):
      29. File "/home/elight-addons/wifilight/philips_hue/enigmalight_hue_LR.py", line 76, in <module>
      30. popen()
      31. File "/home/elight-addons/wifilight/philips_hue/enigmalight_hue_LR.py", line 13, in popen
      32. spidev = file( os.getcwd()+'/aufruf.log', "wb")
      33. ^^^^
      34. NameError: name 'file' is not defined. Did you mean: 'filter'?
      35. root@gbquad4k:~#
      Alles anzeigen


      Anbei meine .py Datei:

      Quellcode

      1. import sys
      2. import os
      3. import time
      4. import json
      5. import httplib
      6. from rgb_xy import Converter
      7. from rgb_xy import GamutC # or GamutA, GamutB (you must look for the type of your lamps in rgb_xy.py from line 42)
      8. counter = 12
      9. def popen():
      10. converter = Converter(GamutC)
      11. spidev = file( os.getcwd()+'/aufruf.log', "wb")
      12. key = "<Key der Hue>"
      13. ip = "192.168.xxx.xxx"
      14. url = '/api/' + key + '/lights/'
      15. lurl = url + '4/state'
      16. rurl = url + '5/state'
      17. MINIMAL_VALUE=0.000000000
      18. while True:
      19. eingabe = sys.stdin.readline()
      20. if len(eingabe)>0:
      21. global counter
      22. counter += 1
      23. try:
      24. lr,lg,lb,rr,rg,rb,x = eingabe.split(' ')
      25. except ValueError:
      26. spidev.write("Not enough input parameter, do you have the same amount of lights (channels) in your enigmalight config?")
      27. spidev.flush()
      28. raise
      29. lr = (float(lr))*255
      30. lg = (float(lg))*255
      31. lb = (float(lb))*255
      32. rr = (float(rr))*255
      33. rg = (float(rg))*255
      34. rb = (float(rb))*255
      35. lll = calcLuminance(lr,lg,lb)
      36. llr = calcLuminance(rr,rg,rb)
      37. if (counter>=13):
      38. connection = httplib.HTTPConnection(ip, timeout=10)
      39. lparams = {'xy': converter.rgb_to_xy(lr,lg,lb), 'colormode': 'xy', 'bri': int(lll), 'on': True}
      40. connection.request('PUT', lurl, json.dumps(lparams))
      41. response = connection.getresponse()
      42. rparams = {'xy': converter.rgb_to_xy(rr,rg,rb), 'colormode': 'xy', 'bri': int(llr), 'on': True}
      43. connection.request('PUT', rurl, json.dumps(rparams))
      44. response = connection.getresponse()
      45. connection.close()
      46. counter=0
      47. else:
      48. os.system("curl -d '{\"on\":false}' -X PUT 192.168.99.75/api/X5CqZOiZyTais1CZoChbrpMLwIbnpzGgFA3Yv-3-/groups/0/action")
      49. break
      50. def calcLuminance(r,g,b):
      51. LUM_VALUE=20
      52. luminance=1
      53. if (r + g + b > 2):
      54. luminance= r + g + b + LUM_VALUE
      55. if (luminance>=255):
      56. luminance=254
      57. return luminance
      58. import time
      59. time.sleep(1)
      60. popen()
      Alles anzeigen

      Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von Tomiliy ()


    • Nein nur für python2.

      gruß pclin
      Dreambox ONE / TWO, DM920UHD, DM900UHD, DM820HD HDD + USB-HUB, Stick 64GB, USB-HDD, Wireless Touch Keyboard K400r, Wlan-Stick 11n
      ONE (Flash) DP-OE2.6 (@) eigenes OE2.6, Debian-Bullseye | TWO (Flash) DP-OE2.6 (BAXII) eigenes OE2.6, Debian-Buster, Diverse
      (Flash) DP-OE2.5 (BAXII) eigenes OE2.5-e2+kodi+X, debian-stretch, Diverse
      AudioDSP: miniDSP 2x4HD
      TV: LG OLED65BX9LB (PicCap)
      Hyperion und Plugin HyperionControl auf der Dreambox ONE | TWO
      ESP32 mit WLED Wlan 263 LED's SK6812-RGBW-NW 60 LED/m



      Ambilight for ever