# Getting machine output lines printed in page on ip:port into Nodred

**URL:** <https://discourse.nodered.org/t/getting-machine-output-lines-printed-in-page-on-ip-port-into-nodred/62240>\
**Category:** Industrial\
**Created:** [5 May 2022 13:57 UTC](https://discourse.nodered.org/t/getting-machine-output-lines-printed-in-page-on-ip-port-into-nodred/62240 "2022-05-05T13:57:44Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Riekus](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/riekus/32/61126_2.png) [@Riekus](https://discourse.nodered.org/u/Riekus)\
**Post date:** [5 May 2022 13:57 UTC](https://discourse.nodered.org/t/getting-machine-output-lines-printed-in-page-on-ip-port-into-nodred/62240/1 "2022-05-05T13:57:44Z")

</div>

Hi Guys,

For my consulting job I was at an interesting company yesterday where they are trying to reverse engineer the 'communication channel' of a wire EDM machine.

They were pretty limited in their abilities programming wise, so suggested to look into Node-Red as it looked like it would fit their use case perfectly.

Now I am thinking about it and want to help them a little to get up and running.

He showed me what he has so far.. that was an IP:Port in the browser where there were like around 10 lines printed per second (TIMESTAMP) (TYPE) (DETAILS OF THIS TYPE OPERATION like x-y location)

I thought about it and not really sure how to pipe this machine output into node red, as a message per printed line. A http get would make me have to set a grab of the page and this will result me in having the complete page every time I guess.. what node/approach would I use to get tis into Node-Red, is there something like a http streaming input?

Also want to say I love this project and community, really feels like the old days of the internet where people are friendly and helpfull 🙂

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [5 May 2022 14:07 UTC](https://discourse.nodered.org/t/getting-machine-output-lines-printed-in-page-on-ip-port-into-nodred/62240/2 "2022-05-05T14:07:06Z")

</div>

First thing is to look at the page and work out how the updates are coming through. That will define how to wire things up.

---

<div class="post-metadata">

**Author:** ![Riekus](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/riekus/32/61126_2.png) [@Riekus](https://discourse.nodered.org/u/Riekus)\
**Post date:** [5 May 2022 14:19 UTC](https://discourse.nodered.org/t/getting-machine-output-lines-printed-in-page-on-ip-port-into-nodred/62240/3 "2022-05-05T14:19:24Z")

</div>

Yes I agree, but they are 2 hours out so can't open dev tools now haha! Was hoping there was some experience or that this was an standard protocol or something. Since it didn't look like a webpage, but just printing lines per timestamp/command output

Will definitely have a closer look if I am on site again.

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [5 May 2022 14:40 UTC](https://discourse.nodered.org/t/getting-machine-output-lines-printed-in-page-on-ip-port-into-nodred/62240/4 "2022-05-05T14:40:12Z")

</div>

Yes, there are at least 3 "standard" options I can think of.

1. It is a simple web page with an auto-reload
2. It is a web page with JavaScript that grabs the updated data in the background
3. It is a web page with JavaScript that uses websockets
4. It is an http2 service that uses push.

My guess would be that option 2 would be most likely. But that means that you still need the pages html and javascript so that you can work out what Node-RED needs to connect to. There may, of course, also be some security such as a token or cookie.

---

<div class="post-metadata">

**Author:** ![Riekus](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/riekus/32/61126_2.png) [@Riekus](https://discourse.nodered.org/u/Riekus)\
**Post date:** [5 May 2022 15:29 UTC](https://discourse.nodered.org/t/getting-machine-output-lines-printed-in-page-on-ip-port-into-nodred/62240/5 "2022-05-05T15:29:58Z")

</div>

Thank you!

Feel dumb I didn't check closer but was there to get other stuff done.

Definitely looked like it would pipe easy into node red the way it printed per line with timestamping.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [4 July 2022 15:30 UTC](https://discourse.nodered.org/t/getting-machine-output-lines-printed-in-page-on-ip-port-into-nodred/62240/6 "2022-07-04T15:30:15Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
