updated README

pull/25/MERGE
13621160019@163.com 2021-03-31 12:30:34 +08:00
parent 49013e9516
commit 635fa307dd
6 changed files with 85 additions and 24 deletions

View File

@ -31,11 +31,10 @@ Install myems-aggregation service:
$ sudo git checkout master (or the latest release tag)
$ sudo cp -R ~/myems/myems-aggregation /myems-aggregation
```
Edit config.py for your project
Edit config.py
```
$ sudo nano /myems-aggregation/config.py
```
Setup systemd service:
```
$ sudo cp myems-aggregation.service /lib/systemd/system/
@ -44,11 +43,18 @@ Install myems-aggregation service:
```
$ sudo systemctl enable myems-aggregation.service
```
Start the service:
```
$ sudo systemctl start myems-aggregation.service
```
Monitor the service:
```bash
$ sudo systemctl status myems-aggregation.service
```
View the log:
```bash
$ cat /myems-aggregation.log
```
### References

View File

@ -46,16 +46,30 @@ Install myems-bacnet service
$ git checkout master (or the latest release tag)
$ sudo cp -R ~/myems/myems-bacnet /myems-bacnet
```
Eidt the config config
Edit the config
```
$ sudo nano /myems-bacnet/config.py
```
Setup systemd service:
```bash
$ sudo cp myems-bacnet.service /lib/systemd/system/
```
$ sudo cp /myems-bacnet/myems-bacnet.service /lib/systemd/system/
Enable the service:
```bash
$ sudo systemctl enable myems-bacnet.service
```
Start the service:
```bash
$ sudo systemctl start myems-bacnet.service
```
Monitor the service:
```bash
$ sudo systemctl status myems-bacnet.service
```
View the log:
```bash
$ cat /myems-bacnet.log
```
### Add Data Sources and Points in MyEMS Admin

View File

@ -49,6 +49,14 @@ Start the service:
```bash
$ sudo systemctl start myems-cleaning.service
```
Monitor the service:
```bash
$ sudo systemctl status myems-cleaning.service
```
View the log:
```bash
$ cat /myems-cleaning.log
```
### References

View File

@ -42,16 +42,30 @@ Install myems-modbus-tcp service
$ sudo git checkout master (or the latest release tag)
$ sudo cp -R ~/myems/myems-modbus-tcp /myems-modbus-tcp
```
Eidt the config
Edit the config
```
$ sudo nano /myems-modbus-tcp/config.py
```
Setup systemd service:
```bash
$ sudo cp myems-modbus-tcp.service /lib/systemd/system/
```
$ sudo cp /myems-modbus-tcp/myems-modbus-tcp.service /lib/systemd/system/
Enable the service:
```bash
$ sudo systemctl enable myems-modbus-tcp.service
```
Start the service:
```bash
$ sudo systemctl start myems-modbus-tcp.service
```
Monitor the service:
```bash
$ sudo systemctl status myems-modbus-tcp.service
```
View the log:
```bash
$ cat /myems-modbus-tcp.log
```

View File

@ -45,15 +45,29 @@ Install myems-mqtt-publisher service
$ sudo git checkout master (or the latest release tag)
$ sudo cp -R ~/myems/myems-mqtt-publisher /myems-mqtt-publisher
```
Eidt the config
Edit the config
```
$ sudo nano /myems-mqtt-publisher/config.py
```
Setup systemd service:
```bash
$ sudo cp myems--mqtt-publisher.service /lib/systemd/system/
```
$ sudo cp /myems-mqtt-publisher/myems-mqtt-publisher.service /lib/systemd/system/
$ sudo systemctl enable myems-mqtt-publisher.service
$ sudo systemctl start myems-mqtt-publisher.service
Enable the service:
```bash
$ sudo systemctl enable myems--mqtt-publisher.service
```
Start the service:
```bash
$ sudo systemctl start myems--mqtt-publisher.service
```
Monitor the service:
```bash
$ sudo systemctl status myems--mqtt-publisher.service
```
View the log:
```bash
$ cat /myems--mqtt-publisher.log
```
### Topic

View File

@ -74,25 +74,30 @@ Install myems-normalization service:
$ sudo cp -r ~/myems/myems-normalization /myems-normalization
```
Edit config.py for your project
Edit config.py
```
$ sudo nano /myems-normalization/config.py
```
Setup systemd service:
```
$ sudo cp myems-normalization.service /lib/systemd/system/
```
Enable the service:
```
$ sudo systemctl enable feed-normalization.service
```
Start the service:
```
$ sudo systemctl start feed-normalization.service
```
Monitor the service:
```bash
$ sudo systemctl status myems-normalization.service
```
View the log:
```bash
$ cat /myems-normalization.log
```
### References