Node-red control UI

Make sure you're requesting the API routes (that do return JSON) - anything under /api/. Requesting the root page will get you the HTML used to render it... And that's not going to work here.

Hi. I did not fully unterstand what you are doing.

First the flow reads the config from the apikey file:
image

This config file has the following structure:
{"apikey":"83cbe565fc333333333333331eab2","ip":"192.168.1.30","port":"5000","webcam":"http://uplink.XXXX.eu:8080/video"}

I'm trying to work locally on the same laptop as the octoprint server (no pi) for development. The octoprint server is connected and running. Not sure what to put in for IP address. I also do not have a webcam so I'm not worried about that right now.

{
"apikey": "FACD0D3EC0784E969152C36397FD2917",
"ip": "127.0.0.1",
"port": "5000",
"webcam": "http://127.0.0.1/video"
}

Hi.

In this case this should work:
{
"apikey": "FACD0D3EC0784E969152C36397FD2917",
"ip": "127.0.0.1",
"port": "5000"
}

Thanks Shnello! That worked.

1 Like

Hey guys,

I just want to add a pause/resume to my prints thought Node Red

I have shutdown ok, but I don't know how to add something more complicated?

image

Thanks :slight_smile:

Hi @Schnello ,

thanks for sharing the flow. I am a Node Red beginner and still trying to understand your flow. I have two questions about it:

Webcam:
I can't get the webcam to work in the node red dashboard. I have included the webcam as stated in the octoprint installation guide. The stream can be found at http://192.168.178.157:8080/?action=stream. The config file looks like this:
{
"apikey": "KEYXXXXXX",
"ip": "192.168.178.157",
"port": "5000",
"webcam": "http://192.168.178.157:8080"
}
Unfortunately, it does not works this way. Even with the URL parameters, no stream appears in the dashboard. What am I doing wrong?

node red:
I am still a node red beginner and this is the first time I have seen the use of "link in" and "link out". Therefore I would like to ask a question:
Does this only work within a flow or also across flows?
This is actually something like a function/procedure call in node red (without returning the result), right?.

Many thanks and greetings
Sepp