openv / vcontrold

:fire: vcontrold Daemon for control and logging of Viessmann® type heating devices
https://github.com/openv/openv/wiki
GNU General Public License v3.0
101 stars 54 forks source link

vclient sends additional error note #79

Closed vito-user closed 3 years ago

vito-user commented 3 years ago

Hi, If I am using the command line prompt of vcontrold I get a correct communication:

pi@raspberrypi:~ $ telnet localhost 3002
Trying ::1...
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
vctrld>getVitoTempAussen
6.200000 °C
vctrld>

But if I do it with vclient I get always such error information. Finally I get also the requested value. Because I have problems to move values in RRDB I assume it can be a reason.

pi@raspberrypi:~ $ vclient -h 127.0.0.1 -p3002 - c getVitoTempAussen
SRV ERR: command unknown
SRV ERR: command unknown
-:
server error
c:
server error
getVitoTempAussen:
6.200000 °C
pi@raspberrypi:~ $

I have already changed the protocol KW2 to P300. But it is the same. Does somebody has an idea? Regards, Uwe

speters commented 3 years ago

You supplied " - c" as command line arguments. Try "-c" (no space) or just leave it out and add your commands to the tail of your command line arguments.

usage:
    vclient [-h <ip:port>] [-c <command1,command2,..>] [-f <commandfile>]
            [-s <csv file>] [-t <template file>] [-o <output file>]
            [-x <exec file>] [-k] [-m] [-v]

or:
    vclient [--host <ip>] [--port <port>] [--command <command1,command2,..>]
            [--commandfile <command file>] [--csvfile <csv file>]
            [--template <template file>] [--output <output file>]
            [--execute <exec file>] [--cacti] [--munin] [--verbose]
            [command3 [command4] ...]

    -h|--host         <IPv4>:<Port> or <IPv6> of vcontrold
    -p|--port         <port> of vcontrold when using IPv6
    -c|--command      List of commands to be executed, sparated by commas
    -f|--commandfile  Optional command file, one command per line
    -s|--csvfile      Format output in CSV for further processing
    -t|--template     Template, variables are substituted with acquired values
    -o|--output       Write to given file instead of STDOUT
    -x|--execute      The converted template (cf. -t) is written to the given
                      file and executed subsequently
    -m|--munin        Output a Munin data logger compatible format (units and
                      error details are discarded)
    -k|--cacti        Output a Cacti data logger compatible format (units and
                      error details are discarded)
    -v|--verbose      Be verbose (for testing purposes)
    -V|--Version      Print version and exit
    -4|--inet4        IPv4 is preferred
    -6|--inet6        IPv6 is preferred
                      (if none of the two above is set, the system default will
                      be used)
    --help            Display this help message
vito-user commented 3 years ago

Hi speters, Thanks for the eye-opener. This was realy a stupid typing mistake. But now it works.