1
0
mirror of https://github.com/bicnz/tristar-to-telegraf.git synced 2025-06-03 16:20:32 -07:00

Update README.md

This commit is contained in:
bicnz 2020-08-28 16:20:32 +12:00 committed by GitHub
parent 1789f9fdb9
commit 25fe0d6db5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5,19 +5,11 @@ Tested with Tristar TS-MPPT-60
Modified version of brocktice's tristar script https://github.com/brocktice/tristar-python-modbus Modified version of brocktice's tristar script https://github.com/brocktice/tristar-python-modbus
*** ***
**Requirements**
Install Python and pymodbus library
```
apt-get install python python-pip
pip install -U pymodbus
```
***
### Usage ### Usage
python read_tsmppt.py `<ip address>` `<alias>` python read_tsmppt.py `<ip address>` `<alias>`
**Example:** python read_tsmppt.py 192.168.1.100 Solar1 **Example:** python3 read_tsmppt.py 192.168.1.100 Solar1
Output: Output:
@ -28,9 +20,9 @@ Output:
``` ```
[[inputs.exec]] [[inputs.exec]]
commands = [ commands = [
"python /home/user/read_tsmppt.py 192.168.1.100 Solar1", "python3 /home/user/read_tsmppt.py 192.168.1.100 Solar1",
"python /home/user/read_tsmppt.py 192.168.1.101 Solar2", "python3 /home/user/read_tsmppt.py 192.168.1.101 Solar2",
"python /home/user/read_tsmppt.py 192.168.1.102 Solar3" "python3 /home/user/read_tsmppt.py 192.168.1.102 Solar3"
] ]
tag_keys = [ tag_keys = [
"SiteID" "SiteID"