Now the main arguments are parsed from the CLI.
If no arguments are given, the program will ask for measurement and interval and automatically look for the config.edn file in the current working directory.
Example:
sensorpi -h
usage: sensorpi [-h] [--config CONFIG] [--measurement MEASUREMENT] [--interval INTERVAL] [--verbose]
Run measurements from different sensors and send data to an influx db.
optional arguments:
-h, --help show this help message and exit
--config CONFIG, -c CONFIG
config.edn file to use.
--measurement MEASUREMENT, -m MEASUREMENT
Measurement name.
--interval INTERVAL, -i INTERVAL
Interval between measurements in seconds.
--verbose, -v