kusti8 / hue-plus Goto Github PK
View Code? Open in Web Editor NEWA Windows and Linux driver in Python for the NZXT Hue+
License: GNU General Public License v3.0
A Windows and Linux driver in Python for the NZXT Hue+
License: GNU General Public License v3.0
Any chance we could see this packaged into .DEB format? Also, same question for a PPA/Repo for this?
Please? :)
upoon trying to run
$ hue_ui
I get this error "Serial port is invalid. Try /dev/ttyACM0 for Linux or COM3 or COM4 for Windows"
it does open the UI after but i am unable to run anything or change anything. it gives me the same error every time "Serial port is invalid. Try /dev/ttyACM0 for Linux or COM3 or COM4 for Windows"
i am somewhat new to ubuntu anything will help.
thanks
Alongside the on/off schedule, it would be very useful to have the ability to apply a specific profile at boot and/or when the program is run.
hey there, i'm getting a traceback error when trying to run your script
Traceback (most recent call last):
File "/usr/bin/hue", line 11, in
sys.exit(main())
File "/usr/lib/python3.6/site-packages/hue_plus/hue.py", line 156, in main
raise InvalidCommand("No such mode")
hue_plus.hue.InvalidCommand: No such mode
uname -a
Linux amala 4.16.3-1-ARCH #1 SMP PREEMPT Thu Apr 19 09:17:56 UTC 2018 x86_64 GNU/Linux
i'm not sure what other information to provide, please let me know.
OS: Linux Mint 19.3 Cinnamon.
CLI Output:
root@mentos:/home/patte# sudo pip3 install hue_plus
Collecting hue_plus
Using cached https://files.pythonhosted.org/packages/87/85/0b8f510d2a41478fa08635de340c046b2bd6835072706809bc47da4e651a/hue_plus-1.4.5-py35-none-any.whl
Requirement already satisfied: pyserial in /usr/lib/python3/dist-packages (from hue_plus)
Collecting pyqt5 (from hue_plus)
Using cached https://files.pythonhosted.org/packages/4d/81/b9a66a28fb9a7bbeb60e266f06ebc4703e7e42b99e3609bf1b58ddd232b9/PyQt5-5.14.2.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "", line 1, in
File "/usr/lib/python3.6/tokenize.py", line 452, in open
buffer = _builtin_open(filename, 'rb')
FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pip-build-672_6msj/pyqt5/setup.py'
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-672_6msj/pyqt5/
I'm having some difficulty trying to use audio mode. Whenever I click 'apply', the leds light up for a couple seconds and then go off and that is it. Every other mode works fine. The only thing I can think of is that my pc outputs audio through HDMI via the graphics card. The stereo mix device is part of the realtek audio devices which are enabled in bios and windows 10 but otherwise not being used. However, when I switch the audio output to the realtek device, the problem persists. I will add that everything works in cam including audio. So my hardware settings would seem to be correct.
EDIT:
So after playing with this for a while, I figured it out. This is not a fault of the hue_plus software driver. Windows only allows audio output through one device at a time. Furthermore, the output device (realtek onboard) needs to be set to an analog one. The onboard spdif output and the video card hdmi will not work. I was able to plug in a 3.5mm cable into the green L\R speaker jack and set it to default to get simultaneous playback to hdmi but the sound quality was for shit. Too much sampling I guess. Nzxt cam must somehow pull the audio from the windows sound mixer because it works with whatever output device is being used.
Tried using any of the serial ports given with the software, and each time it tells me the serial port is invalid.
This is both for Linux (/dev/ttyACM0) and using COM3 or COM4 for Windows.
What would it take to get cpu and gpu color coordinated on a distribution of elementary, tails or TENS?
I get this error when trying to run hue_ui
Traceback (most recent call last):
File "/home/tarron/.local/bin/hue_ui", line 7, in
from hue_plus.hue_ui import main
File "/home/tarron/.local/lib/python3.5/site-packages/hue_plus/hue_ui.py", line 15, in
from PyQt5.QtCore import Qt, QTimer
ImportError: /home/tarron/.local/lib/python3.5/site-packages/PyQt5/QtCore.so: undefined symbol: PySlice_AdjustIndices
It doesn't work for "Marquee" and "Covering Marquee" modes, but it does for "Alternating" and "Pulse".
Thanks!
Does this work with AER fans?
ty
PS: Sorry for not donating anymore, couldn't afford it. :/
Ok so I got everything installed without any errors but when I try to run any command it just sits there not responding. It doesn't trigger any errors but it is not having any effect on the lights either. I've tried running multiple different commands and all of the produce the same result....
'sudo hue spectrum 1' for example will just sit there and I've let it go for about 10 minutes and still no warning message or anything and I have to CTRL + C to stop the application.
The following is the output of 'udevadm info -a -n /dev/ttyACM0'
`looking at device '/devices/pci0000:00/0000:00:16.0/usb7/7-2/7-2:1.0/tty/ttyACM0':
KERNEL=="ttyACM0"
SUBSYSTEM=="tty"
DRIVER==""
looking at parent device '/devices/pci0000:00/0000:00:16.0/usb7/7-2/7-2:1.0':
KERNELS=="7-2:1.0"
SUBSYSTEMS=="usb"
DRIVERS=="cdc_acm"
ATTRS{authorized}=="1"
ATTRS{bAlternateSetting}==" 0"
ATTRS{bInterfaceClass}=="02"
ATTRS{bInterfaceNumber}=="00"
ATTRS{bInterfaceProtocol}=="01"
ATTRS{bInterfaceSubClass}=="02"
ATTRS{bNumEndpoints}=="01"
ATTRS{bmCapabilities}=="6"
ATTRS{iad_bFirstInterface}=="00"
ATTRS{iad_bFunctionClass}=="02"
ATTRS{iad_bFunctionProtocol}=="01"
ATTRS{iad_bFunctionSubClass}=="02"
ATTRS{iad_bInterfaceCount}=="02"
ATTRS{supports_autosuspend}=="1"
looking at parent device '/devices/pci0000:00/0000:00:16.0/usb7/7-2':
KERNELS=="7-2"
SUBSYSTEMS=="usb"
DRIVERS=="usb"
ATTRS{authorized}=="1"
ATTRS{avoid_reset_quirk}=="0"
ATTRS{bConfigurationValue}=="1"
ATTRS{bDeviceClass}=="ef"
ATTRS{bDeviceProtocol}=="01"
ATTRS{bDeviceSubClass}=="02"
ATTRS{bMaxPacketSize0}=="8"
ATTRS{bMaxPower}=="100mA"
ATTRS{bNumConfigurations}=="1"
ATTRS{bNumInterfaces}==" 3"
ATTRS{bcdDevice}=="0101"
ATTRS{bmAttributes}=="80"
ATTRS{busnum}=="7"
ATTRS{configuration}==""
ATTRS{devnum}=="2"
ATTRS{devpath}=="2"
ATTRS{idProduct}=="00df"
ATTRS{idVendor}=="04d8"
ATTRS{ltm_capable}=="no"
ATTRS{manufacturer}=="Microchip Technology Inc."
ATTRS{maxchild}=="0"
ATTRS{product}=="MCP2200 USB Serial Port Emulator"
ATTRS{quirks}=="0x0"
ATTRS{removable}=="unknown"
ATTRS{serial}=="0001753250"
ATTRS{speed}=="12"
ATTRS{urbnum}=="84"
ATTRS{version}==" 2.00"
looking at parent device '/devices/pci0000:00/0000:00:16.0/usb7':
KERNELS=="usb7"
SUBSYSTEMS=="usb"
DRIVERS=="usb"
ATTRS{authorized}=="1"
ATTRS{authorized_default}=="1"
ATTRS{avoid_reset_quirk}=="0"
ATTRS{bConfigurationValue}=="1"
ATTRS{bDeviceClass}=="09"
ATTRS{bDeviceProtocol}=="00"
ATTRS{bDeviceSubClass}=="00"
ATTRS{bMaxPacketSize0}=="64"
ATTRS{bMaxPower}=="0mA"
ATTRS{bNumConfigurations}=="1"
ATTRS{bNumInterfaces}==" 1"
ATTRS{bcdDevice}=="0404"
ATTRS{bmAttributes}=="e0"
ATTRS{busnum}=="7"
ATTRS{configuration}==""
ATTRS{devnum}=="1"
ATTRS{devpath}=="0"
ATTRS{idProduct}=="0001"
ATTRS{idVendor}=="1d6b"
ATTRS{interface_authorized_default}=="1"
ATTRS{ltm_capable}=="no"
ATTRS{manufacturer}=="Linux 4.4.0-47-generic ohci_hcd"
ATTRS{maxchild}=="4"
ATTRS{product}=="OHCI PCI host controller"
ATTRS{quirks}=="0x0"
ATTRS{removable}=="unknown"
ATTRS{serial}=="0000:00:16.0"
ATTRS{speed}=="12"
ATTRS{urbnum}=="31"
ATTRS{version}==" 1.10"
looking at parent device '/devices/pci0000:00/0000:00:16.0':
KERNELS=="0000:00:16.0"
SUBSYSTEMS=="pci"
DRIVERS=="ohci-pci"
ATTRS{broken_parity_status}=="0"
ATTRS{class}=="0x0c0310"
ATTRS{consistent_dma_mask_bits}=="32"
ATTRS{d3cold_allowed}=="0"
ATTRS{device}=="0x4397"
ATTRS{dma_mask_bits}=="32"
ATTRS{driver_override}=="(null)"
ATTRS{enable}=="1"
ATTRS{irq}=="22"
ATTRS{local_cpulist}=="0-5"
ATTRS{local_cpus}=="3f"
ATTRS{msi_bus}=="1"
ATTRS{numa_node}=="0"
ATTRS{subsystem_device}=="0x4397"
ATTRS{subsystem_vendor}=="0x1002"
ATTRS{vendor}=="0x1002"
looking at parent device '/devices/pci0000:00':
KERNELS=="pci0000:00"
SUBSYSTEMS==""
DRIVERS==""`
So to me it seems that Linux is indeed recognizing it but it won't work for some reason. I also found some stuff on an arduino forum which uses a similar serial communication that suggested removing 'modemmanager' so I did that and rebooted my machine but that didn't change anything either.
I've tried plugging the hue+ box into different USB ports as well but continue to get the same result.
I've also tried manually specifying the port with the -p flag but again it still hangs up with no error messages or any output at all for that matter.
If there's any thing you could recommend it would be greatly appreciated.
To be clear: I absolutely love this API.
But there is one slight problem when using it: Every time you change colors, you have to wait about a second before colors change, which makes it impossible to react quickly to events like keystrokes.
But I was able to find the issue and fix it:
create_command
function and remove the line strips = [0, strips_info(ser, 1)-1, strips_info(ser, 2)-1]
init
function and add the following code at the very top:
if not "INITED" in globals():
global INITED
INITED = False
if INITED:
return
global strips
strips = [0, strips_info(ser, 1)-1, strips_info(ser, 2)-1]```
This stops a pretty time-intensive initialization from being called every time you change the LEDs and instead only calls it once
Hello,
Apologies if this is the wrong place to post this, but is there any chance of getting OSX/macOS support for this project? Thanks!
I'm running ubuntu-server 18.04. Hue_plus installed successfully, however whenever I run any command i get the following:
Traceback (most recent call last):
File "/usr/local/bin/hue", line 7, in
from hue_plus.hue import main
File "/home/scdigital/.local/lib/python3.6/site-packages/hue_plus/hue.py", line 11, in
from . import picker
File "/home/scdigital/.local/lib/python3.6/site-packages/hue_plus/picker.py", line 3, in
from PyQt5.QtWidgets import QApplication, QWidget, QPushButton, QColorDialog
ImportError: libGL.so.1: cannot open shared object file: No such file or directory
I'm assuming It's looking for something to do with launching the GUI, however, I'm running ubuntu server.
Any help would be appreciated.
Thanks!
I have already install webcolors.
keyxmakerx@Emerald:~/Downloads/hue-plus-master$ sudo -H pip install webcolors
Requirement already satisfied: webcolors in /usr/lib/python2.7/dist-packages
keyxmakerx@Emerald:/Downloads/hue-plus-master$ sudo hue-ui/Downloads/hue-plus-master$
Traceback (most recent call last):
File "/usr/bin/hue-ui", line 14, in
import webcolors
ImportError: No module named 'webcolors'
keyxmakerx@Emerald:
When run hue command on ubuntu I faced this errror
ValueError: Failed to set custom baud rate (256000): [Errno 25] Inappropriate ioctl for device
Tried to change it to 115200 in hue.py, then it's no error but no change in hue+ lightning
When I run any of the commands listed in the readme, nothing happens and the command has to be terminated with Ctrl-C. My Hue+ device is attached to an internal USB2 port on the motherboard and is listed as being on /dev/ttyACM0. I have tried running the commands using sudo and also from a root shell, but get the same result. The device works under Windows 10 but I no longer have this installed.
From a glance at the source, hue.py doesn't appear to generate log files, but I get the following output when I terminate the script.
sudo hue fixed ff0000
^CTraceback (most recent call last):
File "/usr/bin/hue", line 295, in <module>
fixed(ser, args.gui, args.channel, args.color)
File "/usr/bin/hue", line 79, in fixed
ser.read()
File "/usr/lib/python3.5/site-packages/serial/serialposix.py", line 472, in read
ready, _, _ = select.select([self.fd, self.pipe_abort_read_r], [], [], timeout.time_left())
KeyboardInterrupt
I am running Antergos Linux (based on Arch) using the default kernel. Please let me know if there is any other information you need.
Perhaps you could talk to the deveopler for this project and try and add more devices to this program. I have also found an application that can customize the Kraken devices, it looks like the protocol used by the X61 is also listed in that repository. I have not worked with python before but I have an X61 myself so I would love to contribute to an alternative for CAM that works on Linux.
When I was installing via Pip3, I had to install python3-dev and portaudio19-dev . It might be nice to include the installation of those packages under the linux installation guide.
Hi,
first of all.i love this tool but nothing will be saved.
Now after a few hours of experimentation i'm running into the same issue over and over again.
Nothing will be saved execpt profiles ....
Q: it should not be that changing the profile also changes the lighting effects ?
Q: should not it be that the created Custom animation is saved in the respective profile?
Q: Is there an option to load the settings from a file or at least to load the custom animation from an external file?
Currently nothing is saved, except profiles with which you can do nothing.
I start hue via sudo hue_ui over the console.
Here I get an error which says XDG_RUNTIME_DIR is not set and sets this to runtime-root
Otherwise, everything works in the app, only saving would be very important.
I use hue on an Ubuntu 18.10 machine (kubuntu) with the latest updates. I installed Python 2.7.15+ and 3.6.7 and installed hue according to the instructions here.
Thank you in advance for your support,
Mike
I'm really a noob so can someone please assist me?
I ran the exe file for windows and I think everything is installed but when I open up the app hue_plus from windows it says:
Serial port is invalid Try COM3 or COM4 for windows
Is this the way I am supossed to open the app and install out or I don't know. Thanks for the help
jcfrosty@CtrlZ ~ $ sudo pip3 install --user hue_plus
Collecting hue_plus
Using cached hue_plus-1.4.1.tar.gz
Collecting pyserial (from hue_plus)
Using cached pyserial-3.4-py2.py3-none-any.whl
Collecting pyqt5 (from hue_plus)
Using cached PyQt5-5.8-5.8.0-cp34.cp35.cp36.cp37-abi3-manylinux1_x86_64.whl
Collecting pyaudio (from hue_plus)
Using cached PyAudio-0.2.11.tar.gz
Requirement already satisfied: appdirs in /usr/lib64/python3.4/site-packages (from hue_plus)
Collecting sip>=4.19.1 (from pyqt5->hue_plus)
Could not find a version that satisfies the requirement sip>=4.19.1 (from pyqt5->hue_plus) (from versions: )
No matching distribution found for sip>=4.19.1 (from pyqt5->hue_plus)
jcfrosty@CtrlZ ~ $ eix dev-python/sip
[U] dev-python/sip
Available versions: 4.19.1(0/12) ()4.19.2(0/12) ()4.19.3(0/12) **4.9999(0/12) {debug doc PYTHON_TARGETS="python2_7 python3_4 python3_5 python3_6"}
Installed versions: 4.19.1(06:08:03 AM 04/30/2017)(-debug -doc PYTHON_TARGETS="python2_7 python3_4 -python3_5 -python3_6")
Homepage: https://www.riverbankcomputing.com/software/sip/intro
Description: Python extension module generator for C and C++ libraries
Hey!
Does anyone know how to get hue_plus working on win 7? installation works fine but when i try to launch it, nothing happens.
I am running into issues where if I issue any command via the hue/hue.py that it will just freeze until the system has been up about 5 minutes or so. Is there anything that can be done to reduce this delay?
Was hoping that this project would have better audio support than CAM, but the audio mode retains the laggy mess of CAM control. Any hope of a fix?
EDIT: Adding that this is on Windows 7
Hello,
I found an issue i didn't find a soloution for yet.
The problem is when i start the program or when the program starts after booting, I get a popup telling me that no hue+ was found (hue+ is isntalled and working!). When i click "Ok" the program opens as expected, takes 1-2 seconds to load and applies the selected effect (i chose spectrum wave). The hue is connected to "COM3".
I am on Windows 10. Latest updates as of 11.01.18. If you need any further information i will provide it.
is it possible to edit a custom Profile directly with a hex/text editor? rather than using the GUI?
the GUI is great, but for some complex color schemes, i was hoping to be able to copy/paste my 40 colors instead of clicking through them all by hand,
or maybe even writing my own little custom scripts and/or spreadsheet functions to generate a list of colors i'd like to use for a profile.
I noticed that the profiles are saved using settings = QSettings('kusti8', 'hue_plus')
but i couldn't find any matching files for that on disk (Windows)
Thanks for a great tool, btw, glad to be able to ditch CAM
how did you even begin to decipher / reverse engineer the Serial communications for this thing?
bet it would be a great kind of thing to cover in a youtube video.
Hi, i set a custom, fixed color and it worked fine the first time around. however as soon as i close the program and open it back up, the color is no longer saved. and when i restart the computer the color changes to a regular "white" color until i manually pick the color once again.
I thought the "unitled" option was actually "untitled" and therefore broken for a long time, perhaps it should be changed to "unit_led"?
Hi,
Could you please explain how the audio system work? Mainly how the data is sent to the hue?
The idea is: can it be easily customized to manage other sources of inputs? For example temperatures and cie?
Thanks!
As title says, every time I reboot or shutdown my PC, the previous settings I made is not saved, so have to set the colors for the Hue+ all the time? Also, the "Backward" check-box does nothing when I select it and press "Apply", still same direction of the fans and LED strips? Keep up the good work!
Any documentation on the serial interface protocol? Where did you find it? I sincerely hope you didn't reverse engineer the windows driver. I'm working on some changes in my fork, to make it work for me, and make it faster as well (get rid of the arbitrary time.sleeps).
probably not really a bug, but may need an additional feature to add in those added LED controller ports.
Whenever I try to change any lighting settings, the program crashes and a dialogue box tells me python has stopped working. I've reinstalled hue_plus and python to no avail
I haven't had any problems with this program up until version 1.4.5. Avast doesn't seem to like it.
Hi, is there anyway to make hue_plus start with the last effect? Everytime I open it, I have to manually select the desired effect.
I'd like to make run in on startup and having the leds automatically light up.
Thank you.
PS: I'm on Windows 10.
The Hue+ firmware requirement to successfully run this driver is nowhere mentioned (also not in the target firmware lift #6).
As already documented in the Node.js Hue+ repo, my Hue+ with firmware V3.03 from beginning of 2016 was not compatible. All commands seemed to be sent successfully, but didn't have an effect - the LED stripes remained default white.
For it to work, the Hue+ needs to be upgraded to V4.32 (the latest, which works for me)!
That new firmware can however not be installed using newer CAM program versions (most likely >= V3.5), see also reddit. You need to use the older CAM V3.3.50 (the one linked on reddit). Note: This still has the old UI, which imho anyways is better, as e.g. GRID fan speeds are directly visible.
Hello,
I notice when you add more than 8 colors under the fading menu (Like a spectrum wave, but with only one color), the program crashes. I have attached the popup error. Upon selecting "Okay" the program exits.
An unhandled exception has occurred
----------------------------------------
<class 'ValueError'>:
byte must be in range(0, 256)
----------------------------------------
File "C:\Users\\AppData\Local\hue_plus\pkgs\hue_plus\hue_ui.py", line 640, in applyFunc
self.indexApply[self.presetModeWidget.currentIndex()]()
File "C:\Users\\AppData\Local\hue_plus\pkgs\hue_plus\hue_ui.py", line 380, in fadingApply
hue.fading(ser, 0, self.getChannel(), self.getColors(self.fadingList), speed)
File "C:\Users\\AppData\Local\hue_plus\pkgs\hue_plus\hue.py", line 450, in fading
command = create_command(ser, channel, color, "fading", 0, 0, 0, speed)
File "C:\Users\\AppData\Local\hue_plus\pkgs\hue_plus\hue.py", line 374, in create_command
command = bytearray(command)
Windows v1.4.5
Any ideas why this happens?
Are there any plans for supporting the new HUE 2 controller? I've tried to access the controller on /dev/bus/usb/001/003
but it crashed with a Inappropriate ioctl for device
error.
ALSA lib /var/tmp/portage/media-libs/alsa-lib-1.2.1.2/work/alsa-lib-1.2.1.2/src/pcm/pcm_dsnoop.c:641:(snd_pcm_dsnoop_open) unable to open slave
ALSA lib /var/tmp/portage/media-libs/alsa-lib-1.2.1.2/work/alsa-lib-1.2.1.2/src/pcm/pcm_dmix.c:1089:(snd_pcm_dmix_open) unable to open slave
ALSA lib /var/tmp/portage/media-libs/alsa-lib-1.2.1.2/work/alsa-lib-1.2.1.2/src/pcm/pcm.c:2642:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib /var/tmp/portage/media-libs/alsa-lib-1.2.1.2/work/alsa-lib-1.2.1.2/src/pcm/pcm.c:2642:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib /var/tmp/portage/media-libs/alsa-lib-1.2.1.2/work/alsa-lib-1.2.1.2/src/pcm/pcm.c:2642:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
ALSA lib /var/tmp/portage/media-libs/alsa-lib-1.2.1.2/work/alsa-lib-1.2.1.2/src/confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.USB-Audio.pcm.hdmi.0:CARD=0,AES0=4,AES1=130,AES2=0,AES3=2'
ALSA lib /var/tmp/portage/media-libs/alsa-lib-1.2.1.2/work/alsa-lib-1.2.1.2/src/conf.c:4660:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib /var/tmp/portage/media-libs/alsa-lib-1.2.1.2/work/alsa-lib-1.2.1.2/src/conf.c:5148:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib /var/tmp/portage/media-libs/alsa-lib-1.2.1.2/work/alsa-lib-1.2.1.2/src/pcm/pcm.c:2642:(snd_pcm_open_noupdate) Unknown PCM hdmi
ALSA lib /var/tmp/portage/media-libs/alsa-lib-1.2.1.2/work/alsa-lib-1.2.1.2/src/confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.USB-Audio.pcm.hdmi.0:CARD=0,AES0=4,AES1=130,AES2=0,AES3=2'
ALSA lib /var/tmp/portage/media-libs/alsa-lib-1.2.1.2/work/alsa-lib-1.2.1.2/src/conf.c:4660:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib /var/tmp/portage/media-libs/alsa-lib-1.2.1.2/work/alsa-lib-1.2.1.2/src/conf.c:5148:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib /var/tmp/portage/media-libs/alsa-lib-1.2.1.2/work/alsa-lib-1.2.1.2/src/pcm/pcm.c:2642:(snd_pcm_open_noupdate) Unknown PCM hdmi
ALSA lib /var/tmp/portage/media-libs/alsa-lib-1.2.1.2/work/alsa-lib-1.2.1.2/src/confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.USB-Audio.pcm.modem.0:CARD=0'
ALSA lib /var/tmp/portage/media-libs/alsa-lib-1.2.1.2/work/alsa-lib-1.2.1.2/src/conf.c:4660:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib /var/tmp/portage/media-libs/alsa-lib-1.2.1.2/work/alsa-lib-1.2.1.2/src/conf.c:5148:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib /var/tmp/portage/media-libs/alsa-lib-1.2.1.2/work/alsa-lib-1.2.1.2/src/pcm/pcm.c:2642:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline:CARD=0,DEV=0
ALSA lib /var/tmp/portage/media-libs/alsa-lib-1.2.1.2/work/alsa-lib-1.2.1.2/src/confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.USB-Audio.pcm.modem.0:CARD=0'
ALSA lib /var/tmp/portage/media-libs/alsa-lib-1.2.1.2/work/alsa-lib-1.2.1.2/src/conf.c:4660:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib /var/tmp/portage/media-libs/alsa-lib-1.2.1.2/work/alsa-lib-1.2.1.2/src/conf.c:5148:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib /var/tmp/portage/media-libs/alsa-lib-1.2.1.2/work/alsa-lib-1.2.1.2/src/pcm/pcm.c:2642:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline:CARD=0,DEV=0
ALSA lib /var/tmp/portage/media-libs/alsa-lib-1.2.1.2/work/alsa-lib-1.2.1.2/src/confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.USB-Audio.pcm.modem.0:CARD=0'
ALSA lib /var/tmp/portage/media-libs/alsa-lib-1.2.1.2/work/alsa-lib-1.2.1.2/src/conf.c:4660:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib /var/tmp/portage/media-libs/alsa-lib-1.2.1.2/work/alsa-lib-1.2.1.2/src/conf.c:5148:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib /var/tmp/portage/media-libs/alsa-lib-1.2.1.2/work/alsa-lib-1.2.1.2/src/pcm/pcm.c:2642:(snd_pcm_open_noupdate) Unknown PCM phoneline
ALSA lib /var/tmp/portage/media-libs/alsa-lib-1.2.1.2/work/alsa-lib-1.2.1.2/src/confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.USB-Audio.pcm.modem.0:CARD=0'
ALSA lib /var/tmp/portage/media-libs/alsa-lib-1.2.1.2/work/alsa-lib-1.2.1.2/src/conf.c:4660:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib /var/tmp/portage/media-libs/alsa-lib-1.2.1.2/work/alsa-lib-1.2.1.2/src/conf.c:5148:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib /var/tmp/portage/media-libs/alsa-lib-1.2.1.2/work/alsa-lib-1.2.1.2/src/pcm/pcm.c:2642:(snd_pcm_open_noupdate) Unknown PCM phoneline
ALSA lib /var/tmp/portage/media-plugins/alsa-plugins-1.2.1/work/alsa-plugins-1.2.1/usb_stream/pcm_usb_stream.c:486:(_snd_pcm_usb_stream_open) Invalid type for card
ALSA lib /var/tmp/portage/media-plugins/alsa-plugins-1.2.1/work/alsa-plugins-1.2.1/usb_stream/pcm_usb_stream.c:486:(_snd_pcm_usb_stream_open) Invalid type for card
ALSA lib /var/tmp/portage/media-libs/alsa-lib-1.2.1.2/work/alsa-lib-1.2.1.2/src/pcm/pcm_dmix.c:1089:(snd_pcm_dmix_open) unable to open slave
Line 31 in f367bea
should the requirement be
python3-pyqt5
?
> pip3 install hue_plus
Downloading/unpacking hue-plus
Downloading hue_plus-1.4.3.tar.gz
Running setup.py (path:/tmp/pip_build_root/hue-plus/setup.py) egg_info for package hue-plus
Downloading/unpacking pyserial (from hue-plus)
Downloading pyserial-3.4-py2.py3-none-any.whl (193kB): 193kB downloaded
Downloading/unpacking pyqt5 (from hue-plus)
Could not find any downloads that satisfy the requirement pyqt5 (from hue-plus)
Cleaning up...
No distributions at all found for pyqt5 (from hue-plus)
Storing debug log for failure in /root/.pip/pip.log
Downloading/unpacking pyqt5 (from hue-plus)
Getting page https://pypi.python.org/simple/pyqt5/
URLs to search for versions for pyqt5 (from hue-plus):
* https://pypi.python.org/simple/pyqt5/
Analyzing links from page https://pypi.python.org/simple/pyqt5/
Skipping https://pypi.python.org/packages/01/8c/9d36bcb04f3c21bd449e438a5d52259a62dbbfe222698fa006099caf5143/PyQt5-5.8.1.1-5.8.0-cp35.cp36.cp37-none-win_amd64.whl#md5=04b2cb03efe5f544725f729eef723d28 (from https://pypi.python.org/simple/pyqt5/) because it is not compatible with this Python
Skipping https://pypi.python.org/packages/03/03/f42a3f893c4f7b08dfc3f6187b2db5558ee3ca194180bbd8b85b8721e825/PyQt5-5.9.1-5.9.2-cp35.cp36.cp37-none-win32.whl#md5=c88436dda54af7c759fa149d76eeca87 (from https://pypi.python.org/simple/pyqt5/) because it is not compatible with this Python
Skipping https://pypi.python.org/packages/07/7b/3223e33293be19e7666976db4ed346d83ba9b97be23aae2e4f94dcf37782/PyQt5-5.8.2-5.8.0-cp35.cp36.cp37-none-win32.whl#md5=1680375206a128d8325fb38efd784c03 (from https://pypi.python.org/simple/pyqt5/) because it is not compatible with this Python
Skipping https://pypi.python.org/packages/0f/a8/71d918272a9ae17541942daffb15d663d7c9401346252a495a84822e81d5/PyQt5-5.8.2-5.8.0-cp35.cp36.cp37-abi3-macosx_10_6_intel.whl#md5=2b71949cfc748db399c0bd8157444a85 (from https://pypi.python.org/simple/pyqt5/) because it is not compatible with this Python
Skipping https://pypi.python.org/packages/12/8a/83d96cef5f8155bc4eb140713bc479f56c15e542bec0c4340f65a0e8317a/PyQt5-5.7.1-5.7.1-cp34.cp35.cp36-abi3-manylinux1_x86_64.whl#md5=b4f4f015c60c6c6f0404acf3307b31c1 (from https://pypi.python.org/simple/pyqt5/) because it is not compatible with this Python
Skipping https://pypi.python.org/packages/13/f4/dad8682ca966094fd3694746fba6b87c11ba793a4660022db7275d50b34b/PyQt5-5.8-5.8.0-cp34.cp35.cp36.cp37-abi3-manylinux1_x86_64.whl#md5=a2fdd5e3671aaef944c1a83ca1eaf60a (from https://pypi.python.org/simple/pyqt5/) because it is not compatible with this Python
Skipping https://pypi.python.org/packages/14/60/cc8aacfc5c7fd1eb54aa91982d189b052100b2884ba7bc77b3515879a17d/PyQt5-5.9-5.9.1-cp35.cp36.cp37-none-win32.whl#md5=640473b50f6387c08fd84349793460ba (from https://pypi.python.org/simple/pyqt5/) because it is not compatible with this Python
Skipping https://pypi.python.org/packages/21/a9/f64e3511b2e7da37447afc34d3f28d0a5b00e0cfdf5774171f9f11bfd722/PyQt5-5.9.1-5.9.2-cp35.cp36.cp37-abi3-macosx_10_6_intel.whl#md5=6bb5a992af1c817c599544f0099a0c39 (from https://pypi.python.org/simple/pyqt5/) because it is not compatible with this Python
Skipping https://pypi.python.org/packages/26/97/b40b1052ffc676c9fb5e68cb0400309a9a22a4f582aa4294b319f3dc8b3f/PyQt5-5.8.1.1-5.8.0-cp35.cp36.cp37-none-win32.whl#md5=f486111e89542660ac29cfd791644b8b (from https://pypi.python.org/simple/pyqt5/) because it is not compatible with this Python
Skipping https://pypi.python.org/packages/28/9e/ae20f544f99f6e5b28d806bf2c37b7069c8bb3fd7bdf84e6ed02ee853591/PyQt5-5.9-5.9.1-cp35.cp36.cp37-abi3-macosx_10_6_intel.whl#md5=bf07195ac2b81821ade2bc51762784c9 (from https://pypi.python.org/simple/pyqt5/) because it is not compatible with this Python
Skipping https://pypi.python.org/packages/34/a7/ed3a2e7f74a7fcc112c1669968ca1be552f34d123bb4515a97520d69e8f3/PyQt5-5.6-cp35-cp35m-manylinux1_x86_64.whl#md5=787c331fb9b462a16f8526c964023c58 (from https://pypi.python.org/simple/pyqt5/) because it is not compatible with this Python
Skipping https://pypi.python.org/packages/3a/c6/26270f5550f00920045c2f0b222a7d03d7a64382825c68bf0bb1a51d854c/PyQt5-5.9.2-5.9.3-cp35.cp36.cp37-abi3-manylinux1_x86_64.whl#md5=7af06d4bd8360b710e62e0c21e7f110d (from https://pypi.python.org/simple/pyqt5/) because it is not compatible with this Python
Skipping https://pypi.python.org/packages/3b/08/32236a8fb73e4dfe51c8091a58ac24cc4987d1b12630a68939ebb6126d45/PyQt5-5.8-5.8.0-cp34.cp35.cp36.cp37-abi3-macosx_10_6_intel.whl#md5=73745a08f3cc1690922b6e21be341f43 (from https://pypi.python.org/simple/pyqt5/) because it is not compatible with this Python
Skipping https://pypi.python.org/packages/3c/34/a768dacf653a883f57928ed971575c29f80b87db09a52c9b66724d6317a0/PyQt5-5.7-cp35-none-win_amd64.whl#md5=43f6617cd9d109ad334d55a1e2f8eecb (from https://pypi.python.org/simple/pyqt5/) because it is not compatible with this Python
Skipping https://pypi.python.org/packages/40/f9/0be162881f4bdb6e828ee6db871310140a5278b4538e65716eae8b2d3dbd/PyQt5-5.6-cp35-cp35m-macosx_10_6_intel.whl#md5=51c8e78f58777eb71e0304ed8a35153d (from https://pypi.python.org/simple/pyqt5/) because it is not compatible with this Python
Skipping https://pypi.python.org/packages/45/63/353403622330d335631ec3a3016f9e0a6a9519082488b1421003682f8ef4/PyQt5-5.9-5.9.1-cp35.cp36.cp37-abi3-manylinux1_x86_64.whl#md5=785f1aa6027e2b691b9117629657f104 (from https://pypi.python.org/simple/pyqt5/) because it is not compatible with this Python
Skipping https://pypi.python.org/packages/4f/52/428af82f860dae1e08f8cb7f03399a9cc0f3756f2bd1b3e31ee749e126e4/PyQt5-5.8.2-5.8.0-cp35.cp36.cp37-abi3-manylinux1_x86_64.whl#md5=4c2c1577d8766b4ce6f328635b9556fe (from https://pypi.python.org/simple/pyqt5/) because it is not compatible with this Python
Skipping https://pypi.python.org/packages/53/47/c3af02173da1c6887de05ec6201f8582eee4efcd9476d47739b42cb1a8b9/PyQt5-5.9-5.9.1-cp35.cp36.cp37-none-win_amd64.whl#md5=93e37890bcec8009ede4a39faaad96c6 (from https://pypi.python.org/simple/pyqt5/) because it is not compatible with this Python
Skipping https://pypi.python.org/packages/55/08/a8cae8689ed928a6c7eba2e125b5cf96545995692d144d8b8f6471e47246/PyQt5-5.8.2-5.8.0-cp35.cp36.cp37-none-win_amd64.whl#md5=ab236f946ce9f7819a1e240b41e4d6ef (from https://pypi.python.org/simple/pyqt5/) because it is not compatible with this Python
Skipping https://pypi.python.org/packages/5c/9b/c5a06dccbf7db02c83adca82321f4b8e97aaf088d73eb5fc52f4f1463399/PyQt5-5.7.1-5.7.1-cp34.cp35.cp36-abi3-macosx_10_6_intel.whl#md5=6f3d3496505a39c44aed09fca0850f2c (from https://pypi.python.org/simple/pyqt5/) because it is not compatible with this Python
Skipping https://pypi.python.org/packages/5e/41/93bf8f289b476bc5d8cece7948a166cbcea761f5b1262e5fdd7076a5e02a/PyQt5-5.9.2-5.9.3-cp35.cp36.cp37-abi3-macosx_10_6_intel.whl#md5=926b3841d74d178171a2bbc0946fe2a4 (from https://pypi.python.org/simple/pyqt5/) because it is not compatible with this Python
Skipping https://pypi.python.org/packages/67/ad/5ce6033bded3c39043a2c67cc46b3976427187f68c9dbaf5533884899086/PyQt5-5.9.2-5.9.3-cp35.cp36.cp37-none-win_amd64.whl#md5=87f07e234e60dfc3a81d8b59862fb258 (from https://pypi.python.org/simple/pyqt5/) because it is not compatible with this Python
Skipping https://pypi.python.org/packages/71/c5/7e2a35682358f1be16f5f310e7ea3b64c5ecc168f83c3dc4d50dcee9f087/PyQt5-5.7-cp35-none-win32.whl#md5=f52427b4706eb4f9a371ef5d8c02c9ac (from https://pypi.python.org/simple/pyqt5/) because it is not compatible with this Python
Skipping https://pypi.python.org/packages/87/e2/c31ca63e04c2b0ed8cf7d5afd564f1d254d684ae3b62cbc3c6c48f2875a1/PyQt5-5.8.1.1-5.8.0-cp35.cp36.cp37-abi3-macosx_10_6_intel.whl#md5=8fbb4ec4c8d7b3d510728625b9f9d24f (from https://pypi.python.org/simple/pyqt5/) because it is not compatible with this Python
Skipping https://pypi.python.org/packages/a0/b1/95c3b2cf3c0dc50315413857a1f67c4fd6e86c609c5f3e01a38b331a23eb/PyQt5-5.9.2-5.9.3-cp35.cp36.cp37-none-win32.whl#md5=f9ae1dc57b560235f2dcd6a97c358687 (from https://pypi.python.org/simple/pyqt5/) because it is not compatible with this Python
Skipping https://pypi.python.org/packages/b4/07/300a655328833b05646c6af50cfef795e4aaa5e58727f6b551c62e9ab173/PyQt5-5.8.1.1-5.8.0-cp35.cp36.cp37-abi3-manylinux1_x86_64.whl#md5=60a2fbe677fb9c4d5968a6c0292872f7 (from https://pypi.python.org/simple/pyqt5/) because it is not compatible with this Python
Skipping https://pypi.python.org/packages/cc/eb/f2e115d21abec6d86b2af0b7fa6f71439767d0a91cb393607e4f72998b0a/PyQt5-5.6-cp35-none-win32.whl#md5=517c5bf65e2cb43a8f187a8674499e73 (from https://pypi.python.org/simple/pyqt5/) because it is not compatible with this Python
Skipping https://pypi.python.org/packages/d0/e4/0fb306a86f0471d69e4f8c501def0af5dd5468cdcb47ccf68c0703e32571/PyQt5-5.7-cp35-cp35m-macosx_10_6_intel.whl#md5=bd4261df379dc4d704f1c04cd9ae784c (from https://pypi.python.org/simple/pyqt5/) because it is not compatible with this Python
Skipping https://pypi.python.org/packages/d4/e2/369af0102c2fdd2c6fcd77dbd87c28342ca479959f3432c4209f0b29c660/PyQt5-5.7.1-5.7.1-cp34.cp35.cp36-none-win_amd64.whl#md5=7c7c2b530c8e812e4e697793a313cdad (from https://pypi.python.org/simple/pyqt5/) because it is not compatible with this Python
Skipping https://pypi.python.org/packages/d8/d4/55e78a986b50f6551ba09d523a11d67535b3397b295e1ccedfaeaa26b88b/PyQt5-5.7.1-5.7.1-cp34.cp35.cp36.cp37-none-win32.whl#md5=8fe27302395174e5ccdfe74b8fff5221 (from https://pypi.python.org/simple/pyqt5/) because it is not compatible with this Python
Skipping https://pypi.python.org/packages/ea/6c/144ffca9f680986a1d48a7f42315933bfc100659447971180474be171b59/PyQt5-5.9.1-5.9.2-cp35.cp36.cp37-abi3-manylinux1_x86_64.whl#md5=c19f6d1eed5f7d4fbb390b9662899a89 (from https://pypi.python.org/simple/pyqt5/) because it is not compatible with this Python
Skipping https://pypi.python.org/packages/eb/e0/28b46c12a176329cfa1f57aba29c04f22bd98f1ffcad02f50013f4933c2f/PyQt5-5.9.1-5.9.2-cp35.cp36.cp37-none-win_amd64.whl#md5=9d9053f6de3299169beae09c16dd0b99 (from https://pypi.python.org/simple/pyqt5/) because it is not compatible with this Python
Skipping https://pypi.python.org/packages/f0/3a/8f2261c0477008057636b9f992952033748b9ee94541dd54373f7d6bf5f1/PyQt5-5.8-5.8.0-cp34.cp35.cp36.cp37-none-win32.whl#md5=ca36b1bace7cf374e9223ffdb0e137b4 (from https://pypi.python.org/simple/pyqt5/) because it is not compatible with this Python
Skipping https://pypi.python.org/packages/f3/4d/8ef2d9db0a0450de985dfe04d64d09762ab2205179914aa3cc41f44af377/PyQt5-5.6-cp35-none-win_amd64.whl#md5=29243c64de9dc213221e3d13b18318bd (from https://pypi.python.org/simple/pyqt5/) because it is not compatible with this Python
Skipping https://pypi.python.org/packages/f3/94/92e7c8b3c2279a3503a8ba41fce5e0234acdc6de3a1b278ebfdcfe532f67/PyQt5-5.7-cp35-cp35m-manylinux1_x86_64.whl#md5=e745c4331a3fbafb9b59636089d5bf9f (from https://pypi.python.org/simple/pyqt5/) because it is not compatible with this Python
Skipping https://pypi.python.org/packages/f9/b4/54bd54fa47b8c9f2c3460c25f40ecc1ffa749b9e86ed39982be488660c33/PyQt5-5.8-5.8.0-cp34.cp35.cp36.cp37-none-win_amd64.whl#md5=53f7cf0d09f45c9e434ae2dbd63ecc15 (from https://pypi.python.org/simple/pyqt5/) because it is not compatible with this Python
Could not find any downloads that satisfy the requirement pyqt5 (from hue-plus)
Cleaning up...
Removing temporary dir /tmp/pip_build_root...
No distributions at all found for pyqt5 (from hue-plus)
Exception information:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/pip/basecommand.py", line 122, in main
status = self.run(options, args)
File "/usr/lib/python3/dist-packages/pip/commands/install.py", line 278, in run
requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)
File "/usr/lib/python3/dist-packages/pip/req.py", line 1178, in prepare_files
url = finder.find_requirement(req_to_install, upgrade=self.upgrade)
File "/usr/lib/python3/dist-packages/pip/index.py", line 277, in find_requirement
raise DistributionNotFound('No distributions at all found for %s' % req)
pip.exceptions.DistributionNotFound: No distributions at all found for pyqt5 (from hue-plus)
When I go to Covering Marquee, and select BLACK, the color that actually pops up it's RED.
Serial port is invalid. "Try /dev/ttyACm0 for Linux or COM3 or COM4 for Windows". It is a new system as of 4/13/17 and I haven't reactivated Windows so I don't if either of those would cause an issue. That is what pops up when I try to apply any affect.
I've spent a few hours trying to get this to work, but no luck. The code as written hangs when attempting to read from the serial device inside of the 'fixed' function if I call "power off". It seems like it never gets a response after writing the first item of "initial".
I've tried getting the device to react using screen, minicom, etc... Sometimes I can get it to throw some raw bytes at me by pounding on the keyboard, but nothing useful.
I installed Windows in a VM, and I installed the NZXT software in it; and the LEDs turned Blue (they are otherwise stuck on white) but then the Cue software froze, possibly because of the VM setup (USB passthrough etc). So I'm pretty sure that the strip works properly.
lsusb claims NZXT is
Bus 001 Device 003: ID 1e71:1714 NZXT
so where would that be mounted?
I really have never done anything like this in linux before
I don't think there's a way to know which version I'm currently using, it'd be useful to have that on the footer or in a about section on top.
I ask because I've installed the lastest version and it tells me there's a new update every time I restart it. Maybe my shortcut icon is pointing to the wrong file but the point stays, it'd be useful to have this feature.
Cheers
I've run the command to launch the GUI version via:
sudo hue_ui
and I've disabled the lights (setting colour to black) on both channels available, 1 and 0. This disables the LED strips, but does not disable the pump light for the CPU.
Previously on Ubuntu 18.04 I was able to disable the pump also, so I think this issue might just be on the latest rendition, 19.04.
This is what I ran on 18.04 to disable everything before trying the UI to get at the pump (to no avail)
#!/bin/bash -e echo "This is a shell script" hue fixed 000000 hue --mode solid --color0 0,0,0 sudo hue -0 1 fixed 000000 sudo hue -1 1 fixed 000000 echo "All done" exit 0
That's in an SH file... pretty bad, I don't code or anything, but yeah.
Anyhow, thanks for any help and for you folks who made this program! ^.^
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.