Comments (8)
Good news, I got CraftPython working with a workaround. The problem is the Options custom profile service rejects the websocket handshake offered by the client (craft.exe). But if you change the websocket version to 8, it accepts the handshake and connects.
Easiest hack is to just change VERSION = 13 to VERSION = 8 in Python36\Lib\site-packages\websocket_handshake.py
Or get the most current version of websocket-client (ver .57)
pip3 install websocket-client=="0.57.0"
and change the WebSocketApp code in create.py:
ws = websocket.WebSocketApp("ws://127.0.0.1:10134",
on_open = self.on_open,
on_message = self.on_message,
on_error = self.on_error,
on_close = self.on_close,
header = {"Sec-WebSocket-Version":"8"} )
update: I tried to repeat it and it's not totally working. 0.57.0 requires some other changes from 0.48.0. but at least it's connecting to the Options service.
So, the easiest way to build a running demo is to
- pip3 install websocket-client "0.48.0"
- in _handshake.py change to VERSION=8
- pyinstaller craft.py
- craft.exe in dist\craft folder.
PS:
Another way I was able to connect websocket was by suppressing the "Origin:" winsocket handshake header. It's easy to do in 0.57.0
wst = threading.Thread(target=ws.run_forever(suppress_origin=True))
from logi_craft_sdk.
The SDK samples are still not working in the most recent version (8.20.329). Here is the download link for 7.14.70 directly from Logitech:
https://download01.logi.com/web/ftp/pub/techsupport/options/Options_7.14.70.exe
from logi_craft_sdk.
I tried it again, and I can also install the sdk profile of .net and python on 9.40.86 of Options. Everything is done in accordance with the instructions of the logi sdk. The main point is to first run the SDK DEMO program, such as WinFormsCrownSample.exe, so that the application can appear in the "Add application" of Opitons, and then the corresponding profile will suddenly appear.
from logi_craft_sdk.
Yeah I don't think they care too much about Craft development.
I had an issue getting a custom plugin to work and logged a support ticket with Logitech. After sending them a sample application that they requested, they ignored me for 2 months before finally responding and telling me to log the issue here.
Your issue might have been because the custom plugin folder that Options uses is different from what is in the documentation. Documentation tells you to put custom plugins in ProgramData\Logishrd\LogiOptionsPlugins but i think the newer version of options actually looks in ProgramData\Logishrd\LogiOptions\Plugins . They have either changed the folder and not updated the documentation or the documentation has a typo in it which has never been fixed.
from logi_craft_sdk.
Tried to copy release 0.1 to C:\ProgramData\LogiShrd\LogiOptions\Software\Current\Plugins which seems to have same directory structure, but it does not show up in the profiles. Logitech Options old version have some bugs in Logitech Layer implementation, so I'm not able to downgrade.
from logi_craft_sdk.
At first I installed options 9.x on my win10 21H1 system, the software could not find all SDK profiles, then I downgraded the version to 8.10.84, 7.14.70, 6,90.138, but the result was the same. However, another machine on WIN10 20H2 with Option 8.10.84 installed can run C# and python SDK DEMO normally according to the instructions. I suspect that after installing a higher version of Option, a flag is written in the registry or somewhere, so that the software cannot work normally even if it is downgraded.
from logi_craft_sdk.
I think my steps are wrong. When I compiled the python program on the WIN10 21H2 computer and ran it once, Options can install the profile normally again.
from logi_craft_sdk.
I tried my best,but it not work,fuck。
from logi_craft_sdk.
Related Issues (20)
- Final Cut Pro X support maybe? HOT 1
- Craft keyboard C# Plugin
- So is this the SDK for Logitech Options, or just Craft? HOT 3
- Remap device-switch keys HOT 1
- Change Computer with mouse -> LogiCraft follow? HOT 4
- Can I modify Logitech options HOT 1
- Locating the command which gets launched to en/disable backlighting HOT 2
- How can I use Craft Crown as mouse scrolling wheel? HOT 1
- logi
- Logitech HOT 2
- console errors running craft.exe
- No option to "install profile" HOT 2
- Has this project been abandoned? HOT 2
- control Youtube timeline HOT 2
- In app option to add additional wheel tap configuration to assign existing functions HOT 3
- Crown Overlay disabling request !!! Users are waiting for this for years now !!!
- Battery indicators on mac
- Crown Client C++ example not working HOT 4
- Is it possible to be "battery-free" ?
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 logi_craft_sdk.