# \[EDIT\] Displays if a new Node-Red update is available online, and update it from the Dashboard

**URL:** <https://discourse.nodered.org/t/edit-displays-if-a-new-node-red-update-is-available-online-and-update-it-from-the-dashboard/30061>\
**Category:** Share Your Projects\
**Created:** [14 July 2020 14:05 UTC](https://discourse.nodered.org/t/edit-displays-if-a-new-node-red-update-is-available-online-and-update-it-from-the-dashboard/30061 "2020-07-14T14:05:01Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![SuperNinja](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/superninja/32/5761_2.png) [@SuperNinja](https://discourse.nodered.org/u/SuperNinja)\
**Post date:** [14 July 2020 14:05 UTC](https://discourse.nodered.org/t/edit-displays-if-a-new-node-red-update-is-available-online-and-update-it-from-the-dashboard/30061/1 "2020-07-14T14:05:02Z")

</div>

## **This flow will search every 7 days if there is a new online version of Node-Red** on [https://nodered.org/](https://nodered.org/).

If that is the case, [EDIT] : In this new version :

**1. Indicates whether a new online version is available. Click on it to start the update :**![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/e/7/e72432f4c891ebcf79ed1034d79529579bbce0be.png)

**2. A wheel that turns to make you wait :**![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/a/7/a7735b9ad00bce192d6e794ca855216b033774ca.png)

**3. When the update is complete, you can select:**

- either an automatic restart of NR
- or (by default) a popup which proposes if you want to restart (or not) in addition to indicating the time taken for the update. ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/4/6/46431a85031d0ea71e53f387da7d8059d2ae4498.png)

**4. After the restart indicates NR is up to date :**![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/0/0/00713837554ca9e89cbb78eb18e7a4276e8220b4.png)

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/8/6/86991bbf815598e334a16276d51da4132802b96d.png)

