# New YouTube video: Using Gladys Assistant 4's MQTT API in Node.js (Live coding)

**URL:** <https://community.gladysassistant.com/t/nouvelle-video-youtube-utiliser-lapi-mqtt-de-gladys-assistant-4-en-node-js-live-coding/6332>\
**Category:** Actualités\
**Created:** [May 21, 2021, 3:17am UTC](https://community.gladysassistant.com/t/nouvelle-video-youtube-utiliser-lapi-mqtt-de-gladys-assistant-4-en-node-js-live-coding/6332 "2021-05-21T03:17:57Z")\
**Posts on this page:** 19\
**Page:** 1

<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:** [May 21, 2021, 3:17am UTC](https://community.gladysassistant.com/t/nouvelle-video-youtube-utiliser-lapi-mqtt-de-gladys-assistant-4-en-node-js-live-coding/6332/1 "2021-05-21T03:17:57Z")

</div>

Last week, I published a video [Gladys Assistant 4 Demo](https://www.youtube.com/watch?v=yP-umEMVcro), and you are already more than 700 to have watched the video in one week!!

Following this success, I am publishing a new video, this time more technical.

In this video, I show you how to use the Gladys MQTT API from Node.js.

I chose Node.js because it’s a platform I use every day, but the operation is the same for any language that supports MQTT (Python, Java, PHP, C, C++, it doesn’t matter)

The video is a live coding session, nothing scripted: It’s more of a live coding couch atmosphere than a lesson 😃

So yes, I make a lot of mistakes during the coding, left intentionally to show you that even a professional dev spends 3/4 of their time searching through docs, code examples 😛

[![](https://gladys-assistant-community.b-cdn.net/uploads/default/original/2X/8/818befc53cd7b34a023535c27a8132184c90b298.jpeg "Utiliser l'API MQTT de Gladys Assistant 4 en Node.js (Live coding)") ](https://www.youtube.com/watch?v=o5yn_FnYtkc)

Don’t hesitate if you have feedback, and if you want me to make a video on a particular topic, don’t hesitate to ask!

---

<div class="post-metadata">

**Author:** ![VonOx](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/vonox/32/10128_2.png) [@VonOx](https://community.gladysassistant.com/u/VonOx)\
**Post date:** [May 21, 2021, 6:48am UTC](https://community.gladysassistant.com/t/nouvelle-video-youtube-utiliser-lapi-mqtt-de-gladys-assistant-4-en-node-js-live-coding/6332/2 "2021-05-21T06:48:00Z")

</div>

Top that, but your living room really looks like a kitchen 😁

---

<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:** [May 21, 2021, 6:50am UTC](https://community.gladysassistant.com/t/nouvelle-video-youtube-utiliser-lapi-mqtt-de-gladys-assistant-4-en-node-js-live-coding/6332/3 "2021-05-21T06:50:32Z")

</div>

Oh dear, I knew there was no place for an oven here! 😂

---

<div class="post-metadata">

**Author:** ![Tlse-vins](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/tlse-vins/32/6054_2.png) [@Tlse-vins](https://community.gladysassistant.com/u/Tlse-vins)\
**Post date:** [May 21, 2021, 7:03am UTC](https://community.gladysassistant.com/t/nouvelle-video-youtube-utiliser-lapi-mqtt-de-gladys-assistant-4-en-node-js-live-coding/6332/4 "2021-05-21T07:03:42Z")

</div>

The video is really nice, even though I’m not the target audience. I think it could interest a lot of people.

---

<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:** [May 21, 2021, 7:20am UTC](https://community.gladysassistant.com/t/nouvelle-video-youtube-utiliser-lapi-mqtt-de-gladys-assistant-4-en-node-js-live-coding/6332/5 "2021-05-21T07:20:05Z")

</div>

Thanks @Tlse-vins! I think I’ll continue with the videos, it’s a good way to show the possibilities of Gladys.

Actually, I feel like out of all the work I’ve done in the last 6 months, few people have seen the real possibilities offered by Gladys, whereas for me, as it stands, it’s already super powerful. Sure, there are things missing, we don’t have all the integrations in the world yet, but for now, just with the «&nbsp;strong&nbsp;» integrations we have (I’m thinking of Zigbee2mqtt, MQTT, Philips Hue, Owntracks, Caldav and Telegram) + the scenes that are starting to be powerful, it’s already possible to set up a Gladys of the future.

The video is coming to show what is possible, and I hope it will motivate people to join us 🙂

I added the demo video to the site otherwise:

 ![Screenshot 2021-05-21 at 15.16.56](https://gladys-assistant-community.b-cdn.net/uploads/default/original/2X/0/030abc2f752263c3215cbdd3aa2048ca10e616c1.jpeg)

I went through the trouble of making the video load only on-click, I made a fake YouTube play button, so the homepage performance isn’t impacted.

---

<div class="post-metadata">

**Author:** ![Tlse-vins](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/tlse-vins/32/6054_2.png) [@Tlse-vins](https://community.gladysassistant.com/u/Tlse-vins)\
**Post date:** [May 21, 2021, 7:24am UTC](https://community.gladysassistant.com/t/nouvelle-video-youtube-utiliser-lapi-mqtt-de-gladys-assistant-4-en-node-js-live-coding/6332/6 "2021-05-21T07:24:16Z")

</div>

To have a community on Twitch by doing some live streams?  
You would have questions from new curious viewers as well as from new viewers who are more into technique searching.

---

<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:** [May 21, 2021, 7:25am UTC](https://community.gladysassistant.com/t/nouvelle-video-youtube-utiliser-lapi-mqtt-de-gladys-assistant-4-en-node-js-live-coding/6332/7 "2021-05-21T07:25:44Z")

</div>

Does this really have an interest compared to YouTube? (I don’t know, I’ve never used Twitch)

Why not in real life, I’m open to anything to show Gladys and convert people 🙂

---

<div class="post-metadata">

**Author:** ![Albenss](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/albenss/32/3916_2.png) [@Albenss](https://community.gladysassistant.com/u/Albenss)\
**Post date:** [May 21, 2021, 7:49am UTC](https://community.gladysassistant.com/t/nouvelle-video-youtube-utiliser-lapi-mqtt-de-gladys-assistant-4-en-node-js-live-coding/6332/8 "2021-05-21T07:49:02Z")

</div>

The advantage of Twitch is the direct relationship with the viewer, which allows you to think in real-time with them, unlike YouTube where feedback is delayed.

It also allows you to do live polls or things like that live to get your viewers’ opinions 🙂

---

<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:** [May 21, 2021, 7:52am UTC](https://community.gladysassistant.com/t/nouvelle-video-youtube-utiliser-lapi-mqtt-de-gladys-assistant-4-en-node-js-live-coding/6332/9 "2021-05-21T07:52:56Z")

</div>

Okay, and do you usually watch Twitch at what time? 🙂 More during the week or more on the weekend?

So I can see how it might work with the time difference (I live in Indonesia, +6 hours compared to France) 🙂

---

<div class="post-metadata">

**Author:** ![Albenss](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/albenss/32/3916_2.png) [@Albenss](https://community.gladysassistant.com/u/Albenss)\
**Post date:** [May 21, 2021, 8:06am UTC](https://community.gladysassistant.com/t/nouvelle-video-youtube-utiliser-lapi-mqtt-de-gladys-assistant-4-en-node-js-live-coding/6332/10 "2021-05-21T08:06:51Z")

</div>

For my part, not too much on the weekend, more during the week and in the evening.  
But it also happens during the day while telecommuting to have background audio to remind me of my beloved open-space 😂

Considering the time difference, between noon and 2 PM on weekdays, that should be possible, right?

---

<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:** [May 21, 2021, 8:17am UTC](https://community.gladysassistant.com/t/nouvelle-video-youtube-utiliser-lapi-mqtt-de-gladys-assistant-4-en-node-js-live-coding/6332/11 "2021-05-21T08:17:06Z")

</div>

Absolutely possible yes 🙂 Maybe more on the weekend though, I think, everyone has to work during the week, right? Well, I really don’t know, maybe young people are more free during the week?

I’m saying this from my 26 years of age 😂, after that, I’m used to workdays where I emerge at 7 PM after a non-stop day, I never have time for this kind of content so I don’t really know what people do 😁

---

<div class="post-metadata">

**Author:** ![VonOx](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/vonox/32/10128_2.png) [@VonOx](https://community.gladysassistant.com/u/VonOx)\
**Post date:** [May 21, 2021, 9:00am UTC](https://community.gladysassistant.com/t/nouvelle-video-youtube-utiliser-lapi-mqtt-de-gladys-assistant-4-en-node-js-live-coding/6332/12 "2021-05-21T09:00:41Z")

</div>

Yeah and if you have kids 🧒 too 😅

---

<div class="post-metadata">

**Author:** ![Exilon62](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/exilon62/32/6003_2.png) [@Exilon62](https://community.gladysassistant.com/u/Exilon62)\
**Post date:** [May 21, 2021, 10:12am UTC](https://community.gladysassistant.com/t/nouvelle-video-youtube-utiliser-lapi-mqtt-de-gladys-assistant-4-en-node-js-live-coding/6332/13 "2021-05-21T10:12:04Z")

</div>

For Twitch live streams, it would be really interesting to stream the development of certain features of Gladys. I’ve seen that this is done a lot for websites and video game creations, with between 30 and 100 people each time I came across this kind of content.

---

<div class="post-metadata">

**Author:** ![Tlse-vins](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/tlse-vins/32/6054_2.png) [@Tlse-vins](https://community.gladysassistant.com/u/Tlse-vins)\
**Post date:** [May 21, 2021, 10:20am UTC](https://community.gladysassistant.com/t/nouvelle-video-youtube-utiliser-lapi-mqtt-de-gladys-assistant-4-en-node-js-live-coding/6332/14 "2021-05-21T10:20:29Z")

</div>

@Albenss has well summarized the principle of Twitch.  
I watch more in the evening after 8 PM on weekdays. But for you, it will be tough!  
I don’t think it’s necessary at the beginning to do it every week, but once a month and participate in other more known live streams like Micode.

- Presentation of Gladys and the features present
- Future development of such or such integration (involve the streamers)

> [@Exilon62](#):
>
> streaming the development of certain Gladys features

Yes, even debugging (but there isn’t any on Gladys so the live will be very short 😁  
You would need a second in Europe, Pierre-Gilles, wouldn’t you @VonOx.

---

<div class="post-metadata">

**Author:** ![VonOx](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/vonox/32/10128_2.png) [@VonOx](https://community.gladysassistant.com/u/VonOx)\
**Post date:** [May 21, 2021, 10:41am UTC](https://community.gladysassistant.com/t/nouvelle-video-youtube-utiliser-lapi-mqtt-de-gladys-assistant-4-en-node-js-live-coding/6332/15 "2021-05-21T10:41:25Z")

</div>

In our time, or at least in our generation, we no longer consume traditional television.

For my part, when I can, it’s live Twitch, otherwise it’s YouTube reruns. (When the streamer doesn’t forget the audio, 😁 hi @AlexTrovato)

---

<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:** [May 22, 2021, 1:54am UTC](https://community.gladysassistant.com/t/nouvelle-video-youtube-utiliser-lapi-mqtt-de-gladys-assistant-4-en-node-js-live-coding/6332/16 "2021-05-22T01:54:27Z")

</div>

Okay, I’ll see what I can do then 😄 Let’s test Twitch!

---

<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:** [May 23, 2021, 5:38am UTC](https://community.gladysassistant.com/t/nouvelle-video-youtube-utiliser-lapi-mqtt-de-gladys-assistant-4-en-node-js-live-coding/6332/17 "2021-05-23T05:38:04Z")

</div>

I’ve created a Twitch account for Gladys! =\> [Twitch](https://www.twitch.tv/gladysassistant)

Since tomorrow (Monday) is a holiday, it would be a good opportunity to do a live stream, right?

Tomorrow morning, Monday, May 24th, would you be interested in a Twitch live stream, and if so, at what time?

_Poll ([view on site](https://community.gladysassistant.com/t/nouvelle-video-youtube-utiliser-lapi-mqtt-de-gladys-assistant-4-en-node-js-live-coding/6332/17))_

In terms of topics, it depends on the audience, but I can do a bit of everything:

- Either a presentation of Gladys with Q&A
- Or a live coding session developing a service (but that might be too complicated for a first live stream, depending on the audience)

---

<div class="post-metadata">

**Author:** ![Tlse-vins](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/tlse-vins/32/6054_2.png) [@Tlse-vins](https://community.gladysassistant.com/u/Tlse-vins)\
**Post date:** [May 23, 2021, 6:47am UTC](https://community.gladysassistant.com/t/nouvelle-video-youtube-utiliser-lapi-mqtt-de-gladys-assistant-4-en-node-js-live-coding/6332/18 "2021-05-23T06:47:58Z")

</div>

I think that for the first live, you should do a general presentation.  
When the time is determined, I will talk about it on the domotique Discord.

---

<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:** [May 24, 2021, 3:54am UTC](https://community.gladysassistant.com/t/nouvelle-video-youtube-utiliser-lapi-mqtt-de-gladys-assistant-4-en-node-js-live-coding/6332/19 "2021-05-24T03:54:54Z")

</div>

Live Twitch at 9 AM then!

> [@1er live Twitch Gladys Assistant ce lundi 24 Mai à 9h en France!](https://community.gladysassistant.com/t/1er-live-twitch-gladys-assistant-ce-lundi-24-mai-a-9h-en-france/6342):
>
> Salut à tous ! Certains d’entre vous ont demandé des lives Twitch, et le premier c’est aujourd’hui à 9h (lundi 24 mai) ! slight_smile[La chaine Twitch Gladys Assistant est disponible ici](https://www.twitch.tv/gladysassistant) A tout à l’heure sur Twitch !
