Giter Site home page Giter Site logo

lebaston100 / node-red-contrib-obs-ws Goto Github PK

View Code? Open in Web Editor NEW
9.0 3.0 4.0 190 KB

Node-Red bindings for obs(-websocket-js)

Home Page: https://flows.nodered.org/node/node-red-contrib-obs-ws

License: MIT License

HTML 61.76% JavaScript 33.96% Python 4.28%
node-red obs obs-websocket

node-red-contrib-obs-ws's People

Contributors

lebaston100 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

node-red-contrib-obs-ws's Issues

Does not reconnect reliably

Node-red is running on a R-pi4. OBS is on a win10 machine. When win10 machine goes to sleep and later wakes up, reconnecting can take between minutes and hours. Can this be fixed, or at least forced via a command?

Calls to RED.util.evaluateJSONataExpression must include a callback.

The debug log might be getting spammed with a "Deprecated API warning: Calls to RED.util.evaluateJSONataExpression must include a callback. This will not be optional in Node-RED 4.0. Please identify the node from the following stack and check for an update on npm. If none is available, please notify the node author." message.
This is a known issue, does not break anything right now and will be fixed in the future.

Error: Socket not identified

the Websocket is not connecting and in the node-red-log (with log settings on trace) only says the following:

[trace] [obs-instance:OBS @ 187.2:4455] Trying to connect to obs
[trace] [obs-instance:OBS @ 187.2:4455] ConnectionClosed obs event
[trace] [obs-instance:OBS @ 187.2:4455] Error
[trace] [obs-instance:OBS @ 187.2:4455] Starting obsReconnector because ConnectionClosed event

When I time a request right, I can see the Error: "Error: Socket not identified" through the error output.
My OBS-WS config is with port 4455 and I deactivated the password

Setup

Hi, I am trying to get this setup locally but i cannot seem to figure it out, since this isn't published on npm i have cloned this repo into a local folder, gone into node red and npm installed but when i boot i get:

[node-red-contrib-obs-ws/obs-ws] Error: Cannot find module 'obs-websocket-js'

do i have to manually install obs-websocket-js somewhere? because in my node_models for node-red it has installed it there?

OBS raw request broken in node-red 3.0.2

Ohai,

i found an issue when using the "obs raw request"-node. It just doesn't accept any data. The error message states "Wrong data type. Needs to be a valid json object. Is: "string"" when i'm clearly inputting JSON data.

I've tested this on a fresh install.

Node.js  version: v16.16.0
Linux 5.4.0-122-generic x64 LE
OBS 27.1.3 at 64 bit Ubuntu via snap (yeah, i know)

I have attached a screenshot of the issue.

2022-08-16-200923_1900x996_scrot

Let me know if you need anything else.

May you write an example?

Hi, thank you for this module, can I kindly ask you to write an example?
I would use it with Alexa to change scene in OBS, I suppose I have to inject an object with in msg.payload the http string containing the name of the scene.
Thank you for help

RequestBatch?

As far as I can see, there can be only done simple requests, without batching. In 5.0.x the RequestBatch is no longer a request, it has its unique ID. I miss also "Sleep" Request.

With ws 4.9.1 and 0.1.0, I could make a simple batch request to p.e change a text, change its visibility, sleep for some seconds, and turn the visibility off in just a couple of nodes. Doing the same with 5.0 an 0.2.4 I need to perform various calls to get text ID as a SceneItem and then do each step in single nodes. Complex requests now needs dozens of nodes!. It's a real disaster if you have hundreds of batches to make a complex bot!

So please, could we have batch functionality back or give us a workaround? Please.

I'll try to downgrade everything meanwhile.

Work with ws 4.9.1 and 5.x simultaneusly

Hi! I'm finding a bit difficult migrating from WS 4.9.1 to 5.x (I have hundreds of calls to migrate). I have an old version of this node installed, that work with 4.9.1 flawlessly. If I update it to a new version, then my previous code stop working because the node now expects 5.x syntax so I would need to migrate everything in one single step.

It would be great if a fork of the old version could be done and uploaded as a brand new node (node-red-contrib-obs-ws4-compat?) to help doing the migration step by step with proper testing of every call. I would do myself if I knew how to do it, but it's far far far beyond my knowledge about github, npm and node-red package system.

Thank you in advance :)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.