```auto
[{"id":"d250cd6a.e727d","type":"inject","z":"79bfee6e.39e9e","name":"all 7 Days","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"604800","crontab":"","once":true,"onceDelay":"5","topic":"","payload":"","payloadType":"date","x":150,"y":760,"wires":[["2468d13e.5c86ae"]],"info":"360h = 15days\n168h = 7 days"},{"id":"2468d13e.5c86ae","type":"http request","z":"79bfee6e.39e9e","name":"","method":"GET","ret":"txt","paytoqs":"ignore","url":"http://192.168.1.54:1880/settings","tls":"","persist":false,"proxy":"","authType":"","x":320,"y":790,"wires":[["cf72a672.c60fb8"]]},{"id":"cf72a672.c60fb8","type":"function","z":"79bfee6e.39e9e","name":"substring","func":"str = msg.payload;\n\nlet actualVersion = str.substring(31,36);\nmsg.actualVersion = \"v\"+actualVersion;\nreturn msg","outputs":1,"noerr":0,"initialize":"","finalize":"","x":700,"y":790,"wires":[["b6255cba.c8973"]]},{"id":"b6255cba.c8973","type":"http request","z":"79bfee6e.39e9e","name":"","method":"GET","ret":"txt","paytoqs":false,"url":"https://nodered.org","tls":"","proxy":"","x":840,"y":790,"wires":[["f800a102.b6cdf"]]},{"id":"f800a102.b6cdf","type":"html","z":"79bfee6e.39e9e","name":"","property":"","outproperty":"","tag":".node-red-latest-version","ret":"text","as":"single","x":1030,"y":790,"wires":[["107f52bd.a490fd"]]},{"id":"107f52bd.a490fd","type":"change","z":"79bfee6e.39e9e","name":"array to online","rules":[{"t":"move","p":"payload[0]","pt":"msg","to":"onlineVersion","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":1230,"y":790,"wires":[["bfde3c7.f8ca9c","6e583ccd.96f144"]]},{"id":"bfde3c7.f8ca9c","type":"function","z":"79bfee6e.39e9e","name":"switch","func":"let onlineVersion = msg.onlineVersion;//\"v1.1.0\";//\nlet actualVersion = msg.actualVersion;//\"v1.1.0\";//\n//let topic=msg.topic;\n//let text=\" \";\n//let color=\"white\";\n\nif(msg.topic==\"updateNR\") {\nmsg.ui_control = {\"onicon\":\"fa-spinner fa-pulse fa-2x fa-fw\",\"oncolor\":\"yellow\"};\nmsg.payload=true;\nmsg.topic=\"<font color=orange>Wait...</font>\";\nmsg.enabled=false;\nnode.status({fill:\"yellow\",shape:\"ring\",text:\"Updating...\"});\nreturn msg;\n}\nif(msg.updateResult===true) {\nmsg.ui_control = {\"onicon\":\"fa-exclamation fa-2x\",\"oncolor\":\"yellow\"};\nmsg.payload=true;\nmsg.topic=\"<font color=orange>Please restart</font>\";\nmsg.enabled=false;\nnode.status({fill:\"yellow\",shape:\"ring\",text:\"Please restart !\"});\nreturn msg;\n}\nif(msg.updateResult===false) {\nmsg.ui_control = {\"onicon\":\"fa-exclamation fa-2x\",\"oncolor\":\"red\"};\n//msg.payload=true;\nmsg.topic=\"<font color=orange>Update Error !</font>\";\nmsg.enabled=false;\nnode.status({fill:\"red\",shape:\"ring\",text:\"Error !\"});\nreturn msg;\n}\nif(onlineVersion == actualVersion){\nmsg.ui_control = {\"onicon\":\"fa-thumbs-o-up fa-2x\",\"oncolor\":\"grey\"};\nmsg.payload=true;\nmsg.topic=\"<font color=grey>\"+actualVersion+\"</font>\";//\"<font color=grey>v1.1.0</font>\";//\nmsg.enabled=false;\nnode.status({fill:\"grey\",shape:\"ring\",text:\"ok\"});\nreturn msg;\n}\nif(onlineVersion != actualVersion){\nmsg.ui_control = {\"onicon\":\"fa-download fa-2x\",\"oncolor\":\"orange\"};\nmsg.payload=true;\nmsg.topic=\"<font color=orange>New \"+onlineVersion+\"</font>\";//\"<font color=orange>New v1.1.2</font>\";//\nmsg.enabled=true;\nnode.status({fill:\"orange\",shape:\"ring\",text:\"New update\"});\nreturn msg;\n}\n/*\nlet onlineVersion = msg.onlineVersion;//\"v1.1.0\";//\nlet actualVersion = msg.actualVersion;//\"v1.1.0\";//\nlet text=\" \";\nlet color=\"white\";\n\nif(onlineVersion == actualVersion){ text = onlineVersion;color='grey';}\nif(onlineVersion != actualVersion){ text = \"New \"+ onlineVersion;color='orange';}\nif(msg.topic==\"update NR\") {text = \"Wait updating...\";color=\"red\";}\nif(msg.updateResult===true) {text = \"Pls restart NR !\";color=\"orange\";}\nif(msg.updateResult===false) {text = \"Update ERROR !\";color=\"red\";}\n\nnode.send({text:text, color:color});\n*/\n/*\nmsg.ui_control = {\"onicon\":\"fa-thumbs-o-up fa-2x\",\"oncolor\":\"grey\"};\nmsg.payload=true;\nmsg.topic=\"<font color=grey>v1.1.0</font>\";\nmsg.enabled=false;\nreturn msg\n*/","outputs":1,"noerr":0,"initialize":"","finalize":"","x":1130,"y":870,"wires":[["97d17eaa.5084"]]},{"id":"4cc082af.37bb9c","type":"switch","z":"79bfee6e.39e9e","name":"error?","property":"rc.code","propertyType":"msg","rules":[{"t":"neq","v":"0","vt":"num"}],"checkall":"true","repair":false,"outputs":1,"x":740,"y":910,"wires":[["4100c25f.e14c8c"]]},{"id":"b7caf1e2.379b1","type":"switch","z":"79bfee6e.39e9e","name":"updated?","property":"payload","propertyType":"msg","rules":[{"t":"cont","v":"updated","vt":"str"}],"checkall":"true","repair":false,"outputs":1,"x":750,"y":950,"wires":[["8225f7b3.33f9f8"]]},{"id":"ecb4242f.8fa168","type":"exec","z":"79bfee6e.39e9e","command":"","addpay":true,"append":"","useSpawn":"false","timer":"","oldrc":false,"name":"exec","x":580,"y":940,"wires":[["b7caf1e2.379b1","4cc082af.37bb9c"],[],[]],"info":"error 127 : command not found\n\nsudo node-red-restart\n-----------------------\npayload: object\n code: \"EPERM\"\n message: \"kill EPERM\""},{"id":"8225f7b3.33f9f8","type":"function","z":"79bfee6e.39e9e","name":"substring","func":"str = msg.payload;\nlet messageLength = str.length;\n\nlet updateTime= str.substring(messageLength-8,messageLength);// get updateTime\n\nmsg.updateTime = updateTime;\nmsg.messageLength=messageLength;\n//msg.updateResult=true;\nnode.send({payload: updateTime+\" . Do you want to restart Node Red ?\",updateResult:true});\n\n/* output 1 :\n/usr/bin/node-red -> /usr/lib/node_modules/node-red/red.js\n/usr/bin/node-red-pi -> /usr/lib/node_modules/node-red/bin/node-red-pi\n+ node-red@1.1.2\nupdated 7 packages in 40.421s\n\n\n\n*/\n","outputs":1,"noerr":0,"initialize":"","finalize":"","x":890,"y":950,"wires":[["bfde3c7.f8ca9c","39bcfa1e.417406"]]},{"id":"4100c25f.e14c8c","type":"function","z":"79bfee6e.39e9e","name":"error","func":"node.send({updateResult:false});\n\n\n","outputs":1,"noerr":0,"initialize":"","finalize":"","x":890,"y":910,"wires":[["bfde3c7.f8ca9c"]]},{"id":"97d17eaa.5084","type":"ui_switch","z":"79bfee6e.39e9e","name":"DASHversion","label":"{{msg.topic}}","tooltip":"","group":"cf6208c7.847328","order":18,"width":2,"height":1,"passthru":true,"decouple":"false","topic":"","style":"","onvalue":"true","onvalueType":"bool","onicon":"{{msg.ui_control.onicon}}","oncolor":"{{msg.ui_control.oncolor}}","offvalue":"false","offvalueType":"bool","officon":"{{msg.ui_control.officon}}","offcolor":"{{msg.ui_control.offcolor}}","x":1270,"y":870,"wires":[["ad145af7.de0638"]],"info":"fa-refresh fa-spin fa-2x\nfa-download fa-2x"},{"id":"ad145af7.de0638","type":"switch","z":"79bfee6e.39e9e","name":"restart?","property":"payload","propertyType":"msg","rules":[{"t":"true"},{"t":"false"}],"checkall":"true","repair":false,"outputs":2,"x":1420,"y":870,"wires":[[],["2c5ed02e.0b73a"]]},{"id":"2c5ed02e.0b73a","type":"change","z":"79bfee6e.39e9e","name":"update+topic","rules":[{"t":"set","p":"payload","pt":"msg","to":"sudo npm install -g --unsafe-perm node-red","tot":"str"},{"t":"set","p":"topic","pt":"msg","to":"updateNR","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":1430,"y":930,"wires":[["ecb4242f.8fa168","bfde3c7.f8ca9c"]]},{"id":"1b5fa935.0f66d7","type":"switch","z":"79bfee6e.39e9e","name":"restart?","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"OK","vt":"str"},{"t":"eq","v":"Cancel","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":1200,"y":1070,"wires":[["9af57370.916cd"],[]]},{"id":"39bcfa1e.417406","type":"ui_toast","z":"79bfee6e.39e9e","position":"dialog","displayTime":"5","highlight":"blue","sendall":true,"outputs":1,"ok":"OK","cancel":"Cancel","raw":false,"topic":"Update finished in : ","name":"notif updated","x":1050,"y":1070,"wires":[["1b5fa935.0f66d7"]]},{"id":"9af57370.916cd","type":"ui_button","z":"79bfee6e.39e9e","name":"dash NRrestart","group":"cf6208c7.847328","order":6,"width":1,"height":1,"passthru":true,"label":"","tooltip":"Restart NR","color":"","bgcolor":"grey","icon":"loop","payload":"sudo node-red-restart","payloadType":"str","topic":"restart button pushed","x":1390,"y":1010,"wires":[["ecb4242f.8fa168"]]},{"id":"d15ea4e4.5d9968","type":"ui_button","z":"79bfee6e.39e9e","d":true,"name":"NR downgrade","group":"cf6208c7.847328","order":12,"width":3,"height":1,"passthru":true,"label":"downgrade NR","tooltip":"","color":"","bgcolor":"lime","icon":"system_update_alt","payload":"sudo npm install -g --unsafe-perm node-red@v1.1.1","payloadType":"str","topic":"updateNR","x":420,"y":870,"wires":[["ecb4242f.8fa168","bfde3c7.f8ca9c"]],"info":" error:127\nupdate-nodejs-and-nodered\nsudo update-nodejs && update-nodered\n\n error:1\nsudo update-nodered\nsudo update-nodejs && update-nodered\nsudo update-nodejs && nodered\n\n error:100\napt-get install nodered"},{"id":"1c73b6b0.9415f9","type":"delay","z":"79bfee6e.39e9e","name":"","pauseType":"delay","timeout":"2","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":1040,"y":1010,"wires":[["9af57370.916cd"]]},{"id":"e54e0c50.e1a3","type":"comment","z":"79bfee6e.39e9e","name":"Restart AUTOMATICALY after update finished ->","info":"","x":770,"y":1010,"wires":[]},{"id":"20f96db4.685e62","type":"comment","z":"79bfee6e.39e9e","name":"display a popup to MANUALY Restart (if you want) ->","info":"","x":760,"y":1070,"wires":[]},{"id":"2823f1dc.01c1de","type":"comment","z":"79bfee6e.39e9e","name":"or","info":"","x":1050,"y":1040,"wires":[]},{"id":"6e583ccd.96f144","type":"debug","z":"79bfee6e.39e9e","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":1420,"y":790,"wires":[]},{"id":"8fa67394.2b94d","type":"comment","z":"79bfee6e.39e9e","name":"http request Internal version MANUALY : put your Node Red server IP ","info":"","x":310,"y":830,"wires":[]},{"id":"e06fa803.42bf58","type":"comment","z":"79bfee6e.39e9e","name":"http request : Online version","info":"","x":890,"y":830,"wires":[]},{"id":"d3cc42cb.5b16c","type":"ip","z":"79bfee6e.39e9e","name":"NR ip","https":false,"timeout":"5000","internalIPv4":true,"internalIPv6":true,"publicIPv4":true,"publicIPv6":false,"x":300,"y":710,"wires":[["47adc985.626618"]]},{"id":"47adc985.626618","type":"change","z":"79bfee6e.39e9e","name":"internalIPv4 to myIp","rules":[{"t":"move","p":"payload.internalIPv4","pt":"msg","to":"myIp","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":460,"y":710,"wires":[["510d1b8b.88a8a4"]]},{"id":"510d1b8b.88a8a4","type":"http request","z":"79bfee6e.39e9e","name":"","method":"GET","ret":"txt","paytoqs":"ignore","url":"http://{{myIp}}:1880/settings","tls":"","persist":false,"proxy":"","authType":"","x":640,"y":710,"wires":[["cf72a672.c60fb8"]],"info":"http://192.168.1.54:1880/settings"},{"id":"8c7c498c.142528","type":"comment","z":"79bfee6e.39e9e","name":"http request Internal version AUTOMATICALY = Add node-red-contrib-ip from palette","info":"","x":350,"y":680,"wires":[]},{"id":"406d48eb.9ffbe8","type":"comment","z":"79bfee6e.39e9e","name":"or","info":"","x":310,"y":750,"wires":[]},{"id":"cf6208c7.847328","type":"ui_group","z":"","name":"RPI","tab":"250de740.57ee78","order":12,"disp":false,"width":6,"collapse":false},{"id":"250de740.57ee78","type":"ui_tab","z":"","name":"Dashboard","icon":"dashboard","order":1,"disabled":false,"hidden":false}]

```

