Skip to content
Snippets Groups Projects
README.md 1.1 KiB
Newer Older
Michael Lestinsky's avatar
Michael Lestinsky committed
isoheat_MiL-MKR19xx
===================

Simple commandline C-program for readout of ISOHEAT MiL-MKR 19xx heating controllers. The communication is done via Modbus-TCP.

Commandline parameters
----------------------

* -d: enable debugging (mainly modbus datagrams)
Michael Lestinsky's avatar
..  
Michael Lestinsky committed
* -D `devicename`: connect to remote `devicename` (may be a DNS name or IPv4/v6 address)
* -f: Print all output in InfluxDB line protocol format.
Michael Lestinsky's avatar
Michael Lestinsky committed
* -L `looptime`: run endlessly in a loop, poll every `looptime` seconds.
* -h: print help and exit.

Michael Lestinsky's avatar
Michael Lestinsky committed
Examples
--------

### Writing data to InfluxDB through the API:

Michael Lestinsky's avatar
.  
Michael Lestinsky committed
isoheat_MiL-MKR19xx -D _DEVICENAME_ -f | curl -sS -XPOST -H 'Authorization: Token _TOKEN_' '_INFLUXSERVER_:8086/api/v2/write?org=_ORG_&bucket=_BUCKET_&precision=s' --data-binary @-
Michael Lestinsky's avatar
Michael Lestinsky committed

Please replace all the _PLACEHOLDERS_ in above example with the proper values for your environment.

Michael Lestinsky's avatar
Michael Lestinsky committed
Dependencies
------------

* libmodbus 3.1.6 <https://libmodbus.org>

Authors
--------
* [Michael Lestinsky](http://web-docs.gsi.de/~lestinsk)
  for the [GSI Atomic Physics department](http://www.gsi.de/ap) 
  and the [CRYRING@ESR project](http://www.gsi.de/cryring)