config: change init parameters of simulation + data generation delay

this is made to fit with mass data insertion made with python. Now,
the system will generate a single reading every hour, in continuity
with generated data already in db
This commit is contained in:
Alexis Fourmaux 2026-05-13 17:20:03 +02:00
parent 9ae2445863
commit 285c6c5805
2 changed files with 3 additions and 4 deletions

View file

@ -1,7 +1,7 @@
#include <SimuGaz.h> #include <SimuGaz.h>
#define INITIAL_CONSUMPTION 3451.02f #define INITIAL_CONSUMPTION 3451.02f
#define INITIAL_SECONDS 0 #define INITIAL_SECONDS 11462400 // date initiale = 13/05/2026 16:00
#define AVERAGE_DAILY_CONSUMPTION 2.66f #define AVERAGE_DAILY_CONSUMPTION 2.66f
// Source : opendata.grdf.fr/explore/dataset/correction_climatique_grdf/ // Source : opendata.grdf.fr/explore/dataset/correction_climatique_grdf/

View file

@ -72,7 +72,7 @@ void setup() {
void loop() { void loop() {
uint8_t payload[4]; uint8_t payload[4];
uint32_t pulses = simulateGasPulses(86400); uint32_t pulses = simulateGasPulses(3600);
displayGasIndex(pulses); displayGasIndex(pulses);
@ -81,6 +81,5 @@ void loop() {
Serial.flush(); Serial.flush();
delay(2000); esp_deep_sleep(3600000000);
esp_deep_sleep(60000000);
} }