Command line arguments - alex-konshin/f007th-rpi GitHub Wiki

--config, -c

Argument of this option specifies configuration file.

--gpio, -g

Value is GPIO pin number (default is 27) as defined on page http://abyz.co.uk/rpi/pigpio/index.html

--celsius, -C

Output temperature in degrees Celsius.

--utc, -U

Timestamps are printed/sent in ISO 8601 format.

--local-time, -L

Timestamps are printed/sent in format "YYYY-mm-dd HH:MM:SS TZ".

--send-to, -s

Parameter value is server URL.

--server-type, -t

Parameter value is server type. Possible values are REST (default) or InfluxDB.

--auth-header, -a

If you are using InfluxDB 2.0 you will need to provide authentication. This value should be the complete header line, e.g. --auth-header "Authorization: Token 5EAeQKcaDWM8q6Lj8U1C6vXfGn4b_DRB6m7tsjXvBIcp5XlPpb74Bp6ySgavagCLQlJfHI0IvZsLuU-CMza-1g==". See https://docs.influxdata.com/influxdb/v2.0/reference/api/influxdb-1x/#token-authentication

--stdout, -o

Print data to stdout. This option is not compatible with --server-type and --no-server.

--no-server, -n

Do not print data on console or send it to servers. This option is not compatible with --server-type and --stdout.

--all-changes, -A

Send all data. Only changed and valid data is sent by default.

--max-gap, -G

Argument of this option specifies the max time in minutes when the utility does not send data if it is not changed. If option --all-changes|-A is not specified then by default the utility does not send repeating values to the server. You can specify this option to prevent big gaps in server's data when values are changed very slowly.

--log-file, -l

Parameter is a path to log file.

--httpd, -H

Run HTTPD server on the specified port. If this option is specified then the utility will serve HTTP requests on this port. Currently the utility supports several REST API requests. But it also allows to download any file located in the directory specified by parameter www_root of configuration command httpd.

--verbose, -v

Verbose output.

--more_verbose, -V

More verbose output.