Refresh a static page

Hi guys. I need to show a web page content on a screen. I use a raspberry pi connected to a screen. I want to use node-red for this purpose because the page is not dynamic need to refresh it every 10 min . Can you please let me know which node I can use ?

Not knowing your flow set up makes it difficult to advise with any certainty, But have you tried a inject node set to inject every 10 minutes?

1 Like

Thank you , yes , but even I don't know with which node I can open and refresh that page :))

I installed a set of HTTP nodes (HTTP in / response / request ...) . I tried to figure it out but didn't get any response

Depends on the website security and if it runs js.
The simplest route would be an iframe using ui-template node.

[{"id":"f50f7934.032de8","type":"ui_template","z":"bf9e1e33.030598","group":"8b5cde76.edd58","name":"","order":2,"width":0,"height":0,"format":"<iframe src=\"\" title=\"Tutorials\"></iframe>","storeOutMessages":true,"fwdInMessages":true,"resendOnRefresh":true,"templateScope":"local","className":"","x":340,"y":80,"wires":[[]]},{"id":"99412a6.4e08258","type":"inject","z":"bf9e1e33.030598","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":150,"y":80,"wires":[["f50f7934.032de8"]]},{"id":"8b5cde76.edd58","type":"ui_group","name":"default","tab":"8f03e639.85956","order":1,"disp":false,"width":"12","collapse":false},{"id":"8f03e639.85956","type":"ui_tab","name":"Home","icon":"dashboard","order":2,"disabled":false,"hidden":false}]

You would need to install the dashboard nodes to use ui-template. you direct the pi's browser to the dashboard url,

But really you need to supply more info about the page and where you want it displayed

1 Like

it's an excel form in an internal network, my colleague will update the table and I want to show it on a big screen in our plant using raspberry pi. The page address starts with HTTPS...

Thank you , I tried this node but in UI page it says that HTTPS... address refuses to connect

If you use a inject node, and use your url in a http request node set to get, and ignore payload, then attach a debug node what do you see in the debug node

1 Like

"↵↵↵ ↵↵ ↵→→↵→→↵→→↵→→↵→→→var wopiDiagClient = { docFirstFlushTime : new Date().getTime() } ;↵→→→var _wopiContextJson ={"HostName":"SharePoint Online","SessionId":"891650A0-3089-2000-2E5D-1E9864F440D2","UserId":"urn:spo:anon#1c6130c79c578aa6c42ae5723a5f0ef3099337ca49f14d026ce8d6626c0f9e64","WebAppUrl":"\u0026ui=en%2DUS\u0026rs=en%2DUS\u0026WOPISrc=https%3A%2F%2Faxiomgroupinc%2Dmy%2Esharepoint%2Ecom%2Fpersonal%2Fnavid%5Ftashakor%5Fintextooling%5Fca%2F%5Fvti%5Fbin%2Fwopi%2Eashx%2Ffiles%2Fa6e558e786564da8b9ce4136ad50a909\u0026wdEnableRoaming=1\u0026mscc=0\u0026wdODB=1\u0026hid=891650a0..."


Try here node-red-contrib-puppeteer-new (node) - Node-RED
As the http request node does not execute any JS
or these Library - Node-RED

1 Like

I will, Thank u, Just now I used the www request node and it said "403 forbidden: in debug

I used the URL node it says the context is not defined.

Is the page you are trying to connect to requiring a user name and password?

1 Like

for me no. It's just a read-only excel page shared with my colleague in our internal network.

He used share point.

If it requires any authorisation it will need those credentials sent. So if your colleague joined the page via some account like a Google or Microsoft account then they are authorised. Unless it's completely open, like if you sent someone a link and they can open that page without any account authorisation then it would otherwise need credentials. This can sometimes be obscure if our browser remembered our auth for us so it looks like it didn't need a password etc.

1 Like

Thank u . He shared the file with the share point software, I think the issue is this. Am I correct?

Sounds like it could be. I don't know how to work SharePoint. The HTTP nodes have a username and password field you can try.
If not, you would need to add credentials to the template node as suggested earlier.

1 Like

If you have control of the page, you don't need Node-RED for this. A couple of lines of JavaScript will let you tell the browser to reload the page on a timer.

1 Like

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