-
Notifications
You must be signed in to change notification settings - Fork 190
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
Multiple Colors on different sides of the monitor / Hotkeys? #306
Comments
This is not exactly built-in, but both are doable. Here's how to achieve it (on Windows): This involves enabling API server in Prismatik and using a little program called AutoHotKey. In Prismatik:
Now, AutoHotKey (this allows you doing all kinds of crazy things and bind them to, well, hotkeys)
Now, in theory, pressing
|
Amazing, thanks for the detailed answer! I will try all this over the next
few days!
I really love the tool and there is really nothing like it.
Hope you have a great weekend!
Am Sa., 15. Feb. 2020 um 15:53 Uhr schrieb Sergio <notifications@github.com
…:
This is not exactly built-in, but both are doable. Here's how to achieve
it (on Windows):
This involves enabling API server in Prismatik and using a little program
called AutoHotKey.
In *Prismatik*:
1. enable "Expert mode" in "Profiles" tab
2. enable server in "Experimental" tab
- then uncheck "listen only on local interface" if you want to
control it from other computers
- leave Key empty
3. (optional) to see command list available in your Prismatik version,
in a command prompt type telnet localhost 3636 (your Prismatik PC
address and port from "experimental" tab)
- you should see "Lightpack...." something something
- type "help"
Now, *AutoHotKey* (this allows you doing all kinds of crazy things and
bind them to, well, hotkeys)
1. Download <https://www.autohotkey.com/> (I used "Current version",
and when asked, "unicode 64")
2. put this script
<https://gist.github.com/zomfg/e93e4e7381e34d5a96e305768d550c39> in a
folder of your choice
3. put this script
<https://gist.github.com/zomfg/59908f5c9baf04c9c7abdc8b1f70a2f6> in
the same folder
4. open the latter with notepad or whatever, and change this part
; Prismatik machine's IP
global PRISMATIK_IP="192.168.1.20"
; port from Experimental tab
global PRISMATIK_PORT=3636
1. right click on the same file, "Run Script"
Now, in theory, pressing Ctrl+1 should do the pink/red thing.
You can re-bind whatever keys you want, you can implement your own things
from Prismatik API, as a bonus example I included a profile change on
Ctrl+2. Look through prismatik.ahk file, it should be easy enough to
customise for simple use cases combined with help from step 3. in Prismatik
part (you can assign a color to each LED if you wish so).
*Caveat*: as of right now, the static color part seems to be breaking
other animated modes until you restart Prismatik (I'll look into that). For
other modes you can make profiles, bind them and switch between them (until
you set the color).
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#306?email_source=notifications&email_token=AMIA7GZ3D2QG7WT43NOSW6LRC76X5A5CNFSM4KVT7VOKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEL3MK6Y#issuecomment-586597755>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AMIA7G75HNLMRTGRNOW7OSLRC76X5ANCNFSM4KVT7VOA>
.
|
So i tried it but when i want to lauch the ahk script it tells me: What did you mean with change that part?: I tried setting the IP my prismatik tells me under local interface and it seems to connect as when i press ctrl+1 a lock appears next to the sun icon in the lower right corner of Prismatik that tells me on hover: "API colors persited" and also "Device locked via API" when i press ctrl+2. When i "telnet localhost 3636" it tells me telnet is not a recognized command. Thanks so much i can see this being great when i get this working! |
Try this version (you'll need to right click and "Run") Telnet part isn't required for this, but you can enable it |
@psieg There's some hotkey code in the settings, but not in the UI/conf files, any idea what's the history there? |
Is what i got from the log file. Thanks so much for taking the time and helping me out! |
New version
|
Awesome this worked! Thank you so much! Is it possible to have an even 3 way light as well? Like left side right side middle side? Oh and for some reason when i change the hotkeys to Alt+Ctrl+1 it doesnt seem to work. |
Another update: you can add any number of colors, you can do 1 per LED if you want
|
Amazing it works flawless also the hotkeys! |
Hi quick question: I started using a VPN recently and eventhough i whitelisted AHK and Prismatik the hotkeys stoped working when running the VPN saying "failed to connect". |
something like a NordVPN? |
Yeah something like that.
IPconfig shows a different adress as im using a VPN.
I thought it would work just white listening Prismatik and AHK but that
doesnt seem to help.
Yeah they are on the same PC. I put in the right adress of my local
machine. Without VPN on it works flawless.
Am Mo., 2. März 2020 um 19:13 Uhr schrieb Sergio <notifications@github.com>:
… something like a NordVPN?
what does you ipconfig
<https://www.howtogeek.com/168896/10-useful-windows-commands-you-should-know/>
look like?
are AHK and Prismatik on same PC? which IP did you put in AHK script?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#306?email_source=notifications&email_token=AMIA7G5HNT7KKABAVVOOVEDRFPZNFA5CNFSM4KVT7VOKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOENQLNLY#issuecomment-593540783>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AMIA7GYV7XK3ZF5I3LUB7CTRFPZNFANCNFSM4KVT7VOA>
.
|
Hi got it to work when typing ipconfig i used the ip4 adress shown from my fritzbox. |
Hi i remembered you helping me so much it blew my mind with this! Is there an easy way to use my 2 control scripts on linux or convert them? https://privatebin.net/?fbd885fa8fdfcc93#Hb38gUPkZ6iS7kAh7aygqf5amFGfYRRX8xL86TofMBoA is the main ahk file |
I'm not sure there's a direct way to use ahk scripts, I'll let you do more research also beware, I don't think the screen capture works with Wayland |
@zomfg Can we have hotkey for setmode (Screen grabbing / Mood lamp / Sound visualization) and turn light ON/OFF ? |
I updated the gist |
@zomfg thank you so much for update. |
Fantastic work! But I have issue: leds are disabled after +/- 40 sec when I switch profile to ctrl+1 What I'm doing wrong? |
if that switches to a static color your firmware probably times out, you can try unchecking "send data only if changed" |
Hi i love Prismatik but the software is pretty limiting when it comes to options.
How can i simply say for example, one side of the screen shows pink static lights while the other does red? Also is there a way to place hotkeys to switch from ambient to static for example?
Thanks!
The text was updated successfully, but these errors were encountered: