kabyru / govee-btled-controller Goto Github PK
View Code? Open in Web Editor NEWA re-implementation of govee_btled but with Windows compatibility.
License: GNU General Public License v3.0
A re-implementation of govee_btled but with Windows compatibility.
License: GNU General Public License v3.0
Greetings,
I apologize for the crudeness of this issue, I'm not a coder I'm just trying to get your scripts to work with a Govee H6006 bulb.
The power is working for this bulb, on an off, but that is it. No color changes, no brightness level. It basically comes on to a shade of red and that is it. I've read through Govee reverse engineering documentation until my eyes bled, this isn't my wheelhouse at all. Any idea where to start looking to troubleshoot this?
Hi there!
Thank you so much for making this, I really look forward to using it.
Unfortunately, I get this error when I run "pip install -U git+https://github.com/kabyru/govee_btled_windows" from my anaconda env (on Windows 10; formatting is messed up because some of it resembles markdown):
--
Not searching for unused variables given on the command line.
-- The C compiler identification is unknown
CMake Error at CMakeLists.txt:3 (ENABLE_LANGUAGE):
The CMAKE_C_COMPILER:
cl
is not a full path and was not found in the PATH.
Tell CMake where to find the compiler by setting either the environment
variable "CC" or the CMake cache entry CMAKE_C_COMPILER to the full path to
the compiler, or to the compiler name if it is in the PATH.
--
Not searching for unused variables given on the command line.
CMake Error at CMakeLists.txt:2 (PROJECT):
Generator
Visual Studio 17 2022
could not find any instance of Visual Studio.
--
Not searching for unused variables given on the command line.
-- The C compiler identification is MSVC 19.29.30146.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/bin/Hostx86/x64/cl.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- The CXX compiler identification is MSVC 19.29.30146.0
CMake Warning (dev) at C:/Users/jonah/AppData/Local/Temp/pip-build-env-ja7y0u6m/overlay/Lib/site-packages/cmake/data/share/cmake-3.25/Modules/CMakeDetermineCXXCompiler.cmake:162 (if):
Policy CMP0054 is not set: Only interpret if() arguments as variables or
keywords when unquoted. Run "cmake --help-policy CMP0054" for policy
details. Use the cmake_policy command to set the policy and suppress this
warning.
Quoted variables like "MSVC" will no longer be dereferenced when the policy
is set to NEW. Since the policy is not set the OLD behavior will be used.
Call Stack (most recent call first):
CMakeLists.txt:4 (ENABLE_LANGUAGE)
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Warning (dev) at C:/Users/jonah/AppData/Local/Temp/pip-build-env-ja7y0u6m/overlay/Lib/site-packages/cmake/data/share/cmake-3.25/Modules/CMakeDetermineCXXCompiler.cmake:183 (elseif):
Policy CMP0054 is not set: Only interpret if() arguments as variables or
keywords when unquoted. Run "cmake --help-policy CMP0054" for policy
details. Use the cmake_policy command to set the policy and suppress this
warning.
Quoted variables like "MSVC" will no longer be dereferenced when the policy
is set to NEW. Since the policy is not set the OLD behavior will be used.
Call Stack (most recent call first):
CMakeLists.txt:4 (ENABLE_LANGUAGE)
This warning is for project developers. Use -Wno-dev to suppress it.
Configuring Project
Working directory:
C:\Users\jonah\AppData\Local\Temp\pip-install-23kk9uq9\bleak-winrt_aabdcddada664176a5fa73ac5647dc51_skbuild\win-amd64-3.6\cmake-build
Command:
cmake 'C:\Users\jonah\AppData\Local\Temp\pip-install-23kk9uq9\bleak-winrt_aabdcddada664176a5fa73ac5647dc51' -G Ninja '-DCMAKE_INSTALL_PREFIX:PATH=C:\Users\jonah\AppData\Local\Temp\pip-install-23kk9uq9\bleak-winrt_aabdcddada664176a5fa73ac5647dc51_skbuild\win-amd64-3.6\cmake-install' -DPYTHON_VERSION_STRING:STRING=3.6.4 -DSKBUILD:INTERNAL=TRUE '-DCMAKE_MODULE_PATH:PATH=C:\Users\jonah\AppData\Local\Temp\pip-build-env-ja7y0u6m\overlay\Lib\site-packages\skbuild\resources\cmake' '-DPYTHON_EXECUTABLE:PATH=C:\Users\jonah\Anaconda3\envs\govee\python.exe' '-DPYTHON_INCLUDE_DIR:PATH=C:\Users\jonah\Anaconda3\envs\govee\Include' '-DPYTHON_LIBRARY:PATH=C:\Users\jonah\Anaconda3\envs\govee\libs\python36.lib' '-DPython_EXECUTABLE:PATH=C:\Users\jonah\Anaconda3\envs\govee\python.exe' '-DPython_ROOT_DIR:PATH=C:\Users\jonah\Anaconda3\envs\govee' '-DPython_INCLUDE_DIR:PATH=C:\Users\jonah\Anaconda3\envs\govee\Include' -DPython_FIND_REGISTRY:STRING=NEVER '-DPython3_EXECUTABLE:PATH=C:\Users\jonah\Anaconda3\envs\govee\python.exe' '-DPython3_ROOT_DIR:PATH=C:\Users\jonah\Anaconda3\envs\govee' '-DPython3_INCLUDE_DIR:PATH=C:\Users\jonah\Anaconda3\envs\govee\Include' -DPython3_FIND_REGISTRY:STRING=NEVER '-DCMAKE_MAKE_PROGRAM:FILEPATH=C:\Users\jonah\AppData\Local\Temp\pip-build-env-ja7y0u6m\overlay\Lib\site-packages\ninja\data\bin\ninja' -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_COMPILER=cl -DCMAKE_CXX_COMPILER=cl -DCMAKE_BUILD_TYPE:STRING=Release
-- The C compiler identification is MSVC 19.29.30146.0
-- The CXX compiler identification is MSVC 19.29.30146.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/bin/Hostx86/x64/cl.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/bin/Hostx86/x64/cl.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
C:/Users/jonah/AppData/Local/Temp/pip-install-23kk9uq9/bleak-winrt_aabdcddada664176a5fa73ac5647dc51/pywinrt/bleak_winrt/src/_winrt.cpp
C:/Users/jonah/AppData/Local/Temp/pip-install-23kk9uq9/bleak-winrt_aabdcddada664176a5fa73ac5647dc51/pywinrt/bleak_winrt/src/py.Windows.Devices.Bluetooth.Advertisement.cpp
C:/Users/jonah/AppData/Local/Temp/pip-install-23kk9uq9/bleak-winrt_aabdcddada664176a5fa73ac5647dc51/pywinrt/bleak_winrt/src/py.Windows.Devices.Bluetooth.Background.cpp
C:/Users/jonah/AppData/Local/Temp/pip-install-23kk9uq9/bleak-winrt_aabdcddada664176a5fa73ac5647dc51/pywinrt/bleak_winrt/src/py.Windows.Devices.Bluetooth.GenericAttributeProfile.cpp
C:/Users/jonah/AppData/Local/Temp/pip-install-23kk9uq9/bleak-winrt_aabdcddada664176a5fa73ac5647dc51/pywinrt/bleak_winrt/src/py.Windows.Devices.Bluetooth.cpp
C:/Users/jonah/AppData/Local/Temp/pip-install-23kk9uq9/bleak-winrt_aabdcddada664176a5fa73ac5647dc51/pywinrt/bleak_winrt/src/py.Windows.Devices.Enumeration.cpp
C:/Users/jonah/AppData/Local/Temp/pip-install-23kk9uq9/bleak-winrt_aabdcddada664176a5fa73ac5647dc51/pywinrt/bleak_winrt/src/py.Windows.Foundation.Collections.cpp
C:/Users/jonah/AppData/Local/Temp/pip-install-23kk9uq9/bleak-winrt_aabdcddada664176a5fa73ac5647dc51/pywinrt/bleak_winrt/src/py.Windows.Foundation.cpp
C:/Users/jonah/AppData/Local/Temp/pip-install-23kk9uq9/bleak-winrt_aabdcddada664176a5fa73ac5647dc51/pywinrt/bleak_winrt/src/py.Windows.Storage.Streams.cpp
C:/Users/jonah/AppData/Local/Temp/pip-install-23kk9uq9/bleak-winrt_aabdcddada664176a5fa73ac5647dc51/pywinrt/bleak_winrt/src/runtime.cpp
-- Found Python3: C:/Users/jonah/Anaconda3/envs/govee/python.exe (found suitable exact version "3.6.4") found components: Interpreter Development Development.Module Development.Embed
-- Configuring done
-- Generating done
CMake Warning:
Manually-specified variables were not used by the project:
PYTHON_EXECUTABLE
PYTHON_INCLUDE_DIR
PYTHON_LIBRARY
Python_EXECUTABLE
Python_FIND_REGISTRY
Python_INCLUDE_DIR
Python_ROOT_DIR
SKBUILD
-- Build files have been written to: C:/Users/jonah/AppData/Local/Temp/pip-install-23kk9uq9/bleak-winrt_aabdcddada664176a5fa73ac5647dc51/_skbuild/win-amd64-3.6/cmake-build
[1/13] Building CXX object CMakeFiles_winrt.dir\cmake_pch.cxx.obj
FAILED: CMakeFiles/_winrt.dir/cmake_pch.cxx.obj
C:\PROGRA2\MICROS2\2019\COMMUN1\VC\Tools\MSVC\14291.301\bin\Hostx86\x64\cl.exe /nologo /TP -D_winrt_EXPORTS -IC:\Users\jonah\AppData\Local\Temp\pip-install-23kk9uq9\bleak-winrt_aabdcddada664176a5fa73ac5647dc51\cppwinrt -IC:\Users\jonah\AppData\Local\Temp\pip-install-23kk9uq9\bleak-winrt_aabdcddada664176a5fa73ac5647dc51\pywinrt\bleak_winrt\src -external:IC:\Users\jonah\Anaconda3\envs\govee\Include -external:W0 /DWIN32 /D_WINDOWS /EHsc /d2FH4 /O2 /Ob2 /DNDEBUG -MT /await /bigobj /GR- /permissive- -std:c++17 /YcC:/Users/jonah/AppData/Local/Temp/pip-install-23kk9uq9/bleak-winrt_aabdcddada664176a5fa73ac5647dc51/_skbuild/win-amd64-3.6/cmake-build/CMakeFiles/_winrt.dir/cmake_pch.hxx /FpC:/Users/jonah/AppData/Local/Temp/pip-install-23kk9uq9/bleak-winrt_aabdcddada664176a5fa73ac5647dc51/_skbuild/win-amd64-3.6/cmake-build/CMakeFiles/_winrt.dir/./cmake_pch.cxx.pch /FIC:/Users/jonah/AppData/Local/Temp/pip-install-23kk9uq9/bleak-winrt_aabdcddada664176a5fa73ac5647dc51/_skbuild/win-amd64-3.6/cmake-build/CMakeFiles/_winrt.dir/cmake_pch.hxx /showIncludes /FoCMakeFiles_winrt.dir\cmake_pch.cxx.obj /FdCMakeFiles_winrt.dir\ /FS -c C:\Users\jonah\AppData\Local\Temp\pip-install-23kk9uq9\bleak-winrt_aabdcddada664176a5fa73ac5647dc51_skbuild\win-amd64-3.6\cmake-build\CMakeFiles_winrt.dir\cmake_pch.cxx
C:\Users\jonah\AppData\Local\Temp\pip-install-23kk9uq9\bleak-winrt_aabdcddada664176a5fa73ac5647dc51\pywinrt\bleak_winrt\src\pybase.h(939): error C2065: 'PyDateTime_TimeZone_UTC': undeclared identifier
C:\Users\jonah\AppData\Local\Temp\pip-install-23kk9uq9\bleak-winrt_aabdcddada664176a5fa73ac5647dc51\pywinrt\bleak_winrt\src\pybase.h(972): error C2065: 'PyDateTime_TimeZone_UTC': undeclared identifier
ninja: build stopped: subcommand failed.
Traceback (most recent call last):
File "C:\Users\jonah\AppData\Local\Temp\pip-build-env-ja7y0u6m\overlay\Lib\site-packages\skbuild\setuptools_wrap.py", line 640, in setup
cmkr.make(make_args, install_target=cmake_install_target, env=env)
File "C:\Users\jonah\AppData\Local\Temp\pip-build-env-ja7y0u6m\overlay\Lib\site-packages\skbuild\cmaker.py", line 684, in make
self.make_impl(clargs=clargs, config=config, source_dir=source_dir, install_target=install_target, env=env)
File "C:\Users\jonah\AppData\Local\Temp\pip-build-env-ja7y0u6m\overlay\Lib\site-packages\skbuild\cmaker.py", line 716, in make_impl
"An error occurred while building with CMake.\n"
ERROR: Failed building wheel for bleak-winrt
Successfully built govee-btled-windows
Failed to build bleak-winrt
ERROR: Could not build wheels for bleak-winrt which use PEP 517 and cannot be installed directly
Sometimes (not always), when trying to change multiple lights in the same program, I get the following error:
This seems related to bleak and multiple calls to asyncio.run, but I'm not sure how to fix it. There are multiple issues on Bleak's page about this:
hbldh/bleak#899
hbldh/bleak#1091
Any help would be greatly appreciated.
importing BluetoothLED from govee_btled_windows
generates an error looking for shades_of_white
module.
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.