Improved error message and README.

pull/84/head
weetmuts 2020-02-17 18:09:27 +01:00
rodzic d7fbf3a3a8
commit 17067e44ec
2 zmienionych plików z 5 dodań i 3 usunięć

Wyświetl plik

@ -53,7 +53,9 @@ key=00112233445566778899AABBCCDDEEFF
Now plugin your wmbus dongle. Wmbusmeters should start automatically,
check with `tail -f /var/log/syslog` and `tail -f /var/log/wmbusmeters/wmbusmeters.log`
(If you are using an rtlsdr dongle, then make sure the binaries /usr/bin/rtl_sdr and
/usr/bin/rtl_wmbus exists and are executable.)
/usr/bin/rtl_wmbus exists and are executable. If not you will see the
error message `(rtlwmbus) error: when starting as daemon, wmbusmeters expects /usr/bin/rtl_sdr to exist!`
and the daemon will refuse to start.)
The latest reading of the meter can also be found here: /var/log/wmbusmeters/meter_readings/MyTapWater

Wyświetl plik

@ -205,11 +205,11 @@ bool startUsingCommandline(Configuration *config)
string rtlsdr = string(prefix)+"rtl_sdr";
if (!checkFileExists("/usr/bin/rtl_sdr"))
{
error("When starting as daemon, wmbusmeters expects /usr/bin/rtl_sdr to exist!\n");
error("(rtlwmbus) error: when starting as daemon, wmbusmeters expects /usr/bin/rtl_sdr to exist!\n");
}
if (!checkFileExists("/usr/bin/rtl_wmbus"))
{
error("When starting as daemon, wmbusmeters expects /usr/bin/rtl_wmbus to exist!\n");
error("(rtlwmbus) error: when starting as daemon, wmbusmeters expects /usr/bin/rtl_wmbus to exist!\n");
}
}
if (command == "") {