BrainFlowsIntoVRChat icon indicating copy to clipboard operation
BrainFlowsIntoVRChat copied to clipboard

Webhook support

Open KeikoWalf opened this issue 1 year ago • 10 comments

Would be very useful to have a condensed list of all the parameters in one long string trough a webhook output to localhost, the list could look like this:

,"parameter 1":"parameter 1 value";"parameter 1 type" ,"parameter 2":"parameter 2 value";"parameter 2 type" ,[...]

Important to have the space before the comma for easy pacing and indexing (can always use a character that is not used in any of the parameters names/values/types to replace the ,)

KeikoWalf avatar Feb 03 '24 23:02 KeikoWalf

What exactly is the primary use-case for this?

AtriusX avatar Feb 03 '24 23:02 AtriusX

What exactly is the primary use-case for this?

Would be able read it and use the data in Resonite

KeikoWalf avatar Feb 04 '24 00:02 KeikoWalf

I see, does Resonite not support OSC or does it require some specific handshake before it will detect data in this way? I don't think many of us (if any) play it at all, so we don't have any knowledge about how this would be implemented properly over there currently

AtriusX avatar Feb 04 '24 01:02 AtriusX

I see, does Resonite not support OSC or does it require some specific handshake before it will detect data in this way? I don't think many of us (if any) play it at all, so we don't have any knowledge about how this would be implemented properly over there currently

No, resonite doesn't support osc, with webhook servers it only requires you to know which ip and port its using in that case it will most likely be using localhost and after launching the webhook server we can handle the rest in game

KeikoWalf avatar Feb 04 '24 03:02 KeikoWalf

would sending it in JSON format work?

ChilloutCharles avatar Feb 06 '24 08:02 ChilloutCharles

would sending it in JSON format work?

would be much more of a pain to parce in resonite

KeikoWalf avatar Feb 07 '24 04:02 KeikoWalf

If you're okay with the paths becoming flattened, a key value list is definitely doable. I'll start work on this and vmc support this weekend

ChilloutCharles avatar Feb 08 '24 18:02 ChilloutCharles

If you're okay with the paths becoming flattened, a key value list is definitely doable. I'll start work on this and vmc support this weekend

If you mean that the string will only take one line, that would be perfect

KeikoWalf avatar Feb 09 '24 00:02 KeikoWalf

how does resonite parse stuff anyways? I'd expect json format to be pretty standard

ChilloutCharles avatar Feb 12 '24 00:02 ChilloutCharles

It parses strings trough a system of logic nodes that is part of the visual coding, we index and substring to get our informations. So a long comma separated string works

KeikoWalf avatar Feb 16 '24 02:02 KeikoWalf