loftsh / jardin

Le jardin
0 stars 0 forks source link

Refactor configuration of sensor in settings #2

Open nimag42 opened 6 years ago

nimag42 commented 6 years ago

Sensor configurations (i.e. pins, device file path) are defined in the scripts.

This should be refactored in a global configuration:

Which do you prefer?

dimtion commented 6 years ago

Django project configuration seems enough? Are there strong incentives to use the environment? In any-case I'm not found of user multiple configuration files (one for Django, another for the sensors).

The only reason not to use Django conf would be for performances reasons during startup of the scripts.