hiveeyes / terkin-datalogger

Datalogger for MicroPython and CPython.
https://terkin.org
GNU Affero General Public License v3.0
60 stars 28 forks source link

CPython: Feature to create configuration file blueprint #90

Open amotl opened 3 years ago

amotl commented 3 years ago

Hi there,

@MKO1640 reported at [1] that he had troubles creating or getting hold of an appropriate configuration file blueprint for getting started quickly after installing Terkin on CPython using pip.

In order to improve that situation, it would be nice if Terkin would provide a corresponding subcommand like terkin create-config --flavor=sbc, which would print a configuration file blueprint to STDOUT. That can be redirected into a configuration file of your choice.

So, the workflow for installing Terkin on CPython would be:

pip install terkin[sbc] --upgrade
terkin create-config --flavor=sbc > settings.py
terkin --config settings.py

With kind regards, Andreas.

[1] https://community.hiveeyes.org/t/terkin-variante-fur-cpython-raspberry-pi-dragino-lora-gps-hat/3180/9