channel-42 / hue-tui Goto Github PK
View Code? Open in Web Editor NEWA TUI for Philips Hue
License: MIT License
A TUI for Philips Hue
License: MIT License
I installed all dependencies, but after running the program I get this:
Traceback (most recent call last):
File "/home/gisbi/.local/bin/huetui", line 666, in <module>
if int(H.checkup()) == 1:
ValueError: invalid literal for int() with base 10: 'unauthorized user'
What can I do? I don't know what logs to post so feel free to tell me which ones are needed.
Initial setup is OK but this happens when trying to run the software after the initial setup:
Traceback (most recent call last):
File "/usr/bin/huetui", line 8, in <module>
r = Root(5, 4, "Hue TUI", b, c)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/huetui/frontend/root.py", line 13, in __init__
MainWindow(root, bridge, config)
File "/usr/lib/python3.11/site-packages/huetui/frontend/main_window.py", line 179, in __init__
self.light_menu = self.master.add_light_menu("Lights", 1, 0, 2, 2)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/huetui/frontend/main_window.py", line 50, in add_light_menu
new_light_menu = LightMenu(
^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/huetui/frontend/lights_menu.py", line 64, in __init__
xrdb_colors = get_xrdb_colors()
^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/huetui/frontend/utils.py", line 29, in get_xrdb_colors
"black": colors[0],
~~~~~~^^^
IndexError: list index out of range
Hey there,
I was able to install huetui without any errors but once I run it, it throws this error:
Traceback (most recent call last):
File "/usr/local/bin/huetui", line 8, in <module>
from hue_snek_pkg.hue_snek import Hue, Light
File "/usr/local/lib/python3.7/site-packages/hue_snek_pkg/hue_snek.py", line 11, in <module>
import urllib3
ModuleNotFoundError: No module named 'urllib3'
using python3 command and pip3 command in terminal (instead of python/pip, since I'm on macOs Catalina):
pip 20.0.2 from /usr/local/lib/python3.7/site-packages/pip (python 3.7)
Hey, thanks for sharing this, it's a very cool and useful :). Unfortunately, I noticed that huetui
crashes in macOS because xrdb
is not available here:
Traceback (most recent call last):
File "/opt/homebrew/bin/huetui", line 8, in <module>
r = Root(5, 4, "Hue TUI", b, c)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/lib/python3.11/site-packages/huetui/frontend/root.py", line 13, in __init__
MainWindow(root, bridge, config)
File "/opt/homebrew/lib/python3.11/site-packages/huetui/frontend/main_window.py", line 179, in __init__
self.light_menu = self.master.add_light_menu("Lights", 1, 0, 2, 2)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/lib/python3.11/site-packages/huetui/frontend/main_window.py", line 50, in add_light_menu
new_light_menu = LightMenu(
^^^^^^^^^^
File "/opt/homebrew/lib/python3.11/site-packages/huetui/frontend/lights_menu.py", line 45, in __init__
colors, err = subprocess.Popen(
^^^^^^^^^^^^^^^^^
File "/opt/homebrew/Cellar/[email protected]/3.11.7_1/Frameworks/Python.framework/Versions/3.11/lib/python3.11/subprocess.py", line 1026, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "/opt/homebrew/Cellar/[email protected]/3.11.7_1/Frameworks/Python.framework/Versions/3.11/lib/python3.11/subprocess.py", line 1950, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'xrdb'
After installing it via Homebrew huetui
starts and works, though ๐. However, this is more a workaround, xrdb -query
will still not return results on macOS. So I would suggest to check if xrdb
is available at runtime (or maybe alternatively check the OS) before calling it. If you like I can also do a PR.
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.