Improved README

pull/22/head
weetmuts 2019-03-12 20:37:25 +01:00
rodzic 093f7bb792
commit 3589d090c7
4 zmienionych plików z 9 dodań i 5 usunięć

Wyświetl plik

@ -29,6 +29,7 @@ rtl_sdr is work in progress.
Updated README
Updated some command line options robot is now format.
Listening to qcaloric now seems to work.
Added support for MacOSX.
Version 0.8.4: 2019-02-23

Wyświetl plik

@ -4,7 +4,7 @@ The program receives and decodes C1 or T1 telegrams
utility meter readings. The readings can then be published using
MQTT, curled to a REST api, inserted into a database or stored in a log file.
The program runs on GNU/Linux (standard x86) and Raspberry Pi (arm).
The program runs on GNU/Linux, MacOSX and Raspberry Pi.
| OS | Status |
| ------------ |:-------------:|
@ -68,7 +68,7 @@ The files/dir should then be located here:
# Running without config files, good for experimentation and test.
```
wmbusmeters version: 0.9
wmbusmeters version: 0.9.2
Usage: wmbusmeters {options} <device> ( [meter_name] [meter_type] [meter_id] [meter_key] )*
As <options> you can use:
@ -81,6 +81,7 @@ As <options> you can use:
--logtelegrams log the contents of the telegrams for easy replay
--meterfiles=<dir> store meter readings in dir
--meterfilesaction=(overwrite|append) overwrite or append to the meter readings file
--n1a to --n1f listen to N1 messages (perhaps)
--oneshot wait for an update from each meter, then quit
--separator=<c> change field separator to c
--shell=<cmdline> invokes cmdline with env variables containing the latest reading
@ -181,13 +182,13 @@ You can run wmbusmeters with --logtelegrams to get log output that can be placed
file. You can then run wmbusmeter and instead of auto (or an usb device) provide the simulationt.xt
file as argument. See test.sh for more info.
# Builds and runs on GNU/Linux:
# Builds and runs on GNU/Linux and MacOSX (with recent XCode)
`make && make test`
Binary generated: `./build/wmbusmeters`
`make HOST=arm`
`make HOST=arm` to cross compile from GNU/Linux to Raspberry PI.
Binary generated: `./build_arm/wmbusmeters`

Wyświetl plik

@ -93,6 +93,9 @@ unique_ptr<Configuration> parseCommandLine(int argc, char **argv) {
size_t len = strlen(argv[i]) - 12;
c->useconfig = true;
c->config_root = string(argv[i]+12, len);
if (c->config_root == "/") {
c->config_root = "";
}
return unique_ptr<Configuration>(c);
}
else

Wyświetl plik

@ -131,7 +131,6 @@ void MeterIperl::processContent(Telegram *t)
{
vector<uchar>::iterator bytes = t->content.begin();
map<string,pair<int,DVEntry>> values;
parseDV(t, t->content, t->content.begin(), t->content.size(), &values);