[V4] Reflection on remote control integration

Congratulations, take your time, enjoy especially :wink:

Hey!

This really interests me, I’m tempted to order the Broadlink RM Mini 3. Is it compatible, is that right?

Thanks :slight_smile:

@damalgos I wouldn’t need mine anymore if you’re interested in buying it (privately). It’s an RM3 Pro, used for 3 months for a robot vacuum.

I am bringing the topic back up to remind you: I am still waiting for your test results :slight_smile:

It’s kind of you, but I’m still waiting a little longer :slight_smile: I’ll see the money I have in my account at Christmas :smiley:

Hi Alex,
Well done and thanks for your work. I installed V4 on my Pi just last night and I have an RM Mini 3 that I was using on V3 to control my air conditioning. I’m available for testing :slight_smile:

Hello, good news!!

However, I have not generated a Docker image for this service. It is currently only available in development mode.

Oh nooo, I was going to promise you that I would do my tests this weekend, but if I have to go through developer mode, I might take a while to understand how it works
 I can manage in the Linux command line, but I’m far from an expert.

I will check with @Reno to generate a Docker image on this branch.

No problem. I was just about to suggest that
:wink:

Thanks @Reno for your help,
here’s how to integrate the generated image to test the Broadlink service:

docker run -d \
      --restart=always \
      --privileged \
      --network=host \
      --name gladys-broadlink \
      -p 80:80 \
      -e NODE_ENV=production \
      -e SERVER_PORT=80 \
      -e TZ=Europe/Paris \
      -e SQLITE_FILE_PATH=/var/lib/gladysassistant/gladys-production.db \
      -v /var/run/docker.sock:/var/run/docker.sock \
      -v ${PWD}/gladysassistant:/var/lib/gladysassistant \
      -v /dev:/dev \
      atrovato/gladys-broadlink:4.0.0-beta-arm

Looking forward to your feedback.

Hello, where do you send this command? On Docker, directly in PuTTY? Thanks in advance if you can detail
 I will test this tonight or at the latest tomorrow.

I launch directly on my rpi, in PuTTY.

Hello @AlexTrovato

With only one raspberry available (the others still in the boxes) with the Gladys 3.14 image on it, I had to manually install docker, I followed the documentation:

However, in their installation script, it seems that the addition of usage rights to docker is missing if you do not want to use it with root rights, so perhaps add it to the documentation:

If you would like to use Docker as a non-root user, you should now consider adding your user to the “docker” group with something like:

sudo usermod -aG docker your-user

And then I’m really struggling, I’ve been trying to figure it out for a few hours but I can’t do it
 docker tells me there is a port conflict, well, I understand, Gladys 3 is also on the machine, I stop with pm2, I stop and then delete the gladys-broadlink container. I run the command you gave earlier and here is what I get back:

pi@gladys:~ $ docker run -d       --restart=always       --privileged       --network=host       --name gladys-broadlink       -p 80:80       -e NODE_ENV=production       -e SERVER_PORT=80       -e TZ=Europe/Paris       -e SQLITE_FILE_PATH=/var/lib/gladysassistant/gladys-production.db       -v /var/run/docker.sock:/var/run/docker.sock       -v ${PWD}/gladysassistant:/var/lib/gladysassistant       -v /dev:/dev       atrovato/gladys-broadlink:4.0.0-beta-arm
WARNING: Published ports are discarded when using host network mode
2c69bf81a5c6934987b4cfb506ccaf3bb299da0fbd651c35ef3e9af0fb5beb45
pi@gladys:~ $

If I type the raspberry’s IP, I get Gladys 3 in offline mode, and if I put :1443 I get nothing.

Thanks in advance for your help.

ps: it seems that the container has no port assigned?..

pi@gladys:~ $ docker ps
CONTAINER ID        IMAGE                                      COMMAND                  CREATED             STATUS              PORTS                                                                           NAMES
2c69bf81a5c6        atrovato/gladys-broadlink:4.0.0-beta-arm   "docker-entrypoint.s
"   8 minutes ago       Up 15 seconds                                                                                       gladys-broadlink
pi@gladys:~ $

Hi,

In my opinion, --network=host should not be used since you are publishing the port you want to connect to the container.
The first 80 represents the connection port from the outside and the second represents the port on which the service is running in the container. The latter should therefore never be modified.
On the other hand, you can modify the first one. For example, you could leave your v3 (port 80) running and use 81 or rather 8080 to connect to the broadlink container. You will then need to type the chosen port number in your browser.
If you leave 80, you don’t need to enter a port number in your browser but your v3 cannot run in parallel.

@Jean34, the command I gave you will publish Gladys v4 on port 80, but not being a Docker expert, I’ll leave it to more competent people.

On sale for Christmas.

I received two today. I will do some testing this weekend if I find the time.

Hello @AlexTrovato

Well, I put Gladys 4 on another Rpi, everything works fine this time
 however, I don’t know how to include my RM Pro 3 in the integration part? Discover devices returns nothing even though the RM is on the network, since it is configured on my phone via the e-control app.

I admit I don’t really understand how to integrate it.

The RM should have been visible in the discover devices section
 I’ll check if it still works