**New:** to know the internal version of Node Red, you have the choice between manually entering the IP address of the NR server OR let it do it automatically by adding the node-red-contrib-ip node from the Manager palette.

**The output** of the `array to online` node, send :  
`msg.actualVersion` is the running NR version  
`msg.onlineVersion` is the online NR version on [https://nodered.org/](https://nodered.org/)

**Are there in addition:**

- A RESTART button ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/9/0/906ed8a63bea1f0e9425923594ccb818729f1549.png) : if you want to restart NR for any reason :
- A hidden DOWNGRADE button ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/b/f/bf2747dba51d06f4465610281dc070d8928efabd.png) : if you want to test with a previous version of NR

Tested on raspbian RPI 3B, RPI zero ...

Enjoy 🙂

Chris

---

<div class="post-metadata">

**Author:** ![Andrei](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/andrei/32/10446_2.png) [@Andrei](https://discourse.nodered.org/u/Andrei)\
**Post date:** [15 July 2020 00:19 UTC](https://discourse.nodered.org/t/edit-displays-if-a-new-node-red-update-is-available-online-and-update-it-from-the-dashboard/30061/2 "2020-07-15T00:19:55Z")

</div>

> [@SuperNinja](#):
>
> If you have a "Made-in-Node-Red" solution, it can be interesting.

A similar question has been discussed in the following post:

> [@One button upgrade in pallette?](https://discourse.nodered.org/t/one-button-upgrade-in-pallette/9103):
>
> Hi, One of the key attraction of NR for me is the user friendliness, the GUI and making coding so much more easier and intuitive and fun. The pallete to install nodes is a game changer for me as I can confidently install nodes without having to worry that I may type something wrong in the script or installing the nodes in wrong directory (happened to me) and corrupt something. We keep seeing posts about upgrade problems. Is there a possibility to have a one button upgrade in the pallette in NR.…

---

<div class="post-metadata">

**Author:** ![SuperNinja](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/superninja/32/5761_2.png) [@SuperNinja](https://discourse.nodered.org/u/SuperNinja)\
**Post date:** [15 July 2020 10:47 UTC](https://discourse.nodered.org/t/edit-displays-if-a-new-node-red-update-is-available-online-and-update-it-from-the-dashboard/30061/3 "2020-07-15T10:47:17Z")

</div>

Hi Andrei,  
I read diagonally the topics which deal with this subject, but without succes. I will continue on this topic, with a little luck I will fall on @knolleary .

have you made progress with the high quality camera based on PI?  
Thanks

---

<div class="post-metadata">

**Author:** ![Andrei](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/andrei/32/10446_2.png) [@Andrei](https://discourse.nodered.org/u/Andrei)\
**Post date:** [15 July 2020 12:16 UTC](https://discourse.nodered.org/t/edit-displays-if-a-new-node-red-update-is-available-online-and-update-it-from-the-dashboard/30061/4 "2020-07-15T12:16:15Z")

</div>

> [@SuperNinja](#):
>
> have you made progress with the high quality camera based on PI?

Hi Chris, I could not even start that project. My trusted supplier for Raspberry Pi hardware halted the dispatching to our country, via regular mail, because of the ongoing health crisis. For the time being they are only dispatching via courier and that more than triple the final cost.

---

<div class="post-metadata">

**Author:** ![SuperNinja](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/superninja/32/5761_2.png) [@SuperNinja](https://discourse.nodered.org/u/SuperNinja)\
**Post date:** [18 July 2020 06:52 UTC](https://discourse.nodered.org/t/edit-displays-if-a-new-node-red-update-is-available-online-and-update-it-from-the-dashboard/30061/5 "2020-07-18T06:52:10Z")

</div>

New in this EDIT : added update Node-Red button to Dashboard

---

<div class="post-metadata">

**Author:** ![cymplecy](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/cymplecy/32/2773_2.png) [@cymplecy](https://discourse.nodered.org/u/cymplecy)\
**Post date:** [18 July 2020 07:31 UTC](https://discourse.nodered.org/t/edit-displays-if-a-new-node-red-update-is-available-online-and-update-it-from-the-dashboard/30061/6 "2020-07-18T07:31:08Z")

</div>

Giving this a go now on a 1.1.0 Pi install

1st thing I noticed is that I deployed your flow and then opened up xxx:1880/ui and the dashboard appeared but it didn't show a new version was available so I thought it hadn't worked.

I went back to the flow to make sure i'd deployed and then came back to the dashboard to send you a pic when a few seconds later 1.1.2 appeared

So I pressed the update button and a message appeared saying updating but when I navigated away and came back - it wasn't there. Maybe add some status to main editing tab to say when update started and come back in 30 minutes?

Just passing this onto you for info

---

<div class="post-metadata">

**Author:** ![SuperNinja](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/superninja/32/5761_2.png) [@SuperNinja](https://discourse.nodered.org/u/SuperNinja)\
**Post date:** [18 July 2020 07:49 UTC](https://discourse.nodered.org/t/edit-displays-if-a-new-node-red-update-is-available-online-and-update-it-from-the-dashboard/30061/7 "2020-07-18T07:49:16Z")

</div>

I put a delay of 5s to start the flow. This is probably why it took a long time to display the new update ?

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/1/d/1d18b17cbf81702884e10c040edb82d6a7b0fad5.png)

have you tried the UPDATE NR button?

---

<div class="post-metadata">

**Author:** ![cymplecy](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/cymplecy/32/2773_2.png) [@cymplecy](https://discourse.nodered.org/u/cymplecy)\
**Post date:** [18 July 2020 07:51 UTC](https://discourse.nodered.org/t/edit-displays-if-a-new-node-red-update-is-available-online-and-update-it-from-the-dashboard/30061/8 "2020-07-18T07:51:49Z")

</div>

I'm still waiting to see if it updates - still currenly 100% CPU on my Pi so I'm thinking its not finished yet

I'm still waiting to see if it updates - still currenly 100% CPU on my Pi so I'm thinking its not finished yet  
After \>30 mins - still at 100% CPU - I'm re-booting my Pi

---

<div class="post-metadata">

**Author:** ![SuperNinja](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/superninja/32/5761_2.png) [@SuperNinja](https://discourse.nodered.org/u/SuperNinja)\
**Post date:** [18 July 2020 07:58 UTC](https://discourse.nodered.org/t/edit-displays-if-a-new-node-red-update-is-available-online-and-update-it-from-the-dashboard/30061/9 "2020-07-18T07:58:07Z")

</div>

on my RPI 3B I noticed an installation time of about 35-45s suddenly I set a tempo of 50s before resetting NR.

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/7/6/76a9a8431b275a9a76317385f449b1eb611b0a07.png)  
Depending on the power of your RPI it may take more time and increase the tempo?  
I would have liked the end of the installation to return a Flag to me but I am a beginner.

---

<div class="post-metadata">

**Author:** ![cymplecy](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/cymplecy/32/2773_2.png) [@cymplecy](https://discourse.nodered.org/u/cymplecy)\
**Post date:** [18 July 2020 08:03 UTC](https://discourse.nodered.org/t/edit-displays-if-a-new-node-red-update-is-available-online-and-update-it-from-the-dashboard/30061/10 "2020-07-18T08:03:24Z")

</div>

After reboot - it has upgraded to 1.1.2 🙂  
This is on a PiZero which is much slower than a Pi3B

It took a long time ( \> 1 min) to see the version number in the dashboard again and its telling me that there is a new 1.1.2 version (but now I am on 1.1.2 so I shouldn't see this)  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/9/4/94c2b6f40e07afa9a2d24506977760b4e2bffecc.png)

Editor window shows this (but spent a long time say requesting (\>1 min) on the http request node before showing this)

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/1/6/165a9f9fde9b480d5dda42d4aa30cf2aa1e200bd.jpeg)

---

<div class="post-metadata">

**Author:** ![SuperNinja](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/superninja/32/5761_2.png) [@SuperNinja](https://discourse.nodered.org/u/SuperNinja)\
**Post date:** [18 July 2020 08:08 UTC](https://discourse.nodered.org/t/edit-displays-if-a-new-node-red-update-is-available-online-and-update-it-from-the-dashboard/30061/11 "2020-07-18T08:08:19Z")

</div>

> [@cymplecy](#):
>
> After reboot - it has upgraded to 1.1.2 🙂

👍.  
you let it do the reboot all by itself, or you forced it manually with : ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/1/c/1c8cec71800db88c41d7eee1f01c8a2790176bd2.png) ?

> [@cymplecy](#):
>
> This is on a PiZero which is much slower than a Pi3B

It does the job anyway: cool!

---

<div class="post-metadata">

**Author:** ![cymplecy](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/cymplecy/32/2773_2.png) [@cymplecy](https://discourse.nodered.org/u/cymplecy)\
**Post date:** [18 July 2020 08:09 UTC](https://discourse.nodered.org/t/edit-displays-if-a-new-node-red-update-is-available-online-and-update-it-from-the-dashboard/30061/12 "2020-07-18T08:09:55Z")

</div>

> [@SuperNinja](#):
>
> you let it do the reboot all by itself, or you forced it manually with

I'd forgotton that button existed - sorry ☹ - I just assumed that the Pi was effectively stuck so I manually rebooted

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [18 July 2020 08:18 UTC](https://discourse.nodered.org/t/edit-displays-if-a-new-node-red-update-is-available-online-and-update-it-from-the-dashboard/30061/13 "2020-07-18T08:18:05Z")

</div>

If it monitored o/p 3 from the exec node it could indicate success or failure at the end and provide a popup to prompt for a restart.

It takes about 5 minutes on a Zero

---

<div class="post-metadata">

**Author:** ![SuperNinja](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/superninja/32/5761_2.png) [@SuperNinja](https://discourse.nodered.org/u/SuperNinja)\
**Post date:** [18 July 2020 08:18 UTC](https://discourse.nodered.org/t/edit-displays-if-a-new-node-red-update-is-available-online-and-update-it-from-the-dashboard/30061/14 "2020-07-18T08:18:34Z")

</div>

If you want to redo the test with an earlier version of NR and optimize the settings (increase "delay 50s" node to 60 or 70s), here is the command for installation in the Terminal:  
`sudo npm install -g --unsafe-perm node-red@v1.1.1`  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/2/e/2e9c1cf043d39148919f76112f11880f7f0e3aed.png)  
this first "http request: [http://192.168.1.54:1880/settings](http://192.168.1.54:1880/settings)" asks the system for different information internal to your PI.  
is it surprising that it takes so long? Unless he is stuck performing another very heavy task.

---

<div class="post-metadata">

**Author:** ![SuperNinja](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/superninja/32/5761_2.png) [@SuperNinja](https://discourse.nodered.org/u/SuperNinja)\
**Post date:** [18 July 2020 08:23 UTC](https://discourse.nodered.org/t/edit-displays-if-a-new-node-red-update-is-available-online-and-update-it-from-the-dashboard/30061/15 "2020-07-18T08:23:39Z")

</div>

> [@Colin](#):
>
> If it monitored **o/p 3 from the exec node** it could indicate success or failure at the end and provide a popup to prompt for a restart.

still a lot to learn, I will try, thank you @Colin

---

<div class="post-metadata">

**Author:** ![cymplecy](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/cymplecy/32/2773_2.png) [@cymplecy](https://discourse.nodered.org/u/cymplecy)\
**Post date:** [18 July 2020 08:27 UTC](https://discourse.nodered.org/t/edit-displays-if-a-new-node-red-update-is-available-online-and-update-it-from-the-dashboard/30061/16 "2020-07-18T08:27:32Z")

</div>

> [@SuperNinja](#):
>
> If you want to redo the test

I'll wait till version 1.1.3 comes out and try again then

I'll make sure its at its normal 2% CPU before doing it next time

---

<div class="post-metadata">

**Author:** ![SuperNinja](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/superninja/32/5761_2.png) [@SuperNinja](https://discourse.nodered.org/u/SuperNinja)\
**Post date:** [18 July 2020 08:31 UTC](https://discourse.nodered.org/t/edit-displays-if-a-new-node-red-update-is-available-online-and-update-it-from-the-dashboard/30061/17 "2020-07-18T08:31:07Z")

</div>

in the meantime, I will try to automate the reset of NR by scanning the output of the exec node. Rather than adjusting a tempo which can vary from one PI to another. Stay tunned 😉

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [18 July 2020 08:43 UTC](https://discourse.nodered.org/t/edit-displays-if-a-new-node-red-update-is-available-online-and-update-it-from-the-dashboard/30061/18 "2020-07-18T08:43:26Z")

</div>

@cymplecy Simon, for testing you can always downgrade NR with  
`sudo npm install -g --unsafe-perm node-red@1.1.0`

---

<div class="post-metadata">

**Author:** ![SuperNinja](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/superninja/32/5761_2.png) [@SuperNinja](https://discourse.nodered.org/u/SuperNinja)\
**Post date:** [20 July 2020 16:51 UTC](https://discourse.nodered.org/t/edit-displays-if-a-new-node-red-update-is-available-online-and-update-it-from-the-dashboard/30061/19 "2020-07-20T16:51:06Z")

</div>

New update . See [post #1](https://discourse.nodered.org/t/edit-displays-if-a-new-node-red-update-is-available-online-and-update-it-from-the-dashboard/30061)

---

<div class="post-metadata">

**Author:** ![WhiteLion](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/whitelion/32/12266_2.png) [@WhiteLion](https://discourse.nodered.org/u/WhiteLion)\
**Post date:** [22 July 2020 20:54 UTC](https://discourse.nodered.org/t/edit-displays-if-a-new-node-red-update-is-available-online-and-update-it-from-the-dashboard/30061/20 "2020-07-22T20:54:44Z")

</div>

While I trying to get local version I get "unauthorized"  
I have adminAuth enabled in the settings to access node red.  
what now ?

[Next page](https://discourse.nodered.org/t/edit-displays-if-a-new-node-red-update-is-available-online-and-update-it-from-the-dashboard/30061.md?page=2)
