]> vcs.slashdirt.org Git - sw/tic2json.git/commitdiff

vcs.slashdirt.org Git - sw/tic2json.git/commitdiff

git git / sw / tic2json.git / commitdiff
? search:
summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: f94c248)
README: switch to markdown
Sun, 5 Sep 2021 15:05:00 +0000 (17:05 +0200)
Sun, 5 Sep 2021 15:10:53 +0000 (17:10 +0200)
README [deleted file] patch | blob | history
README.md [new file with mode: 0644] patch | blob

diff --git a/README b/README
deleted file mode 100644 (file)
index 4014dc6..0000000
--- a/README
+++ /dev/null
@@ -1,49 +0,0 @@
-Licence: GPLv2 - http://www.gnu.org/licenses/gpl-2.0.html
-Copyright: (C) 2021 Thibaut VARENE
-
-tic2json: an ENEDIS TIC protocol parser and converter
-
- This program is free software; you can redistribute it and/or
- modify it under the terms of the GNU General Public License
- version 2, as published by the Free Software Foundation.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
-More info: http://hacks.slashdirt.org/sw/tic2json/
-
-Dependencies: gcc flex bison
-
-To build, run 'make'
-
-Note: the build can be adjusted through the top Makefile variables.
-In particular, it is possible to build support for only specific version(s) of the TIC.
-
-Implementing other types of outputs (XML, etc) should be trivial given the implementation.
-
-TIC output from electronic meters is either:
- - 7E1@1200bps for "historique" mode
- - 7E1@9600bps for "standard" mode
-
-The current implementation supports TIC version 01 and 02.
-
-A tty interfaced to the meter TIC output can be set using the following `stty`
-settings:
-
-stty -F <serial_tty> <speed> raw evenp
-
-Where <serial_tty> is the target tty (e.g. /dev/ttyS0) and <speed> is either 1200 or 9600.
-
-For reference, the output of this tool is suitable for feeding a Telegraf 'socket_listener' configured as follows:
-
-[[inputs.socket_listener]]
- service_address = "udp://:8094"
- data_format = "json"
- json_strict = true
- json_name_key = "label"
- tag_keys = ["id"]
-
-The following command line can be used to send adequate data:
-stdbuf -oL ./tic2json -2 < /dev/ttyS0 2>/dev/null | while read line; do echo "$line" | nc -q 0 -u telegraf_host 8094; done
diff --git a/README.md b/README.md
new file mode 100644 (file)
index 0000000..b8447e1
--- /dev/null
+++ b/README.md
@@ -0,0 +1,62 @@
+# tic2json
+
+An ENEDIS TIC (_Télé-Information Client_) protocol parser and converter
+
+More info (in French): http://hacks.slashdirt.org/sw/tic2json/
+
+## License
+
+GPLv2 - http://www.gnu.org/licenses/gpl-2.0.html
+Copyright: (C) 2021 Thibaut VARÈNE
+
+See LICENSE.md for details
+
+## Dependencies
+
+ - A **C compiler** supporting the C standard library for the target system (e.g. **gcc**)
+ - **make**, **flex** and **bison** on the build host
+
+## Building
+
+To build, run `make`
+
+**Note:** the build can be adjusted through the top Makefile variables.
+In particular, it is possible to build support for only specific version(s) of the TIC.
+
+## Usage
+
+The current implementation supports TIC versions **01** and **02** (a.k.a *historique* and *standard* modes).
+
+A tty interfaced to the meter TIC output can be set using the following `stty`
+settings:
+
+```sh
+stty -F <serial_tty> <speed> raw evenp
+````
+
+Where `<serial_tty>` is the target tty (e.g. `/dev/ttyS0`) and `<speed>` is either 1200 or 9600.
+
+TIC output from electronic meters is either:
+ - 7E1@1200bps for "historique" mode
+ - 7E1@9600bps for "standard" mode
+
+## Notes
+
+Implementing other types of outputs (XML, etc) should be trivial given the implementation.
+
+For reference, the output of this tool is suitable for feeding a Telegraf 'socket_listener' configured as follows:
+
+```
+[[inputs.socket_listener]]
+ service_address = "udp://:8094"
+ data_format = "json"
+ json_strict = true
+ json_name_key = "label"
+ tag_keys = ["id"]
+````
+
+The following command line can be used to send adequate data:
+
+```sh
+stdbuf -oL ./tic2json -2 < /dev/ttyS0 2>/dev/null | while read line; do echo "$line" | nc -q 0 -u telegraf_host 8094; done
+```
tic2json TIC parser/converter
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /