-
Notifications
You must be signed in to change notification settings - Fork 254
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is there an ability to write python scripts for Razer devices? #70
Comments
Hi Nanthan, currently you can call the openrazer api in this app with Javascript only. Python scripting is not yet available, but I think it is possible to implement. Keep in mind the apis in this project are only a subset of openrazer's, as they had to be manually rewriten on Mac. |
Hi, is there any page where I can find the documentation? |
Its not super well documented but I can point you to the right direction. For example: import addon from '../driver'
addon.kbdSetModeStatic(new Uint8Array([0xff,0,0]))} // Set entire keyboard to red We are not at the stage where we can set colours for individual keys yet. Maybe that is something you could look into porting over if you are interested? |
Yes, I am interested. Could you please give some explanation on your porting process and also maybe documentation for the original code? |
Here is a simple explanation here regarding the porting the driver code, https://github.com/1kc/razer-macos/wiki. The process goes:
|
How do I set everything up to begin? |
In the open razer project, there is an ability to program your keyboard using their api via python scripting. Is this feature available in the mac port as well? Here are the provided examples of the scripts: https://github.com/openrazer/openrazer/tree/master/examples
Thanks in advance!
The text was updated successfully, but these errors were encountered: