version multi computer
This commit is contained in:
16
README.md
16
README.md
@@ -5,6 +5,12 @@
|
||||
installe un service qui creer des entites pour home assistant:
|
||||
- etat de la batterie
|
||||
- button pour eteindre le pc
|
||||
- reboot
|
||||
- eteindre l'ecran
|
||||
- cpu
|
||||
- memory
|
||||
- adresse ip
|
||||
- cpu frequency
|
||||
|
||||
## Prérequis
|
||||
|
||||
@@ -56,15 +62,17 @@ deactivate
|
||||
|
||||
## Installation en temps que service
|
||||
|
||||
authorisation de shutdown:
|
||||
authorisation de shutdown: ajouter a la fin du fichier
|
||||
|
||||
```
|
||||
sudo visudo
|
||||
```
|
||||
```
|
||||
gilles ALL=(ALL) NOPASSWD: /sbin/shutdown
|
||||
gilles ALL=(ALL) NOPASSWD: /sbin/reboot
|
||||
gilles ALL=(ALL) NOPASSWD: /usr/bin/tee /sys/devices/system/cpu/cpu0/cpufreq/scaling_setspeed
|
||||
```
|
||||
Installation du service:
|
||||
Installation du service en manuel:
|
||||
|
||||
```
|
||||
sudo cp mqtt_pilot.service /etc/systemd/system/
|
||||
@@ -81,3 +89,7 @@ sudo systemctl start mqtt_pilot.service
|
||||
```
|
||||
sudo systemctl status mqtt_pilot.service
|
||||
```
|
||||
lancer l'installation du service:
|
||||
```
|
||||
sudo ./install.sh
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user