matthias-bs / BresserWeatherSensorLW

Bresser 868 MHz Weather Sensor Radio Receiver based on ESP32/RP2040 and SX1262/SX1276 - sends data to a LoRaWAN Network
MIT License
10 stars 1 forks source link

Add loading of config data from node_config.json (LittleFS) #88

Closed matthias-bs closed 1 month ago

matthias-bs commented 1 month ago

Intended for configuration data which is hardware (e.g. power supply) or deployment environment (e.g. network, timezone) dependent and not expected to change after deployment.

node_config.json example:

{
    "timezone": "CET-1CEST,M3.5.0,M10.5.0/3",
    "battery_weak": 3310,
    "battery_low": 3410,
    "battery_discharge_lim": 3210,
    "battery_charge_lim": 4190,
    "battery_capacity": 2200
}

If present, the value from the file overrides the default from the source code.

Implementation similar to secrets.json.