Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ru-asdx/mercury-em
Get data from Mercury powermeter
https://github.com/ru-asdx/mercury-em
incotex mercury modbus monitoring powermeter python3
Last synced: 4 days ago
JSON representation
Get data from Mercury powermeter
- Host: GitHub
- URL: https://github.com/ru-asdx/mercury-em
- Owner: ru-asdx
- License: mit
- Created: 2022-04-07T02:19:39.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-05-30T00:48:10.000Z (over 1 year ago)
- Last Synced: 2023-05-30T01:44:03.144Z (over 1 year ago)
- Topics: incotex, mercury, modbus, monitoring, powermeter, python3
- Language: Python
- Homepage:
- Size: 1.78 MB
- Stars: 22
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# mercury-em
Receiving information from Mercury energymeters (RS485 over TCP/IP)
Official documentation on protocols used in Mercury energymeters:
* [Official site Incotex](https://www.incotexcom.ru/support/docs/protocol)
* [Protocol for single-phase Mercury energymeters 200, 201, 203 (except Mercury 203.2TD), 206. version 01.04.2018](https://www.incotexcom.ru/files/em/docs/mercury-protocol-obmena-1.pdf)
* [Protocol for three-phase Mercury energymeters 203.2TD, 204, 208, 230, 231, 234, 236, 238 version 15.05.2023](https://www.incotexcom.ru/files/em/docs/merkuriy-sistema-komand-ver-1-ot-2023-05-15.pdf)# Installation
Use venv
$ git clone https://github.com/ru-asdx/mercury-em
$ cd mercury-em
$ python3.9 -m venv .env
$ source .env/bin/activateInstall dependencies
```
$ pip install -r requirements.txt
```Use it
```
$ ./mercury-em.py --proto m206 --serial 12345678 --host 192.168.1.100 --port 50 --format json
$ ./mercury-em.py --proto m236 --serial 12345678 --host 192.168.1.100 --port 50 --user admin --pass 222222 --format json
```# Usage
```
$ ./mercury-em.py -hMercury energy meter data receiver
optional arguments:
--proto [{m206,m236}] Used protocol (M206/M236)
--serial [SERIAL] Serial number of energymeter
--host [HOST] RS485-TCP/IP converter ip-address
--port [PORT] RS485-TCP/IP converter port
--user [{user,admin}] Access level (User/Admin) (only for m236 protocol)
--pass [PASSWD] Access password (only for m236 protocol)
--format [{text,json}] Output format
```