Comments (9)
As aienabled poimted out here python version 3.8.6 seems to be your best bet. I used the master branch and got it working.
from linak-controller.
@zeroarst are you able to update Python? I'm on 3.9. That's the only thing I could think of. 3.5.1 should be able to handle type hinting but maybe there's some newer syntax in there as well.
from linak-controller.
I upgraded 3.9. dose not seem to see that error again.. but I got another error when run pip install -r requirements.txt
ERROR: Command errored out with exit status 1:
command: 'c:\users\roy\appdata\local\programs\python\python39\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Roy\\AppData\\Local\\Temp\\pip-install-qb52u9m1\\pythonnet\\setup.py'"'"'; __file__='"'"'C:\\Users\\Roy\\AppData\\Local\\Temp\\pip-install-qb52u9m1\\pythonnet\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\Roy\AppData\Local\Temp\pip-record-t9iawqu4\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\roy\appdata\local\programs\python\python39\Include\pythonnet'
cwd: C:\Users\Roy\AppData\Local\Temp\pip-install-qb52u9m1\pythonnet\
Complete output (6 lines):
usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
or: setup.py --help [cmd1 cmd2 ...]
or: setup.py --help-commands
or: setup.py cmd --help
error: option --single-version-externally-managed not recognized
----------------------------------------
ERROR: Command errored out with exit status 1: 'c:\users\roy\appdata\local\programs\python\python39\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Roy\\AppData\\Local\\Temp\\pip-install-qb52u9m1\\pythonnet\\setup.py'"'"'; __file__='"'"'C:\\Users\\Roy\\AppData\\Local\\Temp\\pip-install-qb52u9m1\\pythonnet\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\Roy\AppData\Local\Temp\pip-record-t9iawqu4\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\roy\appdata\local\programs\python\python39\Include\pythonnet' Check the logs for full command output.
Googled the issue: --single-version-externally-managed not recognized
when installing Twisted, found manually install wheel might solve the problem, which I did. However, getting another error.
error: Microsoft Visual C++ 14.0 is required. Get it with "Build Tools for Visual Studio": https://visualstudio.microsoft.com/downloads/
I think I will try to solve it another day..
from linak-controller.
I had some progress today...
- Installed python 3.8.6
- Installed Microsoft Visual Studio because when ran
pip install -r requirement.txt
I got error: Microsoft Visual C++ 14.0 is required. Get it with "Build Tools for Visual Studio": https://visualstudio.microsoft.com/downloads/
Now I can finally run python main.py
, but it says
Scanning - Desk Not Found
Traceback (most recent call last):
File "main.py", line 262, in run
desk = unpickle_desk()
File "main.py", line 222, in unpickle_desk
with open("desk.pickle",'rb') as f:
FileNotFoundError: [Errno 2] No such file or directory: 'desk.pickle'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "main.py", line 267, in run
client = await connect(desk, exit_on_fail=True)
File "main.py", line 245, in connect
await client.connect(timeout=config['connection_timeout'])
File "C:\Users\Roy\AppData\Local\Programs\Python\Python38\lib\site-packages\bleak\backends\dotnet\client.py", line 146, in connect
device = await BleakScannerDotNet.find_device_by_address(
File "C:\Users\Roy\AppData\Local\Programs\Python\Python38\lib\site-packages\bleak\backends\dotnet\scanner.py", line 261, in find_device_by_address
ulong_id = int(device_identifier.replace(":", ""), 16)
AttributeError: 'NoneType' object has no attribute 'replace'
I found my desk address by suggested Bluetooth LE Explorer here, which is ec:8e:1a:1b:83:4c
run python main.py --scan
I get:
$ python main.py --scan
Found 8 devices using default adapter
59:1A:9B:44:34:04: Unknown
EC:8E:1A:1B:83:4C: Unknown
74:BA:1B:C4:DD:DB: Apple, Inc. (b'\x10\x06\n\x1dYUH\x08')
43:7D:21:6F:F6:3C: Apple, Inc. (b'\x0c\x0e\x00\xe3|\xa0\xd7\x19\xdb\xc1\x06\xe9\x9c8\xbe\xa6')
F0:18:98:23:3D:33: Apple, Inc. (b'\x10\x05I\x1c\xd3\xe5a')
60:95:C6:1F:E9:EA: Apple, Inc. (b'\x0c\x0e\x00\xe3|\xa0\xd7\x19\xdb\xc1\x06\xe9\x9c8\xbe\xa6')
40:CD:B2:4B:4B:0E: Apple, Inc. (b'\x07\x19\x01\x0b +\x99\x8f\x00\x11\x05A\xae\xa1\xe8J/l\xef\xd5\x9eJ]\x83d\xac\xd1')
78:BB:F7:64:BD:26: Apple, Inc. (b'\x10\x07`\x1f\xa5\x01\xd6*(')
My config.yaml
mac_address: ec:8e:1a:1b:83:4c
stand_height: 1100
sit_height: 720
height_tolerance: 2.0
scan_timeout: 5
connection_timeout: 10
adapter_name: hci0
I am so close...
from linak-controller.
I think the mac_address needs to be uppercase.
from linak-controller.
On my first try it refused to connect and i had to hold the idasens bluetooth button for the entire duration of the search (thus wipeing the desk height-presets).
from linak-controller.
@MeTimesThree What are the desk height presets you're referring to?
from linak-controller.
By desk height-presets i mean those saved positions from the app that the desk stops at when using the hw-controller. Pressing the button for about eight seconds wipes them, but i think pressing the button for four seconds is enough and keeps them.
from linak-controller.
I think you might have a slightly different desk model? Is it this one: https://www.ikea.com/gb/en/p/idasen-desk-sit-stand-black-dark-grey-s89280993/ ?
from linak-controller.
Related Issues (20)
- cant connect to the desk on multiple platforms HOT 16
- A Thank You note & a preset selector script
- A Thank You note & a preset selector script HOT 1
- Locking computer stops table from moving HOT 25
- Unable to control Linak Desk - CBD6S Control Unit HOT 1
- PSA: Python 3.11 users need to use version 2.0.2rc3 of this package HOT 3
- Bleak connection issue from OrangePi at current version HOT 1
- Linak CBD6S Controller HOT 1
- Read/set favorite values from the desk provided from the Linak Desk Control app HOT 4
- Cannot move desk to base height HOT 3
- Experiencing `ValueError`: Characteristic notifications already started HOT 4
- Add date and time to log output
- Smooth Speed Control for Height Adjustment HOT 1
- query the state when in server mode HOT 6
- Install of multidict failed → Update docs?
- Sending Commands to CBD6S HOT 2
- Query desk height without server mode? HOT 1
- Request: watch combined with server HOT 1
- Can't find path to controller HOT 1
- TCP server gets stuck at await reader.read()
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from linak-controller.