# Refresh a static page

**URL:** <https://discourse.nodered.org/t/refresh-a-static-page/64971>\
**Category:** General\
**Created:** [11 July 2022 20:06 UTC](https://discourse.nodered.org/t/refresh-a-static-page/64971 "2022-07-11T20:06:27Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![maliheh.amirfakhry](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/maliheh.amirfakhry/32/55147_2.png) [@maliheh.amirfakhry](https://discourse.nodered.org/u/maliheh.amirfakhry)\
**Post date:** [11 July 2022 20:06 UTC](https://discourse.nodered.org/t/refresh-a-static-page/64971/1 "2022-07-11T20:06:27Z")

</div>

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 ?

---

<div class="post-metadata">

**Author:** ![E1cid](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/e1cid/32/77971_2.png) [@E1cid](https://discourse.nodered.org/u/E1cid)\
**Post date:** [11 July 2022 20:12 UTC](https://discourse.nodered.org/t/refresh-a-static-page/64971/2 "2022-07-11T20:12:41Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![maliheh.amirfakhry](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/maliheh.amirfakhry/32/55147_2.png) [@maliheh.amirfakhry](https://discourse.nodered.org/u/maliheh.amirfakhry)\
**Post date:** [11 July 2022 20:16 UTC](https://discourse.nodered.org/t/refresh-a-static-page/64971/3 "2022-07-11T20:16:47Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![maliheh.amirfakhry](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/maliheh.amirfakhry/32/55147_2.png) [@maliheh.amirfakhry](https://discourse.nodered.org/u/maliheh.amirfakhry)\
**Post date:** [11 July 2022 20:18 UTC](https://discourse.nodered.org/t/refresh-a-static-page/64971/4 "2022-07-11T20:18:47Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![E1cid](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/e1cid/32/77971_2.png) [@E1cid](https://discourse.nodered.org/u/E1cid)\
**Post date:** [11 July 2022 20:30 UTC](https://discourse.nodered.org/t/refresh-a-static-page/64971/5 "2022-07-11T20:30:08Z")

</div>

Depends on the website security and if it runs js.  
The simplest route would be an [iframe](https://www.w3schools.com/tags/tag_iframe.ASP) using ui-template node.  
e.g.

```auto
[{"id":"f50f7934.032de8","type":"ui_template","z":"bf9e1e33.030598","group":"8b5cde76.edd58","name":"","order":2,"width":0,"height":0,"format":"<iframe src=\"http://www.bestuselesswebsites.com/go/?i=146\" 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

---

<div class="post-metadata">

**Author:** ![maliheh.amirfakhry](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/maliheh.amirfakhry/32/55147_2.png) [@maliheh.amirfakhry](https://discourse.nodered.org/u/maliheh.amirfakhry)\
**Post date:** [11 July 2022 21:02 UTC](https://discourse.nodered.org/t/refresh-a-static-page/64971/6 "2022-07-11T21:02:53Z")

</div>

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...

---

<div class="post-metadata">

**Author:** ![maliheh.amirfakhry](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/maliheh.amirfakhry/32/55147_2.png) [@maliheh.amirfakhry](https://discourse.nodered.org/u/maliheh.amirfakhry)\
**Post date:** [11 July 2022 21:30 UTC](https://discourse.nodered.org/t/refresh-a-static-page/64971/7 "2022-07-11T21:30:04Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![E1cid](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/e1cid/32/77971_2.png) [@E1cid](https://discourse.nodered.org/u/E1cid)\
**Post date:** [11 July 2022 21:38 UTC](https://discourse.nodered.org/t/refresh-a-static-page/64971/8 "2022-07-11T21:38:44Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![maliheh.amirfakhry](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/maliheh.amirfakhry/32/55147_2.png) [@maliheh.amirfakhry](https://discourse.nodered.org/u/maliheh.amirfakhry)\
**Post date:** [11 July 2022 21:45 UTC](https://discourse.nodered.org/t/refresh-a-static-page/64971/9 "2022-07-11T21:45:32Z")

</div>

"↵↵↵ ↵↵ ↵→→↵→→↵→→↵→→↵→→→var wopiDiagClient = { docFirstFlushTime : new Date().getTime() } ;↵→→→var \_wopiContextJson ={"HostName":"SharePoint Online","SessionId":"891650A0-3089-2000-2E5D-1E9864F440D2","UserId":"urn:spo:anon#1c6130c79c578aa6c42ae5723a5f0ef3099337ca49f14d026ce8d6626c0f9e64","WebAppUrl":"[https://CAC-excel.officeapps.live.com/x/\_layouts/xlviewerinternal.aspx?unified=1\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..](https://cac-excel.officeapps.live.com/x/_layouts/xlviewerinternal.aspx?unified=1%5Cu0026ui=en%2DUS%5Cu0026rs=en%2DUS%5Cu0026WOPISrc=https%3A%2F%2Faxiomgroupinc%2Dmy%2Esharepoint%2Ecom%2Fpersonal%2Fnavid%5Ftashakor%5Fintextooling%5Fca%2F%5Fvti%5Fbin%2Fwopi%2Eashx%2Ffiles%2Fa6e558e786564da8b9ce4136ad50a909%5Cu0026wdEnableRoaming=1%5Cu0026mscc=0%5Cu0026wdODB=1%5Cu0026hid=891650a0..)."

![](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/2/6/26ed9e982633c55a3e7ab3287f3dd84f5d91992a.jpeg) ReplyForward

---

<div class="post-metadata">

**Author:** ![E1cid](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/e1cid/32/77971_2.png) [@E1cid](https://discourse.nodered.org/u/E1cid)\
**Post date:** [11 July 2022 22:08 UTC](https://discourse.nodered.org/t/refresh-a-static-page/64971/10 "2022-07-11T22:08:20Z")

</div>

Try here [node-red-contrib-puppeteer-new (node) - Node-RED](https://flows.nodered.org/node/node-red-contrib-puppeteer-new)  
As the http request node does not execute any JS  
or these [Library - Node-RED](https://flows.nodered.org/search?term=browser&type=node)

---

<div class="post-metadata">

**Author:** ![maliheh.amirfakhry](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/maliheh.amirfakhry/32/55147_2.png) [@maliheh.amirfakhry](https://discourse.nodered.org/u/maliheh.amirfakhry)\
**Post date:** [11 July 2022 22:11 UTC](https://discourse.nodered.org/t/refresh-a-static-page/64971/11 "2022-07-11T22:11:49Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![maliheh.amirfakhry](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/maliheh.amirfakhry/32/55147_2.png) [@maliheh.amirfakhry](https://discourse.nodered.org/u/maliheh.amirfakhry)\
**Post date:** [11 July 2022 22:22 UTC](https://discourse.nodered.org/t/refresh-a-static-page/64971/12 "2022-07-11T22:22:37Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Waz](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/waz/32/64482_2.png) [@Waz](https://discourse.nodered.org/u/Waz)\
**Post date:** [11 July 2022 22:44 UTC](https://discourse.nodered.org/t/refresh-a-static-page/64971/13 "2022-07-11T22:44:10Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![maliheh.amirfakhry](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/maliheh.amirfakhry/32/55147_2.png) [@maliheh.amirfakhry](https://discourse.nodered.org/u/maliheh.amirfakhry)\
**Post date:** [11 July 2022 22:46 UTC](https://discourse.nodered.org/t/refresh-a-static-page/64971/14 "2022-07-11T22:46:01Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![maliheh.amirfakhry](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/maliheh.amirfakhry/32/55147_2.png) [@maliheh.amirfakhry](https://discourse.nodered.org/u/maliheh.amirfakhry)\
**Post date:** [11 July 2022 22:48 UTC](https://discourse.nodered.org/t/refresh-a-static-page/64971/15 "2022-07-11T22:48:31Z")

</div>

He used share point.

---

<div class="post-metadata">

**Author:** ![Waz](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/waz/32/64482_2.png) [@Waz](https://discourse.nodered.org/u/Waz)\
**Post date:** [11 July 2022 22:50 UTC](https://discourse.nodered.org/t/refresh-a-static-page/64971/16 "2022-07-11T22:50:35Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![maliheh.amirfakhry](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/maliheh.amirfakhry/32/55147_2.png) [@maliheh.amirfakhry](https://discourse.nodered.org/u/maliheh.amirfakhry)\
**Post date:** [11 July 2022 22:54 UTC](https://discourse.nodered.org/t/refresh-a-static-page/64971/17 "2022-07-11T22:54:55Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Waz](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/waz/32/64482_2.png) [@Waz](https://discourse.nodered.org/u/Waz)\
**Post date:** [11 July 2022 22:56 UTC](https://discourse.nodered.org/t/refresh-a-static-page/64971/18 "2022-07-11T22:56:09Z")

</div>

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.

---

<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:** [12 July 2022 11:12 UTC](https://discourse.nodered.org/t/refresh-a-static-page/64971/19 "2022-07-12T11:12:21Z")

</div>

> [@maliheh.amirfakhry](#):
>
> 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...

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.

---

<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:** [10 September 2022 11:12 UTC](https://discourse.nodered.org/t/refresh-a-static-page/64971/20 "2022-09-10T11:12:41Z")

</div>

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