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:
parent
9ae2445863
commit
285c6c5805
2 changed files with 3 additions and 4 deletions
|
|
@ -1,7 +1,7 @@
|
|||
#include <SimuGaz.h>
|
||||
|
||||
#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
|
||||
|
||||
// Source : opendata.grdf.fr/explore/dataset/correction_climatique_grdf/
|
||||
|
|
|
|||
|
|
@ -72,7 +72,7 @@ void setup() {
|
|||
|
||||
void loop() {
|
||||
uint8_t payload[4];
|
||||
uint32_t pulses = simulateGasPulses(86400);
|
||||
uint32_t pulses = simulateGasPulses(3600);
|
||||
|
||||
displayGasIndex(pulses);
|
||||
|
||||
|
|
@ -81,6 +81,5 @@ void loop() {
|
|||
|
||||
Serial.flush();
|
||||
|
||||
delay(2000);
|
||||
esp_deep_sleep(60000000);
|
||||
esp_deep_sleep(3600000000);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue