Thinking of using an Elgato Stream Deck to (not on...
# water-cooler
j
Thinking of using an Elgato Stream Deck to (not only obviously, but additionally) assign client task logging to some buttons for easy reporting etc., anyone done this so a "keypress" (=keystrokes up to 500 characters + enter) for example is logged to a database via Coldfusion? one way could be to open a URL and send through a form I suppose, but there are probably more elegant solutions surely? Any cool ideas out there? :-)
n
Interesting idea. I'd personally do a JS plugin for it - https://github.com/elgatosf/streamdeck-numberdisplay as then you can probably just call an API with axios or fetch etc.
p
I have a Stream Deck, never thought of using it to call API. I'll have to look into that. Don't know what I'll use it for but it would be cool to see what can be done. I suppose I could press a button and have the sprinklers come on. 🙂
😆 1
They use JSON to communicate back and forth. The plugins can be written in Javascript, C++, or Objective-C. They have four sample plugins that they have written to give you the starting code.
👍 1
It appears that the devices are nothing but a glorified keyboard that send key down/key up events to the Stream Deck app. The app behaves like a browser of sorts. You can load plugins into it to receive the events from the device. Then the plugin does what ever it was written to do. If you write your plugin in JS then you can have it do whatever you could do in a JS block running in a browser.
👍 1
j
Great, thanks guys! Still waiting for the deck (XL was on sale here) but that looks promising!
p
message has been deleted
d
Where was it on sale? I have been thinking of picking it up myself for less cody reasons.
j
on komplett.se (Sweden) 150ish USD plus VAT
👍 1
j
I use cfexecute and cliclick on Mac/UNIX to essentially perform what you're talking about. The only issue I had was the Stream Deck did not like my self signed ssl’s from MAMP. Obviously wasn't a big deal to bypass that. Super handy for inserting code snippets as well.
👍 1
message has been deleted
I had already written a “control deck” and used it on an extra iPad to execute common tasks. So, it was almost as easy as just setting up the buttons on the Elgato and using existing URL’s.
I guess you could use something like keylogger. Depends what system(s) you’re running underneath. After reading your post again, I was thinking you wanted to just deal with presaved text, but I see what you mean now about live capture.
j
Yes, as you wrote above as well, I too was thinking of common snippets I need all the time, like blocks of an AlpineJS accordion with dynamic option checkboxes etc. to quickly built filters for result lists etc., or even for common div wrappings with flex&grid suitable for various screen sizes. Obviously it can all be copied from somewhere but being able to put literally dozens snippets on a separate "keyboard" will be fun to try!