|
| 1 | +#ifndef Credentials_h |
| 2 | +#define Credentials_h |
1 | 3 |
|
| 4 | +char ssid[] = "********"; // your network SSID (name) |
| 5 | +char pass[] = "********"; // your network password |
| 6 | + |
| 7 | +const char* host = "********"; // webpage to send the data |
| 8 | +const char* SecCode = "********"; // security key |
| 9 | + |
| 10 | +const char* directory = "/Temp/addP1.php"; // website page for data posting |
| 11 | + |
| 12 | +char user[] = "********"; // MySQL user login username |
| 13 | +char password[] = "********"; // MySQL user login password |
| 14 | + |
| 15 | +// string to test data import in website url |
| 16 | +String TESTurl = "/Temp/addP1.php?Counter=111111.812&CounterDeliv=338.795&CounterDelivToday=2.71&CounterToday=9.04&idx=6&Hoogtarief=751659&Laagtarief=1005153&Teruglaag=282054&Terughoog=56741&Huidigverbruik=799&Huidiglevering=0&DateTime=2020-03-16%2019:57:54&Name=PowerZZ3"; |
| 17 | + |
| 18 | +// Domoticz sensor ID's |
| 19 | +int IDXIDgas = 34; // Gas |
| 20 | +int IDXIDpower = 24; // Elec |
| 21 | +int IDXIDpowerL1 = 25; // Voltage line 1 |
| 22 | +int IDXIDpowerL3 = 27; // Voltage line 3 |
| 23 | +int IDXIDpowerU1 = 28; // usage on line 1 |
| 24 | +int IDXIDpowerU3 = 30; // usage on line 3 // NEW TO ADD |
| 25 | +int IDXIDpowerD1 = 31; // delivery on line 1 // NEW TO ADD |
| 26 | +int IDXIDpowerD3 = 33; // delivery on line 3 |
| 27 | + |
| 28 | +// blink times and pin Led ID's |
| 29 | +ezOutput ledconnect(12); // D6 blue create ezOutput object that attach to pin 7; |
| 30 | +ezOutput ledsend(13); // D7 green create ezOutput object that attach to pin 8; |
| 31 | +ezOutput ledreboot(15); // D8 red create ezOutput object that attach to pin 9; |
| 32 | + |
| 33 | +// variables |
| 34 | +float Hoogtarief, Laagtarief, Teruglaag, Terughoog; |
| 35 | +String DateTime, Name; |
| 36 | + |
| 37 | +int IDXID = IDXIDgas; // starting with gas data |
| 38 | +int nowstatus = 0; // starting with gas data |
| 39 | + |
| 40 | +int cnt = 5; // wifi connection attempts and then reboot esp |
| 41 | + |
| 42 | +float L1, L3; // voltage lines |
| 43 | +int PU1, PU3; // usage lines |
| 44 | +int PD1 , PD3; // delivery lines |
| 45 | +int intHuidigverbruik = 0; // needed for converse string into integer |
| 46 | +int intHuidiglevering = 0; // needed for converse string into integer |
| 47 | + |
| 48 | +String url; // data url string to post |
| 49 | + |
| 50 | +#endif //Credentials_h |
0 commit comments