HI friends ,
I am trying to dispaly node red values directly in apache webserver html pages running parallel with node red can any one help with sample flows,
M.Senthil Kumar
HI friends ,
I am trying to dispaly node red values directly in apache webserver html pages running parallel with node red can any one help with sample flows,
M.Senthil Kumar
Hi @Senthil567
More info might be needed here, such as are you using dashboard for example?
if not, and you quite lterally need some values from Node RED into a webpage:
Then you might want to look at the HTTP IN
Node, coupled with the HTTP Response
Node
This can be used to create a simple API in Node RED, where the response can be returned to the calling client/UA as a JSON object for example
I would recommend using something like PHP, to hide the HTTP request from the UA
If they are static pages, you will need to adjust things I'm afraid since there is no way do put dynamic data into static pages without some serious workarounds.
However, Apache can work as a reverse proxy and so can proxy anything that Node-RED can deliver.
Doing so will give you 3 main ways of doing what you want.
This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.