/** * diagram client interface * Version 7.04 * 28.06.2024 P. Rebesky * author Creator P.Rebesky * Copyright (©): 2022-2032 by Peter Rebesky * This code can use in private cases only. Every business or companies using of this codes or codes parts is required an approval of us (me) * Every private using can exchange some parts of code or modify some code-lines. This code is allowed change for private use only. * This software is basicly owned by Peter Rebesky and any comercial using is forbidden without approval of us (me). **/ #ifndef DIAGRAM_CLIENT_H_ #define DIAGRAM_CLIENT_H_ #include "global.h" #include "configDTZ.h" #define BufferLength 720 int _historyPointer=0; int32_t _history[BufferLength][2]; const char HTTP_DIA_STYLE[] PROGMEM = "\r\n\r\n"; //const char CANVAS[] PROGMEM =""; const char CANVAS[] PROGMEM =""; extern configDTZ cDTZ; //*********************** handle status for history ********************** void diagramPointerPlus(){ if(_historyPointer=BufferLength)y=0; } h += "}"; #ifdef DEBUG_VALUE Serial.println(_historyPointer); Serial.println(_history[i][0]); #endif return h; } //**** get raw diagram data *************************************************** String getRawData(){ String h = "Pointer:"; h+=_historyPointer; h+="&"; for(int i=0;i"; ret += ""; ret+=cDTZ.getNameDTZ(); ret+=""; ret += FPSTR(HTTP_DIA_STYLE); ret += "
"; ret += "

Historie: Leistung in Watt

Aktualisierung jede Minute (Historie für maximal 12 Stunden)

"; ret += "2000 W
"; ret += ""; ret += "
"; ret += FPSTR(CANVAS); ret += "\n"; return ret; } //*** end *** //**** load diagram data into buffer array from file ********************* int loadDiagramData(){ int oldPointer=0; return oldPointer; } //*** diagram manage end *** #endif //*** DIAGRAM_CLIENT_H_