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,24 +31,30 @@ Install myems-aggregation service:
$ sudo git checkout master (or the latest release tag) $ sudo git checkout master (or the latest release tag)
$ sudo cp -R ~/myems/myems-aggregation /myems-aggregation $ sudo cp -R ~/myems/myems-aggregation /myems-aggregation
``` ```
Edit config.py for your project Edit config.py
``` ```
$ sudo nano /myems-aggregation/config.py $ sudo nano /myems-aggregation/config.py
``` ```
Setup systemd service:
Setup systemd service:
``` ```
$ sudo cp myems-aggregation.service /lib/systemd/system/ $ sudo cp myems-aggregation.service /lib/systemd/system/
``` ```
Enable the service: Enable the service:
``` ```
$ sudo systemctl enable myems-aggregation.service $ sudo systemctl enable myems-aggregation.service
``` ```
Start the service:
Start the service:
``` ```
$ sudo systemctl start myems-aggregation.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 ### References

View File

@ -46,16 +46,30 @@ Install myems-bacnet service
$ git checkout master (or the latest release tag) $ git checkout master (or the latest release tag)
$ sudo cp -R ~/myems/myems-bacnet /myems-bacnet $ sudo cp -R ~/myems/myems-bacnet /myems-bacnet
``` ```
Eidt the config config Edit the config
``` ```
$ sudo nano /myems-bacnet/config.py $ sudo nano /myems-bacnet/config.py
``` ```
Setup systemd service: 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 $ sudo systemctl enable myems-bacnet.service
```
Start the service:
```bash
$ sudo systemctl start myems-bacnet.service $ 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 ### Add Data Sources and Points in MyEMS Admin

View File

@ -49,6 +49,14 @@ Start the service:
```bash ```bash
$ sudo systemctl start myems-cleaning.service $ 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 ### References

View File

@ -42,16 +42,30 @@ Install myems-modbus-tcp service
$ sudo git checkout master (or the latest release tag) $ sudo git checkout master (or the latest release tag)
$ sudo cp -R ~/myems/myems-modbus-tcp /myems-modbus-tcp $ sudo cp -R ~/myems/myems-modbus-tcp /myems-modbus-tcp
``` ```
Eidt the config Edit the config
``` ```
$ sudo nano /myems-modbus-tcp/config.py $ sudo nano /myems-modbus-tcp/config.py
``` ```
Setup systemd service: 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 $ sudo systemctl enable myems-modbus-tcp.service
```
Start the service:
```bash
$ sudo systemctl start myems-modbus-tcp.service $ 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 git checkout master (or the latest release tag)
$ sudo cp -R ~/myems/myems-mqtt-publisher /myems-mqtt-publisher $ sudo cp -R ~/myems/myems-mqtt-publisher /myems-mqtt-publisher
``` ```
Eidt the config Edit the config
``` ```
$ sudo nano /myems-mqtt-publisher/config.py $ sudo nano /myems-mqtt-publisher/config.py
``` ```
Setup systemd service: 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/ Enable the service:
$ sudo systemctl enable myems-mqtt-publisher.service ```bash
$ sudo systemctl start myems-mqtt-publisher.service $ 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 ### Topic

View File

@ -74,25 +74,30 @@ Install myems-normalization service:
$ sudo cp -r ~/myems/myems-normalization /myems-normalization $ sudo cp -r ~/myems/myems-normalization /myems-normalization
``` ```
Edit config.py for your project Edit config.py
``` ```
$ sudo nano /myems-normalization/config.py $ sudo nano /myems-normalization/config.py
``` ```
Setup systemd service:
Setup systemd service:
``` ```
$ sudo cp myems-normalization.service /lib/systemd/system/ $ sudo cp myems-normalization.service /lib/systemd/system/
``` ```
Enable the service:
Enable the service:
``` ```
$ sudo systemctl enable feed-normalization.service $ sudo systemctl enable feed-normalization.service
``` ```
Start the service:
Start the service:
``` ```
$ sudo systemctl start feed-normalization.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 ### References