83 lines
2.7 KiB
C
Executable File
83 lines
2.7 KiB
C
Executable File
#include <Arduino.h>
|
|
#ifndef SETTINGS_H
|
|
#define SETTINGS_H
|
|
|
|
|
|
// ######################## WLAN-Daten ########################
|
|
|
|
const char* hostname = "ESP8266_Energiemeter";
|
|
|
|
const char* ssidList[] = {
|
|
"SSID_1", // Netzwerk 1
|
|
"SSID_2", // Netzwerk 2
|
|
"SSID_3" // Netzwerk 3
|
|
// Weitere SSID hier hinzufügen
|
|
};
|
|
|
|
const char* passwordList[] = {
|
|
"Passwort_1", // Passwort für SSID 1
|
|
"Passwort_2", // Passwort für SSID 2
|
|
"Passwort_3" // Passwort für SSID 3
|
|
// Weitere Passwörter hier hinzufügen
|
|
};
|
|
|
|
// ################## Tasmota Einstellungen ###################
|
|
|
|
// ===================== Energiemessung =======================
|
|
|
|
|
|
// Zwischenstecker am Balkonkraftwerk
|
|
String tasmota_plug_ip = "192.168.178.237";
|
|
String tasmota_plug_json_prefix_power = "Power";
|
|
|
|
// SmartMeterReader
|
|
String tasmota_smr_ip = "192.168.178.236";
|
|
String tasmota_smr_json_prefix_power = "Power";
|
|
|
|
|
|
// ================== Register-Einstellungen ==================
|
|
|
|
// ------------- 1.8.0 -------------
|
|
// Überschrift im Display, wenn das 1.8.0 Register angezeigt wird (LCD Display Zeile 1)
|
|
String tasmota_smr_json_prefix_1_8_0_lcd_text = "1.8.0 (HT+NT):";
|
|
// Tasmota Script JSON Prefix für das 1.8.0 Register (Wert in Zeile 2)
|
|
String tasmota_smr_json_prefix_1_8_0 = "E_in_180";
|
|
|
|
// ------------- 1.8.1 -------------
|
|
// Überschrift im Display, wenn das 1.8.1 Register angezeigt wird (LCD Display Zeile 1)
|
|
String tasmota_smr_json_prefix_1_8_1_lcd_text = "1.8.1 (HT):";
|
|
// Tasmota Script JSON Prefix für das 1.8.1 Register (Wert in Zeile 2)
|
|
String tasmota_smr_json_prefix_1_8_1 = "E_in_181";
|
|
|
|
// ------------- 1.8.2 -------------
|
|
// Überschrift im Display, wenn das 1.8.2 Register angezeigt wird (LCD Display Zeile 1)
|
|
String tasmota_smr_json_prefix_1_8_2_lcd_text = "1.8.2 (NT):";
|
|
// Tasmota Script JSON Prefix für das 1.8.2 Register (Wert in Zeile 2)
|
|
String tasmota_smr_json_prefix_1_8_2 = "E_in_182";
|
|
|
|
// ------------- 2.8.0 -------------
|
|
|
|
// Überschrift im Display, wenn das 2.8.0 Register angezeigt wird (LCD Display Zeile 1)
|
|
String tasmota_smr_json_prefix_2_8_0_lcd_text = "2.8.0 (Einsp.):";
|
|
// Tasmota Script JSON Prefix für das 2.8.0 Register (Wert in Zeile 2)
|
|
String tasmota_smr_json_prefix_2_8_0 = "E_out_280";
|
|
|
|
|
|
// ------- Nachkommastellen --------
|
|
// Anzahl Nachkommastellen bei den ausgelesenen Tasmota Werten
|
|
// -1 = Alle / 0 = Keine / 2 = 2 Nachkommastellen
|
|
int tasmota_decimalplaces = 2;
|
|
|
|
|
|
// ################# Allgemeine Einstellungen #################
|
|
|
|
// Aktualisierungsrate im Bildschirm aktuelle Leistung (in Millisekunden)
|
|
unsigned long refreshrate_power = 3000;
|
|
|
|
// Aktualisierungsrate in den Bildschirmen der Verbrauchsdaten (in Millisekunden)
|
|
unsigned long refreshrate_consumption = 15000;
|
|
|
|
|
|
// ############################################################
|
|
|
|
#endif // SETTINGS_H
|