Bluetooth: Xiaomi temperature/humidity

@pap Can you share the script here? That way if someone wants to do the same, they can!

I did something silly while adapting one of the existing scripts in the lib:

#!/bin/bash

mqtt_host=[server_ip_gladys]
mqtt_user=gladys
mqtt_pwd=***************

mosquitto_pub -h $mqtt_host -t "gladys/master/device/mqtt:$2/feature/mqtt:$2:temperature/state" -u $mqtt_user -P $mqtt_pwd -i "mibridge" -m "$3"
mosquitto_pub -h $mqtt_host -t "gladys/master/device/mqtt:$2/feature/mqtt:$2:humidity/state" -u $mqtt_user -P $mqtt_pwd -i "mibridge" -m "$4"
mosquitto_pub -h $mqtt_host -t "gladys/master/device/mqtt:$2/feature/mqtt:$2:voltage/state" -u $mqtt_user -P $mqtt_pwd -i "mibridge" -m "$5"
mosquitto_pub -h $mqtt_host -t "gladys/master/device/mqtt:$2/feature/mqtt:$2:battery/state" -u $mqtt_user -P $mqtt_pwd -i "mibridge" -m "$6"

Hello,
I have read the whole thread, but I don’t know if the sensors are available on Gladys. I did try to

He can’t find the git command because git is not installed.

sudo apt install git to install it

Good evening @VonOx
Thank you, I’ll continue, it’s working much better
Have a good evening

@VonOx
I’m stuck again at the npm install, even when prefixing it with sudo

-bash: npm: command not found

git clone https://github.com/atrovato/gladys-bluetooth-analyzer.git  
cd ./gladys-bluetooth-analyzer
npm install
npm start

You need to install Node.js

I’m giving you the first Google link I found in French

https://dedigo.fr/clients/knowledgebase/45/Comment-installer-NodeJS-14-debian.html

Thanks @VonOx
I’ll take a look at that
Have a good day