ChilloutCharles / BrainFlowsIntoVRChat

BrainFlow code that sends your brain's relaxation, focus metrics, and machine learned thought commands to vrchat avatar paramaters via OSC.
https://linktr.ee/ChilloutCharles
MIT License
209 stars 15 forks source link

Webhook support #21

Open KeikoWalf opened 4 months ago

KeikoWalf commented 4 months ago

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 ,)

AtriusX commented 4 months ago

What exactly is the primary use-case for this?

KeikoWalf commented 4 months ago

What exactly is the primary use-case for this?

Would be able read it and use the data in Resonite

AtriusX commented 4 months ago

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

KeikoWalf commented 4 months ago

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

ChilloutCharles commented 4 months ago

would sending it in JSON format work?

KeikoWalf commented 4 months ago

would sending it in JSON format work?

would be much more of a pain to parce in resonite

ChilloutCharles commented 4 months ago

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

KeikoWalf commented 4 months ago

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

ChilloutCharles commented 4 months ago

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

KeikoWalf commented 4 months ago

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