# Node-RED integration to launch a container with one click

**URL:** <https://community.gladysassistant.com/t/integration-node-red-pour-lancer-un-container-en-un-clic/6584>\
**Category:** Demandes livrées\
**Tags:** feature-integration, node-red\
**Created:** [October 10, 2021, 7:52pm UTC](https://community.gladysassistant.com/t/integration-node-red-pour-lancer-un-container-en-un-clic/6584 "2021-10-10T19:52:29Z")\
**Posts on this page:** 20\
**Page:** 3

<div class="post-metadata">

**Author:** ![cce66](https://gladys-assistant-community.b-cdn.net/letter_avatar_proxy/v4/letter/c/8797f3/32.png) [@cce66](https://community.gladysassistant.com/u/cce66)\
**Post date:** [September 8, 2023, 9:10am UTC](https://community.gladysassistant.com/t/integration-node-red-pour-lancer-un-container-en-un-clic/6584/41 "2023-09-08T09:10:03Z")

</div>

@Lokkye  
Hats off for this development! I really think it was a necessity for the average user because they will no longer need to perform command-line operations to get Node-RED with Gladys and it will allow anyone to integrate any hardware into Gladys via Node-RED like I did with my IPX800V5 or to cover any need! For example here, I send Gladys the altitude and azimuth of the sun at fixed intervals to control roller shutters!

 ![image](https://gladys-assistant-community.b-cdn.net/uploads/default/original/2X/8/82cff56c9a0a22ea8e558041b7ac54b638753c84.png)

 ![image](https://gladys-assistant-community.b-cdn.net/uploads/default/original/2X/a/a441b75f47054561c65b3e5fedbc06366ed679f2.png)

Now integrating speech recognition ([https://hub.docker.com/r/alphacep/kaldi-vosk-server](https://hub.docker.com/r/alphacep/kaldi-vosk-server)) and Text To Speech ([Docker images - TTS 0.22.0 documentation](https://tts.readthedocs.io/en/latest/docker_images.html)) into Gladys via containers? 🤪 🥳  
Thanks again for this development and I can’t wait for it to be in production! 😉

---

<div class="post-metadata">

**Author:** ![Lokkye](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/lokkye/32/5881_2.png) [@Lokkye](https://community.gladysassistant.com/u/Lokkye)\
**Post date:** [September 11, 2023, 8:43am UTC](https://community.gladysassistant.com/t/integration-node-red-pour-lancer-un-container-en-un-clic/6584/42 "2023-09-11T08:43:36Z")

</div>

Thanks @pierre-gilles for the thorough test 🙂

> [@pierre-gilles](#):
>
> So, if I’ve already configured Node-RED once, I’m stuck (I think the old password is still in the file). By testing the hash against the password, indeed it’s not the same password. Do you properly delete the folder /var/lib/gladysassistant/node-red if the user decides to trash the Node-RED integration?

Oh darn, I had forgotten. I just committed the change

> [@pierre-gilles](#):
>
> - «&nbsp;server&nbsp;» → «&nbsp;serveur&nbsp;» in French
> - We should standardize the name «&nbsp;Node-RED&nbsp;» in the integration. The official name is «&nbsp;Node-RED&nbsp;», except there are several casings in the UI (Node-red, NodeRed).
> - For the documentation link, can you make «&nbsp;node-red&nbsp;» lowercase? There’s casing inconsistency there.

I’ve just fixed everything in the latest commit.

> [@pierre-gilles](#):
>
> Another more general question: shouldn’t we freeze the Node-RED version? (At least a major or minor version)

You’re right. I also prefer fixing a version; at least we know what’s actually installed.  
It’s fixed in the latest commit

The Docker image is being built with all the changes

---

<div class="post-metadata">

**Author:** ![pierre-gilles](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pierre-gilles/32/5886_2.png) [@pierre-gilles](https://community.gladysassistant.com/u/pierre-gilles)\
**Post date:** [September 11, 2023, 9:29am UTC](https://community.gladysassistant.com/t/integration-node-red-pour-lancer-un-container-en-un-clic/6584/43 "2023-09-11T09:29:53Z")

</div>

Thanks for the changes @Lokkye, I stopped then restarted Node-RED and now it works 🥳

**Some feedback:**

1. There’s still the margin issue on the «&nbsp;Disable&nbsp;» button. Adding a small class «&nbsp;mt-4&nbsp;» (margin-top 4) on the div «&nbsp;Node-RED service state&nbsp;» makes it look better, I think:

 ![Screenshot 2023-09-11 at 11.26.20](https://gladys-assistant-community.b-cdn.net/uploads/default/original/2X/f/f71c523e23ca5176b6dae8bfe40e323320aaf20a.png)

1. The documentation link has a small typo «&nbsp;noder-red&nbsp;» instead of «&nbsp;node-red&nbsp;»

2. Still the little «&nbsp;jump&nbsp;» when disabling the service (same video as in my previous message)

Otherwise everything else is good 🙂 Nice work!

---

<div class="post-metadata">

**Author:** ![Lokkye](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/lokkye/32/5881_2.png) [@Lokkye](https://community.gladysassistant.com/u/Lokkye)\
**Post date:** [September 11, 2023, 10:49am UTC](https://community.gladysassistant.com/t/integration-node-red-pour-lancer-un-container-en-un-clic/6584/44 "2023-09-11T10:49:53Z")

</div>

> [@pierre-gilles](#):
>
> There is still the margin issue on the «&nbsp;Disable&nbsp;» button. With a small class «&nbsp;mt-4&nbsp;» (margin-top 4) on the «&nbsp;Node-RED service status&nbsp;» div, it looks better I think:

Oops, I forgot, it’s fixed now

> [@pierre-gilles](#):
>
> The documentation link has a small typo «&nbsp;noder-red&nbsp;» instead of «&nbsp;node-red&nbsp;»

Fixed

> [@pierre-gilles](#):
>
> Still the little «&nbsp;jump&nbsp;» when disabling the service (same video as in my previous message)

What do you think of this version?

---

<div class="post-metadata">

**Author:** ![pierre-gilles](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pierre-gilles/32/5886_2.png) [@pierre-gilles](https://community.gladysassistant.com/u/pierre-gilles)\
**Post date:** [September 11, 2023, 11:36am UTC](https://community.gladysassistant.com/t/integration-node-red-pour-lancer-un-container-en-un-clic/6584/45 "2023-09-11T11:36:38Z")

</div>

Thanks for all the changes!

> [@Lokkye](#):
>
> What do you think of this version?

It’s much better 🙂

If everything’s good for you, could you re-run a build and I’ll do a final review?

---

<div class="post-metadata">

**Author:** ![Lokkye](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/lokkye/32/5881_2.png) [@Lokkye](https://community.gladysassistant.com/u/Lokkye)\
**Post date:** [September 11, 2023, 1:32pm UTC](https://community.gladysassistant.com/t/integration-node-red-pour-lancer-un-container-en-un-clic/6584/46 "2023-09-11T13:32:36Z")

</div>

@pierre-gilles: The Docker image build is finished 🙂

---

<div class="post-metadata">

**Author:** ![qleg](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/qleg/32/12290_2.png) [@qleg](https://community.gladysassistant.com/u/qleg)\
**Post date:** [September 11, 2023, 3:25pm UTC](https://community.gladysassistant.com/t/integration-node-red-pour-lancer-un-container-en-un-clic/6584/47 "2023-09-11T15:25:43Z")

</div>

What happens when you pin a version on the Gladys side with Watchtower? Doesn’t Watchtower update the container to the latest version?

---

<div class="post-metadata">

**Author:** ![pierre-gilles](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pierre-gilles/32/5886_2.png) [@pierre-gilles](https://community.gladysassistant.com/u/pierre-gilles)\
**Post date:** [September 11, 2023, 3:33pm UTC](https://community.gladysassistant.com/t/integration-node-red-pour-lancer-un-container-en-un-clic/6584/48 "2023-09-11T15:33:32Z")

</div>

Great, I’ll test @Lokkye !

> [@qleg](#):
>
> How does it work when you fix a version on the Gladys side with Watchtower? Watchtower doesn’t update the container to the latest version?

No! Watchtower updates a container if the referenced image is updated; to move from one version to another, you have to use a «&nbsp;floating&nbsp;» tag whose image is overwritten at

---

<div class="post-metadata">

**Author:** ![pierre-gilles](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pierre-gilles/32/5886_2.png) [@pierre-gilles](https://community.gladysassistant.com/u/pierre-gilles)\
**Post date:** [September 11, 2023, 3:53pm UTC](https://community.gladysassistant.com/t/integration-node-red-pour-lancer-un-container-en-un-clic/6584/49 "2023-09-11T15:53:21Z")

</div>

@Lokkye are you sure the build is finished? I pulled, restarted the container, and despite that I still have the old version (no margin, and the button still jumps)

---

<div class="post-metadata">

**Author:** ![GBoulvin](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/gboulvin/32/10006_2.png) [@GBoulvin](https://community.gladysassistant.com/u/GBoulvin)\
**Post date:** [September 11, 2023, 4:10pm UTC](https://community.gladysassistant.com/t/integration-node-red-pour-lancer-un-container-en-un-clic/6584/50 "2023-09-11T16:10:37Z")

</div>

Maybe a stupid question but… Are you sure you refreshed your browser?  
I’m asking because I had the same issue last time, despite a full rmi/pull…

---

<div class="post-metadata">

**Author:** ![pierre-gilles](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pierre-gilles/32/5886_2.png) [@pierre-gilles](https://community.gladysassistant.com/u/pierre-gilles)\
**Post date:** [September 11, 2023, 4:13pm UTC](https://community.gladysassistant.com/t/integration-node-red-pour-lancer-un-container-en-un-clic/6584/51 "2023-09-11T16:13:22Z")

</div>

Yes yes, I refreshed, I think the image isn’t up to date or was built on an older version?

---

<div class="post-metadata">

**Author:** ![GBoulvin](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/gboulvin/32/10006_2.png) [@GBoulvin](https://community.gladysassistant.com/u/GBoulvin)\
**Post date:** [September 11, 2023, 5:23pm UTC](https://community.gladysassistant.com/t/integration-node-red-pour-lancer-un-container-en-un-clic/6584/52 "2023-09-11T17:23:33Z")

</div>

That’s how it is on my end, is that okay?

 ![Screenshot_20230911_192123_com.android.chrome](https://gladys-assistant-community.b-cdn.net/uploads/default/original/2X/a/a901bb780cf6b3aaad9614ffe74087f1d200ad44.jpeg)  
Edit: For me, we should add that the container can take up to 5 minutes to be deployed depending on the machine, the connection, etc…

---

<div class="post-metadata">

**Author:** ![pierre-gilles](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pierre-gilles/32/5886_2.png) [@pierre-gilles](https://community.gladysassistant.com/u/pierre-gilles)\
**Post date:** [September 11, 2023, 5:34pm UTC](https://community.gladysassistant.com/t/integration-node-red-pour-lancer-un-container-en-un-clic/6584/53 "2023-09-11T17:34:03Z")

</div>

Hard to compare, it’s the desktop web behavior I was looking at 🙂

---

<div class="post-metadata">

**Author:** ![GBoulvin](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/gboulvin/32/10006_2.png) [@GBoulvin](https://community.gladysassistant.com/u/GBoulvin)\
**Post date:** [September 11, 2023, 5:55pm UTC](https://community.gladysassistant.com/t/integration-node-red-pour-lancer-un-container-en-un-clic/6584/54 "2023-09-11T17:55:08Z")

</div>

Oops, indeed, no change then…

 ![image](https://gladys-assistant-community.b-cdn.net/uploads/default/original/2X/b/b011f03be7d8fc9711b4e78044fe84609849d629.png)

---

<div class="post-metadata">

**Author:** ![Lokkye](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/lokkye/32/5881_2.png) [@Lokkye](https://community.gladysassistant.com/u/Lokkye)\
**Post date:** [September 12, 2023, 6:17am UTC](https://community.gladysassistant.com/t/integration-node-red-pour-lancer-un-container-en-un-clic/6584/55 "2023-09-12T06:17:43Z")

</div>

Oops, sorry I forgot to push the code ☹  
It’s done now, the Docker image has been pushed and I tested in my environment that the Docker image included the changes

---

<div class="post-metadata">

**Author:** ![pierre-gilles](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pierre-gilles/32/5886_2.png) [@pierre-gilles](https://community.gladysassistant.com/u/pierre-gilles)\
**Post date:** [September 12, 2023, 7:23am UTC](https://community.gladysassistant.com/t/integration-node-red-pour-lancer-un-container-en-un-clic/6584/56 "2023-09-12T07:23:56Z")

</div>

Excellent, it’s been tested and approved on my end functionally! I’ll look at the PR for code quality and I’ll keep you posted.

---

<div class="post-metadata">

**Author:** ![pierre-gilles](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pierre-gilles/32/5886_2.png) [@pierre-gilles](https://community.gladysassistant.com/u/pierre-gilles)\
**Post date:** [September 12, 2023, 7:37am UTC](https://community.gladysassistant.com/t/integration-node-red-pour-lancer-un-container-en-un-clic/6584/57 "2023-09-12T07:37:37Z")

</div>

Regarding my technical review, I have some feedback:

> <https://github.com/GladysAssistant/Gladys/pull/1809#pullrequestreview-1619526444>
>
> \### Pull Request check-list
> 
> To ensure your Pull Request can be accepted as fa…st as possible, make sure to review and check all of these items:
> 
> \- \[x\] If your changes affects code, did your write the tests?
> \- \[x\] Are tests passing? (\`npm test\` on both front/server)
> \- \[x\] Is the linter passing? (\`npm run eslint\` on both front/server)
> \- \[x\] Did you run prettier? (\`npm run prettier\` on both front/server)
> \- \[x\] If you are adding a new features/services, did you run integration comparator? (\`npm run compare-translations\` on front)
> \- \[x\] Did you test this pull request in real life? With real devices? If this development is a big feature or a new service, we recommend that you provide a Docker image to \[the community\](https://community.gladysassistant.com/) for testing before merging.
> \- \[x\] If your changes modify the API (REST or Node.js), did you modify the API documentation? (Documentation is based on comments in code)
> 
> 
> \### Description of change
> Provide a new service to start node-red into docker and follow the status.
> 
> \<img width="366" alt="Screenshot 2023-06-08 at 15 11 38" src="https://github.com/GladysAssistant/Gladys/assets/11317212/3eacfb1a-4dee-450c-8fef-c72ed7fef718"\>
> \<img width="977" alt="Screenshot 2023-06-08 at 15 11 52" src="https://github.com/GladysAssistant/Gladys/assets/11317212/4358d321-a8db-426b-9feb-d4e193acf6ee"\>

---

<div class="post-metadata">

**Author:** ![Psoy](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/psoy/32/9005_2.png) [@Psoy](https://community.gladysassistant.com/u/Psoy)\
**Post date:** [September 14, 2023, 5:31am UTC](https://community.gladysassistant.com/t/integration-node-red-pour-lancer-un-container-en-un-clic/6584/58 "2023-09-14T05:31:12Z")

</div>

hello  
I just installed the Node-RED test image, everything is going well, I have the correct interface, but when I click on the URL, I cannot access Node-RED.  
Do I need to change or recreate the password?  
thank you for your help

---

<div class="post-metadata">

**Author:** ![Lokkye](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/lokkye/32/5881_2.png) [@Lokkye](https://community.gladysassistant.com/u/Lokkye)\
**Post date:** [September 14, 2023, 6:03am UTC](https://community.gladysassistant.com/t/integration-node-red-pour-lancer-un-container-en-un-clic/6584/59 "2023-09-14T06:03:17Z")

</div>

@pierre-gilles: I’ve addressed the feedback on the PR.  
@Psoy: Do you not see the Node-RED login page, or are you unable to log in with the provided username/password?

---

<div class="post-metadata">

**Author:** ![Psoy](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/psoy/32/9005_2.png) [@Psoy](https://community.gladysassistant.com/u/Psoy)\
**Post date:** [September 14, 2023, 6:16am UTC](https://community.gladysassistant.com/t/integration-node-red-pour-lancer-un-container-en-un-clic/6584/60 "2023-09-14T06:16:12Z")

</div>

hello @Lokkye  
I can see the page :

 ![image](https://gladys-assistant-community.b-cdn.net/uploads/default/original/2X/3/3f338e435ce115f7220701beddf2772ffae8148f.png)  
I do nothing other than click on the URL, without touching the password, and this is what happens

```auto
Connection failed

Firefox cannot establish a connection to the server at 192.168.1.136:1881.

    The site might be temporarily unavailable or overloaded. Try again later;
    If you are unable to browse any sites, check your computer's network connection;
    If your computer or network is protected by a firewall or proxy, make sure that Firefox is allowed to access the Web.

```

[Previous page](https://community.gladysassistant.com/t/integration-node-red-pour-lancer-un-container-en-un-clic/6584.md?page=2)

[Next page](https://community.gladysassistant.com/t/integration-node-red-pour-lancer-un-container-en-un-clic/6584.md?page=4)
