From 1c0d60d097fe557c57f7ffa89bc5d1304949a3a8 Mon Sep 17 00:00:00 2001 From: Martijn Date: Sun, 7 Jun 2020 10:39:17 +0200 Subject: [PATCH] verwijder oude v1 spullen --- DSMRloggerAPI.h | 15 +- DSMRloggerAPI.ino | 9 +- JsonCalls.ino | 203 ++++++++-------- MQTTstuff.ino | 1 - RingFiles.ino | 131 ++++++---- SPIFFSstuff.ino | 490 ------------------------------------- convertPRD2RING.ino | 71 +++--- data/ADJindex.html | 18 -- edge/DSMRindex.js | 2 +- handleSlimmeMeter.ino | 2 - menuStuff.ino | 12 +- processTelegram.ino | 1 - restAPI.ino | 554 ------------------------------------------ 13 files changed, 235 insertions(+), 1274 deletions(-) delete mode 100644 data/ADJindex.html delete mode 100644 restAPI.ino diff --git a/DSMRloggerAPI.h b/DSMRloggerAPI.h index 88d8d4c..07ab614 100644 --- a/DSMRloggerAPI.h +++ b/DSMRloggerAPI.h @@ -67,21 +67,12 @@ P1Reader slimmeMeter(&swSer1, DTR_ENABLE); #define DATA_CSV_HEADER "YYMMDDHH; EDT1; EDT2; ERT1; ERT2; GDT;" #define DATA_RECLEN 75 -#define HOURS_FILE "/RINGhours.csv" -#define _NO_HOUR_SLOTS_ (48 +1) - -#define DAYS_FILE "/RINGdays.csv" -#define _NO_DAY_SLOTS_ (14 +1) - -#define MONTHS_FILE "/RINGmonths.csv" -#define _NO_MONTH_SLOTS_ (24 +1) - enum { PERIOD_UNKNOWN, HOURS, DAYS, MONTHS, YEARS }; typedef enum E_ringfiletype {RINGHOURS, RINGDAYS, RINGMONTHS}; typedef struct { - String filename; + char filename[18]; int8_t slots; unsigned int seconds; } S_ringfile; @@ -158,7 +149,7 @@ using MyData = ParsedData< enum { TAB_UNKNOWN, TAB_ACTUEEL, TAB_LAST24HOURS, TAB_LAST7DAYS, TAB_LAST24MONTHS, TAB_GRAPHICS, TAB_SYSINFO, TAB_EDITOR }; -typedef struct { +/*typedef struct { uint32_t Label; float EDT1; float EDT2; @@ -170,7 +161,7 @@ typedef struct { static dataStruct hourData; // 0 + 1-24 static dataStruct dayData; // 1 - 7 (0=header, 1=sunday) static dataStruct monthData; // 0 + year1 1 t/m 12 + year2 1 t/m 12 - +*/ const char *weekDayName[] { "Unknown", "Zondag", "Maandag", "Dinsdag", "Woensdag" , "Donderdag", "Vrijdag", "Zaterdag", "Unknown" }; const char *monthName[] { "00", "Januari", "Februari", "Maart", "April", "Mei", "Juni", "Juli" diff --git a/DSMRloggerAPI.ino b/DSMRloggerAPI.ino index a70c2ff..3e3e54a 100644 --- a/DSMRloggerAPI.ino +++ b/DSMRloggerAPI.ino @@ -10,18 +10,17 @@ *************************************************************************** * * TODO -* - verwijderen v1 * - v1/dev/settings .js file (opslaan settings) * Future development * - ringfile : fout bestaande file - oude renamen en nieuwe maken * - api: laatste 10 errors/excepties -* - eport ringfiles to private cloud -> using API +* - upload ringfiles to private cloud -> using API - Arduino-IDE settings for DSMR-logger Version 4 (ESP-12): + Arduino-IDE settings for DSMR-logger Version 1 (ESP-M3): - Board: "Generic ESP8266 Module" - Flash mode: "DOUT" | "DIO" // change only after power-off and on again! - - Flash size: "4MB (FS: 2MB OAT:~1019KB)" << LET OP! 2MB SPIFFS + - Flash size: "1MB (FS: 128KB OAT:~438KB)" - DebugT port: "Disabled" - DebugT Level: "None" - IwIP Variant: "v2 Lower Memory" @@ -30,7 +29,7 @@ - VTables: "Flash" - Flash Frequency: "40MHz" - CPU Frequency: "80 MHz" - - Buildin Led: "2" // GPIO02 for Wemos and ESP-12 + - Buildin Led: "2" // GPIO02 - Upload Speed: "115200" - Erase Flash: "Only Sketch" - Port: