This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
en:mqtt-io [2022/01/22 12:07] Dmitriy created |
en:mqtt-io [2022/01/22 12:08] (current) Dmitriy [Run via systemd] |
||
---|---|---|---|
Line 19: | Line 19: | ||
Getting root | Getting root | ||
| | ||
- | <codebash> | + | <code bash> |
$ sudo -i | $ sudo -i | ||
</ | </ | ||
Line 25: | Line 25: | ||
mqtt-io installation: | mqtt-io installation: | ||
- | <codebash> | + | <code bash> |
# pip3 install mqtt-io | # pip3 install mqtt-io | ||
</ | </ | ||
Line 35: | Line 35: | ||
Example for JetHub D1: | Example for JetHub D1: | ||
- | <codebash> | + | <code bash> |
# echo 436 452 453 454 455 456 462 467 469 470 471 472 | xargs -n 1 echo >/ | # echo 436 452 453 454 455 456 462 467 469 470 471 472 | xargs -n 1 echo >/ | ||
</ | </ | ||
Line 42: | Line 42: | ||
Run mqtt-io: | Run mqtt-io: | ||
- | <codebash> | + | <code bash> |
# python3 -m mqtt_io / | # python3 -m mqtt_io / | ||
</ | </ | ||
Line 52: | Line 52: | ||
We start the editor: | We start the editor: | ||
- | <codebash> | + | <code bash> |
sudo nano / | sudo nano / | ||
</ | </ | ||
Line 79: | Line 79: | ||
We start the service: | We start the service: | ||
- | <codebash> | + | <code bash> |
sudo systemctl start mqtt-io | sudo systemctl start mqtt-io | ||
</ | </ | ||
Line 85: | Line 85: | ||
Check status/ | Check status/ | ||
- | <codebash> | + | <code bash> |
sudo systemctl status mqtt-io | sudo systemctl status mqtt-io | ||
</ | </ | ||
Line 91: | Line 91: | ||
Add to autoload: | Add to autoload: | ||
- | <codebash> | + | <code bash> |
sudo systemctl enable mqtt-io.service | sudo systemctl enable mqtt-io.service | ||
</ | </ | ||
Line 97: | Line 97: | ||
Let's look at the log: | Let's look at the log: | ||
- | <codebash> | + | <code bash> |
sudo journalctl -u mqtt-io.service -f | sudo journalctl -u mqtt-io.service -f | ||
</ | </ |