esphome/notes.md
2025-05-26 11:29:12 +02:00

46 lines
993 B
Markdown

# Notes
## Matériel
### Anémomètre
SN-3000-FSJT-N01
```
Nom : Lecteur de pare-brise en polycarbonate 485
Alimentation : 10~30V
Séquence de lignes :
Marron : alimentation positive
Noir : alimentation négative
Jaune (vert) : 485 A
Bleu : 485 B
Numéro de lot : 2502
Propriétaire : Shandong Saien Electronic Technology Co., Ltd.
Adresse : n° 1193, route Gangyuan, ville de Jinan, province du Shandong
```
## Soft
### conf mosquitto
### Génération clés SSL
```
openssl req -x509 -newkey rsa:2048 -keyout mosquitto.key -out mosquitto.crt \
-days 36500 -nodes \
-subj "/CN=pc-raymond.home"
```
NB : Clé valable 100 ans
### Génération couple user/passw
docker run -it --rm -v /tmp:/mosquitto/config eclipse-mosquitto mosquitto_passwd -c /mosquitto/config/password.txt admin
### lire topic
```
docker run --add-host host.docker.internal:host-gateway -it eclipse-mosquitto mosquitto_sub \
-u <username> -P <password> \
-h host.docker.internal -p 1883 -t "rbo2"
```