Giter Club home page Giter Club logo

Comments (8)

dachNYC avatar dachNYC commented on August 16, 2024 7

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

  1. pip3 install websocket-client "0.48.0"
  2. in _handshake.py change to VERSION=8
  3. pyinstaller craft.py
  4. 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.

GenuineJakob avatar GenuineJakob commented on August 16, 2024 1

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.

euzenlee avatar euzenlee commented on August 16, 2024 1

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.

george-murray avatar george-murray commented on August 16, 2024

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.

cyberluke avatar cyberluke commented on August 16, 2024

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.

euzenlee avatar euzenlee commented on August 16, 2024

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.

euzenlee avatar euzenlee commented on August 16, 2024

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.

wzx84 avatar wzx84 commented on August 16, 2024

I tried my best,but it not work,fuck。

from logi_craft_sdk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.