Zayik / CommandSender

Stream Deck plugin for sending UDP/TCP messages from a key press.
MIT License
15 stars 2 forks source link

Mac OS Stream Deck Software? #2

Closed simcc closed 2 years ago

simcc commented 2 years ago

Does this only work with Windows stream deck software?

Zayik commented 2 years ago

Hey simcc,

The Elgato Stream Deck has software built for Windows and Mac OS.

I believe the plugin should function just fine on Mac OS as well. Unfortunately, I do not have any way of testing that myself as I don't own a mac.

However, I would be more than happy to troubleshoot with you should you run into any issues.

Here is an example of a program you would pair with the command sender. Zayik/UDPListener: Starts a basic UDP Listener that user can use to test with a UDP Sender. (github.com) https://github.com/Zayik/UDPListener

Since the command sender is just sending a message via udp protocol, you can technically write a receiver in any language (C#, Java, Python, C++, etc.) and on any platform. For example, one could create a program on a Raspberry Pi, and when it receives a UDP message, it responds back with the current time.

On Sat, Dec 18, 2021 at 9:53 AM simcc @.***> wrote:

Does this only work with Windows stream deck software?

— Reply to this email directly, view it on GitHub https://github.com/Zayik/CommandSender/issues/2, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACEELKT2J3YZB34USX36DJLURTDAPANCNFSM5KK35ZLQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you are subscribed to this thread.Message ID: @.***>

Zayik commented 2 years ago

As I have heard no comments to suggest the plugin does not work on other platforms, I am going to mark this as closed.

simcc commented 2 years ago

Hi sorry for delay getting back. Thanks for the reply. I'm actually fine with the receivers etc. (plan is to use it with a Soundweb and maybe NodeRed).

My problem is it won't even install on OSX. See Screenshot.

Screenshot 2021-12-30 at 11 51 17

.

simcc commented 2 years ago

I've only just started with stream deck, so no idea why it won't install...some plugins don't work on Mac and vice versa, no idea why...there's a brief list here (obvious reasons that some don't...but not all): https://streamdeck-plugins.com

Zayik commented 2 years ago

I've done some research, and I found out that depending on the coding language and features used, Mac OS isn't supported. This was done using a library to allow use of c#, which has Windows requirement.

Therefore, this app unfortunately does not support Mac OS.

That being said, I am looking at converting this to Javascript which can more easily support Mac OS. I'll let you know when I have that available.

Zayik commented 2 years ago

I have created a new plugin which should have Mac OS support. https://github.com/Zayik/CommandSender-Websocket-Edition This is by switching to Javascript which Streamdeck indicates should be able to have Mac OS support.

However, there are some key differences. Instead of using UDP messages, it is using WebSockets. To the best of my knowledge, UDP messages cannot be used in Javascript unless used within Node JS, or possible some other technology. To the best of my knowledge, StreamDeck does not support any technologies that would allow use of udp messages within Javascript. This is why I switched over to WebSockets.

To create a test server, or to learn how to interact with Websockets from a language such as C#, one can refer to https://developer.mozilla.org/en-US/docs/Web/API/WebSockets_API/Writing_WebSocket_server. Mozilla provides a very simplistic example that can be compiled and used to test the new WebSocket version of the CommandSender.

simcc commented 2 years ago

Hey thanks for getting back...I'm getting out of my depth here, lol...but I'll check out if your plugin works on Mac and report back regardless...whether I can figure the rest out, we'll see...cheers and happy new year!

simcc commented 2 years ago

The new plugin installs in Streamdeck on Mac OS Mojave anyway! ...Probably be a while before I get a chance to sit down with it, I'll let you know...thanks again.