Metainformationen zur Seite
Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
Beide Seiten der vorigen RevisionVorhergehende ÜberarbeitungNächste Überarbeitung | Vorhergehende Überarbeitung | ||
howtos_knowledge_base:loxberry_wetterstation:3_software:esp32 [2024/12/31 13:56] – Michael Schlenstedt | howtos_knowledge_base:loxberry_wetterstation:3_software:esp32 [2025/01/07 16:49] (aktuell) – Michael Schlenstedt | ||
---|---|---|---|
Zeile 5: | Zeile 5: | ||
Dann gibt es noch einen Unterschied, | Dann gibt es noch einen Unterschied, | ||
- | === Firmware ohne Blitzsensor AS3935 === | + | ===== Firmware ohne Blitzsensor AS3935 |
Folgende Software benötigt ihr: | Folgende Software benötigt ihr: | ||
Zeile 13: | Zeile 13: | ||
Zunächst ladet ihr Euch das neueste Release der Firmware herunter. Dieses findet ihr unter dem obigen Link unter " | Zunächst ladet ihr Euch das neueste Release der Firmware herunter. Dieses findet ihr unter dem obigen Link unter " | ||
- | Entpackt die Firmwarefiles mit einem [[https:// | + | Entpackt die Firmwarefiles mit einem [[https:// |
- | === Firmware | + | Das war's an dieser Stelle schon. Macht jetzt im [[# |
- | Leider gibt es keine vorkompilierte Firmware mit ESPEasy, die alle von uns genutzten Sensoren beinhaltet. Deswegen muss die Firmware von uns selbst kompiliert werden. Keine Angst - so schwer ist das nicht. Wer es dennoch nicht hinbekommt, kann sich auch hier die von uns bereits kompilierte Firmware herunterladen. Diese ist vermutlich nicht mehr ganz neu, das macht aber in aller Regel gar nichts. So funktioniert einwandfrei. Download hier: {{: | + | ===== Firmware mit Blitzsensor AS3935 ===== |
+ | |||
+ | Leider gibt es keine vorkompilierte Firmware mit ESPEasy, die alle von uns genutzten Sensoren beinhaltet. Deswegen muss die Firmware von uns selbst kompiliert werden. Keine Angst - so schwer ist das nicht. Wer es dennoch nicht hinbekommt, kann sich auch hier die von uns bereits kompilierte Firmware herunterladen. Diese ist vermutlich nicht mehr ganz neu, das macht aber in aller Regel gar nichts. So funktioniert einwandfrei. Download hier: {{: | ||
Die Datei muss noch mit einem [[https:// | Die Datei muss noch mit einem [[https:// | ||
Zeile 31: | Zeile 33: | ||
* **C/C++ Extension Pack** (by Microsoft) - installiert automatisch auch die Extension **C/C++** mit | * **C/C++ Extension Pack** (by Microsoft) - installiert automatisch auch die Extension **C/C++** mit | ||
- | * %%**PlatformIO IDE** (by PlatformIO)%% | + | * **PlatformIO IDE** (by PlatformIO) |
{{howtos_knowledge_base: | {{howtos_knowledge_base: | ||
Zeile 39: | Zeile 41: | ||
{{howtos_knowledge_base: | {{howtos_knowledge_base: | ||
- | Das war's an dieser | + | Nun bereiten wir den Sourcecode für die spezifischen Einstellungen vor, die wir in der Firmware benötigen (u. a. wird hier festgelegt, welche Plugins und damit Sensoren in der Firmware zur Verfügung stehen). Dazu gehen wir links auf den Explorer und navigieren dann zur Datei '' |
- | === Firmware flashen === | + | <code c Custom.h> |
+ | #ifndef ESPEASY_CUSTOM_H | ||
+ | #define ESPEASY_CUSTOM_H | ||
+ | |||
+ | /* | ||
+ | To modify the stock configuration without changing the EspEasy.ino file : | ||
+ | 1) rename this file to " | ||
+ | 2) define your own settings below | ||
+ | 3) define USE_CUSTOM_H as a build flags. ie : export PLATFORMIO_BUILD_FLAGS="' | ||
+ | */ | ||
+ | |||
+ | |||
+ | /* | ||
+ | ####################################################################################################### | ||
+ | Your Own Default Settings | ||
+ | ####################################################################################################### | ||
+ | You can basically ovveride ALL macro defined in ESPEasy.ino. | ||
+ | Don't forget to first #undef each existing #define that you add below. | ||
+ | But since this Custom.h is included before other defines are made, you don't have to undef a lot of defines. | ||
+ | Here are some examples: | ||
+ | */ | ||
+ | |||
+ | // --- Feature Flagging --------------------------------------------------------- | ||
+ | // Can be set to 1 to enable, 0 to disable, or not set to use the default (usually via define_plugin_sets.h) | ||
+ | |||
+ | #define FEATURE_RULES_EASY_COLOR_CODE | ||
+ | #define FEATURE_ESPEASY_P2P | ||
+ | #define FEATURE_ARDUINO_OTA | ||
+ | #define FEATURE_THINGSPEAK_EVENT | ||
+ | // #define FEATURE_SD | ||
+ | // #define FEATURE_DOWNLOAD | ||
+ | |||
+ | #ifdef BUILD_GIT | ||
+ | # undef BUILD_GIT | ||
+ | #endif // ifdef BUILD_GIT | ||
+ | |||
+ | #define BUILD_GIT | ||
+ | |||
+ | |||
+ | #define DEFAULT_NAME | ||
+ | #define UNIT 0 // Unit Number | ||
+ | #define DEFAULT_DELAY | ||
+ | |||
+ | // --- Wifi AP Mode (when your Wifi Network is not reachable) ---------------------------------------- | ||
+ | #define DEFAULT_AP_IP | ||
+ | #define DEFAULT_AP_SUBNET | ||
+ | #define DEFAULT_AP_KEY | ||
+ | |||
+ | // --- Wifi Client Mode ----------------------------------------------------------------------------- | ||
+ | #define DEFAULT_SSID | ||
+ | #define DEFAULT_KEY | ||
+ | #define DEFAULT_SSID2 | ||
+ | #define DEFAULT_KEY2 | ||
+ | #define DEFAULT_WIFI_INCLUDE_HIDDEN_SSID | ||
+ | #define DEFAULT_USE_STATIC_IP | ||
+ | #define DEFAULT_IP | ||
+ | #define DEFAULT_DNS | ||
+ | #define DEFAULT_GW | ||
+ | #define DEFAULT_SUBNET | ||
+ | #define DEFAULT_IPRANGE_LOW | ||
+ | #define DEFAULT_IPRANGE_HIGH | ||
+ | #define DEFAULT_IP_BLOCK_LEVEL | ||
+ | // ONLY_IP_RANGE_ALLOWED | ||
+ | #define DEFAULT_ADMIN_USERNAME | ||
+ | #define DEFAULT_ADMIN_PASS | ||
+ | |||
+ | #define DEFAULT_WIFI_CONNECTION_TIMEOUT | ||
+ | #define DEFAULT_WIFI_FORCE_BG_MODE | ||
+ | #define DEFAULT_WIFI_RESTART_WIFI_CONN_LOST | ||
+ | #define DEFAULT_ECO_MODE | ||
+ | #define DEFAULT_WIFI_NONE_SLEEP | ||
+ | // used and need reboot to reset mode) | ||
+ | #define DEFAULT_GRATUITOUS_ARP | ||
+ | // packets to announce itself. | ||
+ | #define DEFAULT_TOLERANT_LAST_ARG_PARSE | ||
+ | // See: https:// | ||
+ | #define DEFAULT_SEND_TO_HTTP_ACK | ||
+ | |||
+ | #define DEFAULT_AP_DONT_FORCE_SETUP | ||
+ | #define DEFAULT_DONT_ALLOW_START_AP | ||
+ | |||
+ | // --- Default Controller ------------------------------------------------------------------------------ | ||
+ | #define DEFAULT_CONTROLLER | ||
+ | // defaults | ||
+ | #define DEFAULT_CONTROLLER_ENABLED true // Enable default controller by default | ||
+ | #define DEFAULT_CONTROLLER_USER | ||
+ | #define DEFAULT_CONTROLLER_PASS | ||
+ | |||
+ | // using a default template, you also need to set a DEFAULT PROTOCOL to a suitable MQTT protocol ! | ||
+ | #define DEFAULT_PUB | ||
+ | #define DEFAULT_SUB | ||
+ | #define DEFAULT_SERVER | ||
+ | #define DEFAULT_SERVER_HOST "" | ||
+ | #define DEFAULT_SERVER_USEDNS false // true: Use hostname. | ||
+ | #define DEFAULT_USE_EXTD_CONTROLLER_CREDENTIALS | ||
+ | |||
+ | #define DEFAULT_PORT | ||
+ | #define DEFAULT_CONTROLLER_TIMEOUT | ||
+ | |||
+ | #define DEFAULT_PROTOCOL | ||
+ | // | ||
+ | // | ||
+ | // 2 = Domoticz MQTT | ||
+ | // 3 = Nodo Telnet | ||
+ | // 4 = ThingSpeak | ||
+ | // 5 = Home Assistant (openHAB) MQTT | ||
+ | // 6 = PiDome MQTT | ||
+ | // 7 = EmonCMS | ||
+ | // 8 = Generic HTTP | ||
+ | // 9 = FHEM HTTP | ||
+ | |||
+ | #ifdef ESP8266 | ||
+ | #define DEFAULT_PIN_I2C_SDA | ||
+ | #endif | ||
+ | #ifdef ESP32 | ||
+ | #define DEFAULT_PIN_I2C_SDA | ||
+ | #endif | ||
+ | #ifdef ESP8266 | ||
+ | #define DEFAULT_PIN_I2C_SCL | ||
+ | #endif | ||
+ | #ifdef ESP32 | ||
+ | #define DEFAULT_PIN_I2C_SCL | ||
+ | #endif | ||
+ | #define DEFAULT_I2C_CLOCK_SPEED | ||
+ | #define FEATURE_I2C_DEVICE_SCAN | ||
+ | |||
+ | #define DEFAULT_SPI | ||
+ | |||
+ | #define DEFAULT_PIN_STATUS_LED | ||
+ | #define DEFAULT_PIN_STATUS_LED_INVERSED | ||
+ | |||
+ | #define DEFAULT_PIN_RESET_BUTTON | ||
+ | |||
+ | |||
+ | #define DEFAULT_USE_RULES | ||
+ | #define DEFAULT_RULES_OLDENGINE | ||
+ | |||
+ | #define DEFAULT_MQTT_RETAIN | ||
+ | #define DEFAULT_CONTROLLER_DELETE_OLDEST | ||
+ | #define DEFAULT_CONTROLLER_MUST_CHECK_REPLY | ||
+ | #define DEFAULT_MQTT_DELAY | ||
+ | #define DEFAULT_MQTT_LWT_TOPIC | ||
+ | #define DEFAULT_MQTT_LWT_CONNECT_MESSAGE | ||
+ | #define DEFAULT_MQTT_LWT_DISCONNECT_MESSAGE | ||
+ | #define DEFAULT_MQTT_USE_UNITNAME_AS_CLIENTID | ||
+ | |||
+ | #define DEFAULT_USE_NTP | ||
+ | #define DEFAULT_NTP_HOST | ||
+ | #define DEFAULT_TIME_ZONE | ||
+ | #define DEFAULT_USE_DST | ||
+ | |||
+ | #define DEFAULT_LATITUDE | ||
+ | #define DEFAULT_LONGITUDE | ||
+ | |||
+ | #define DEFAULT_SYSLOG_IP | ||
+ | #define DEFAULT_SYSLOG_PORT | ||
+ | #define DEFAULT_SYSLOG_FACILITY | ||
+ | #define DEFAULT_SYSLOG_LEVEL | ||
+ | #define DEFAULT_SERIAL_LOG_LEVEL | ||
+ | #define DEFAULT_WEB_LOG_LEVEL | ||
+ | #define DEFAULT_SD_LOG_LEVEL | ||
+ | #define DEFAULT_USE_SD_LOG | ||
+ | |||
+ | #define DEFAULT_USE_SERIAL | ||
+ | #define DEFAULT_SERIAL_BAUD | ||
+ | |||
+ | #define DEFAULT_SYNC_UDP_PORT | ||
+ | |||
+ | |||
+ | // Factory Reset defaults | ||
+ | #define DEFAULT_FACTORY_RESET_KEEP_UNIT_NAME | ||
+ | #define DEFAULT_FACTORY_RESET_KEEP_WIFI | ||
+ | #define DEFAULT_FACTORY_RESET_KEEP_NETWORK | ||
+ | #define DEFAULT_FACTORY_RESET_KEEP_NTP_DST | ||
+ | #define DEFAULT_FACTORY_RESET_KEEP_CONSOLE_LOG | ||
+ | |||
+ | |||
+ | //#define BUILD_NO_DEBUG | ||
+ | |||
+ | // Custom built-in url for hosting JavaScript and CSS files. | ||
+ | #define CUSTOM_BUILD_CDN_URL | ||
+ | |||
+ | |||
+ | |||
+ | // Special SSID/key setup only to be used in custom builds. | ||
+ | |||
+ | // Deployment SSID will be used only when the configured SSIDs are not reachable and/or no credentials are set. | ||
+ | // This to make deployment of large number of nodes easier | ||
+ | #define CUSTOM_DEPLOYMENT_SSID | ||
+ | #define CUSTOM_DEPLOYMENT_KEY | ||
+ | #define CUSTOM_SUPPORT_SSID | ||
+ | #define CUSTOM_SUPPORT_KEY | ||
+ | |||
+ | |||
+ | // Emergency fallback SSID will only be attempted in the first 10 minutes after reboot. | ||
+ | // When found, the unit will connect to it and depending on the built in flag, it will either just connect to it, or clear set credentials. | ||
+ | // Use case: User connects to a public AP which does need to agree on an agreement page for the rules of conduct (e.g. open APs) | ||
+ | // This is seen as a valid connection, so the unit will not reconnect to another node and thus becomes inaccessible. | ||
+ | #define CUSTOM_EMERGENCY_FALLBACK_SSID | ||
+ | #define CUSTOM_EMERGENCY_FALLBACK_KEY | ||
+ | |||
+ | #define CUSTOM_EMERGENCY_FALLBACK_RESET_CREDENTIALS | ||
+ | #define CUSTOM_EMERGENCY_FALLBACK_START_AP | ||
+ | |||
+ | #define CUSTOM_EMERGENCY_FALLBACK_ALLOW_MINUTES_UPTIME 10 | ||
+ | |||
+ | // Allow for remote provisioning of a node. | ||
+ | // This is only allowed for custom builds. | ||
+ | // To setup the configuration of the provisioning file, one must also define FEATURE_SETTINGS_ARCHIVE | ||
+ | // Default setting is to not allow to configure a node remotely, unless explicitly enabled. | ||
+ | // #define FEATURE_CUSTOM_PROVISIONING | ||
+ | |||
+ | #define FEATURE_SSDP | ||
+ | |||
+ | #define FEATURE_EXT_RTC | ||
+ | |||
+ | #define FEATURE_PLUGIN_STATS | ||
+ | #ifdef ESP8266 | ||
+ | # define PLUGIN_STATS_NR_ELEMENTS 16 | ||
+ | #endif // ifdef ESP8266 | ||
+ | # ifdef ESP32 | ||
+ | # define PLUGIN_STATS_NR_ELEMENTS 64 | ||
+ | #endif // ifdef ESP32 | ||
+ | #define FEATURE_CHART_JS | ||
+ | |||
+ | // Optional alternative CDN links: | ||
+ | // Chart.js: (only used when FEATURE_CHART_JS is enabled) | ||
+ | // #define CDN_URL_CHART_JS " | ||
+ | // JQuery: | ||
+ | // #define CDN_URL_JQUERY " | ||
+ | |||
+ | |||
+ | #define FEATURE_SETTINGS_ARCHIVE 1 | ||
+ | // #define FEATURE_I2CMULTIPLEXER 1 | ||
+ | // #define FEATURE_TRIGONOMETRIC_FUNCTIONS_RULES 1 | ||
+ | // #define PLUGIN_USES_ADAFRUITGFX // Used by Display plugins using Adafruit GFX library | ||
+ | // #define ADAGFX_ARGUMENT_VALIDATION | ||
+ | // #define ADAGFX_SUPPORT_7COLOR | ||
+ | #define FEATURE_SEND_TO_HTTP 1 // Enable availability of the SendToHTTP command | ||
+ | #define FEATURE_POST_TO_HTTP 1 // Enable availability of the PostToHTTP command | ||
+ | #define FEATURE_PUT_TO_HTTP 1 // Enable availability of the PutToHTTP command | ||
+ | // #define FEATURE_I2C_DEVICE_CHECK 0 // Disable the I2C Device check feature | ||
+ | // #define FEATURE_I2C_GET_ADDRESS 0 // Disable fetching the I2C address from I2C plugins. Will be enabled when FEATURE_I2C_DEVICE_CHECK is enabled | ||
+ | // #define FEATURE_RTTTL 1 // Enable rtttl command | ||
+ | // #define FEATURE_ANYRTTTL_LIB 1 // Use AnyRttl library for RTTTL handling | ||
+ | // #define FEATURE_ANYRTTTL_ASYNC 1 // When AnyRttl enabled, use Async (nonblocking) mode instead of the default Blocking mode | ||
+ | // #define FEATURE_RTTTL_EVENTS | ||
+ | |||
+ | #if FEATURE_CUSTOM_PROVISIONING | ||
+ | // For device models, see src/ | ||
+ | // #ifdef ESP32 | ||
+ | // #define DEFAULT_FACTORY_DEFAULT_DEVICE_MODEL | ||
+ | // #endif | ||
+ | // #ifdef ESP8266 | ||
+ | // #define DEFAULT_FACTORY_DEFAULT_DEVICE_MODEL | ||
+ | // #endif | ||
+ | // #define DEFAULT_PROVISIONING_FETCH_RULES1 | ||
+ | // #define DEFAULT_PROVISIONING_FETCH_RULES2 | ||
+ | // #define DEFAULT_PROVISIONING_FETCH_RULES3 | ||
+ | // #define DEFAULT_PROVISIONING_FETCH_RULES4 | ||
+ | // #define DEFAULT_PROVISIONING_FETCH_NOTIFICATIONS false | ||
+ | // #define DEFAULT_PROVISIONING_FETCH_SECURITY | ||
+ | // #define DEFAULT_PROVISIONING_FETCH_CONFIG | ||
+ | // #define DEFAULT_PROVISIONING_FETCH_PROVISIONING false | ||
+ | // #define DEFAULT_PROVISIONING_FETCH_FIRMWARE | ||
+ | // #define DEFAULT_PROVISIONING_SAVE_URL | ||
+ | // #define DEFAULT_PROVISIONING_SAVE_CREDENTIALS | ||
+ | // #define DEFAULT_PROVISIONING_ALLOW_FETCH_COMMAND false | ||
+ | // #define DEFAULT_PROVISIONING_URL | ||
+ | // #define DEFAULT_PROVISIONING_USER | ||
+ | // #define DEFAULT_PROVISIONING_PASS | ||
+ | #endif | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | /* | ||
+ | ####################################################################################################### | ||
+ | | ||
+ | ####################################################################################################### | ||
+ | */ | ||
+ | |||
+ | #define MENU_INDEX_MAIN_VISIBLE | ||
+ | /* | ||
+ | #define MENU_INDEX_CONFIG_VISIBLE | ||
+ | #define MENU_INDEX_CONTROLLERS_VISIBLE | ||
+ | #define MENU_INDEX_HARDWARE_VISIBLE | ||
+ | #define MENU_INDEX_DEVICES_VISIBLE | ||
+ | #define MENU_INDEX_RULES_VISIBLE | ||
+ | #define MENU_INDEX_NOTIFICATIONS_VISIBLE false | ||
+ | #define MENU_INDEX_TOOLS_VISIBLE | ||
+ | */ | ||
+ | |||
+ | #define MAIN_PAGE_SHOW_SYSINFO_BUTTON | ||
+ | #define MAIN_PAGE_SHOW_WiFi_SETUP_BUTTON true | ||
+ | #define MAIN_PAGE_SHOW_BASIC_INFO_NOT_LOGGED_IN false | ||
+ | |||
+ | #define MAIN_PAGE_SHOW_NODE_LIST_BUILD | ||
+ | #define MAIN_PAGE_SHOW_NODE_LIST_TYPE | ||
+ | |||
+ | #define SETUP_PAGE_SHOW_CONFIG_BUTTON | ||
+ | |||
+ | // #define FEATURE_AUTO_DARK_MODE | ||
+ | // #define FEATURE_EXTENDED_TASK_VALUE_TYPES 0 // 0 = Disable extra task value types like 64 bit ints, double, etc. in Dummy tasks | ||
+ | // #define FEATURE_USE_DOUBLE_AS_ESPEASY_RULES_FLOAT_TYPE 0 // 0 = switch to float as floating point type for rules/ | ||
+ | |||
+ | //#define WEBPAGE_TEMPLATE_HIDE_HELP_BUTTON | ||
+ | |||
+ | #define SHOW_SYSINFO_JSON 1 //Enables the sysinfo_json page (by default is enabled when WEBSERVER_NEW_UI is enabled too) | ||
+ | |||
+ | /* | ||
+ | ####################################################################################################### | ||
+ | CSS / template | ||
+ | ####################################################################################################### | ||
+ | */ | ||
+ | /* | ||
+ | #define WEBPAGE_TEMPLATE_DEFAULT_HEADER "< | ||
+ | #define WEBPAGE_TEMPLATE_DEFAULT_FOOTER "< | ||
+ | #define WEBPAGE_TEMPLATE_AP_HEADER | ||
+ | #define WEBPAGE_TEMPLATE_HIDE_HELP_BUTTON | ||
+ | */ | ||
+ | // Embed Custom CSS in Custom.h: | ||
+ | /* | ||
+ | #define WEBSERVER_EMBED_CUSTOM_CSS | ||
+ | static const char DATA_ESPEASY_DEFAULT_MIN_CSS[] PROGMEM = { | ||
+ | ... | ||
+ | ,0}; | ||
+ | */ | ||
+ | |||
+ | |||
+ | /* | ||
+ | ####################################################################################################### | ||
+ | | ||
+ | ####################################################################################################### | ||
+ | */ | ||
+ | |||
+ | // #define FEATURE_NON_STANDARD_24_TASKS | ||
+ | |||
+ | /* | ||
+ | ####################################################################################################### | ||
+ | Your Own selection of plugins and controllers | ||
+ | ####################################################################################################### | ||
+ | */ | ||
+ | |||
+ | #define CONTROLLER_SET_NONE | ||
+ | #define NOTIFIER_SET_NONE | ||
+ | #define PLUGIN_SET_NONE | ||
+ | |||
+ | /* | ||
+ | ####################################################################################################### | ||
+ | ########### | ||
+ | ####################################################################################################### | ||
+ | */ | ||
+ | |||
+ | // #define FEATURE_SERVO | ||
+ | |||
+ | |||
+ | #define USES_P001 | ||
+ | #define USES_P002 | ||
+ | #define USES_P003 | ||
+ | #define USES_P004 | ||
+ | #define USES_P005 | ||
+ | #define USES_P006 | ||
+ | // #define USES_P007 | ||
+ | // #define USES_P008 | ||
+ | // #define USES_P009 | ||
+ | |||
+ | #define USES_P010 | ||
+ | #define USES_P011 | ||
+ | #define USES_P012 | ||
+ | #define USES_P013 | ||
+ | #define USES_P014 | ||
+ | #define USES_P015 | ||
+ | // #define USES_P017 | ||
+ | #define USES_P018 | ||
+ | #define USES_P019 | ||
+ | |||
+ | #define USES_P020 | ||
+ | #define USES_P021 | ||
+ | // #define USES_P022 | ||
+ | #define USES_P023 | ||
+ | #define USES_P024 | ||
+ | #define USES_P025 | ||
+ | #define USES_P026 | ||
+ | #define USES_P027 | ||
+ | #define USES_P028 | ||
+ | #define USES_P029 | ||
+ | |||
+ | #define USES_P031 | ||
+ | #define USES_P032 | ||
+ | #define USES_P033 | ||
+ | #define USES_P034 | ||
+ | #define USES_P036 | ||
+ | #define P036_FEATURE_DISPLAY_PREVIEW | ||
+ | #define P036_FEATURE_ALIGN_PREVIEW | ||
+ | #define P036_ENABLE_TICKER | ||
+ | #define USES_P037 | ||
+ | #define P037_MAPPING_SUPPORT 1 // Enable Value mapping support | ||
+ | #define P037_FILTER_SUPPORT | ||
+ | #define P037_JSON_SUPPORT | ||
+ | #define USES_P038 | ||
+ | #define P038_FEATURE_NEOPIXELFOR 1 // Enable NeoPixelFor/ | ||
+ | #define USES_P039 | ||
+ | |||
+ | // #define USES_P040 | ||
+ | // #define USES_P041 | ||
+ | // #define USES_P042 | ||
+ | #define USES_P043 | ||
+ | #define USES_P044 | ||
+ | // #define USES_P045 | ||
+ | // #define USES_P046 | ||
+ | #define USES_P047 | ||
+ | // #define USES_P048 | ||
+ | #define USES_P049 | ||
+ | |||
+ | #define USES_P050 | ||
+ | #define USES_P051 | ||
+ | #define USES_P052 | ||
+ | #define USES_P053 | ||
+ | // #define USES_P054 | ||
+ | // #define USES_P055 | ||
+ | #define USES_P056 | ||
+ | // #define USES_P057 | ||
+ | // #define USES_P058 | ||
+ | #define USES_P059 | ||
+ | |||
+ | // #define USES_P060 | ||
+ | // #define USES_P061 | ||
+ | // #define USES_P062 | ||
+ | #define USES_P063 | ||
+ | // #define USES_P064 | ||
+ | // #define USES_P065 | ||
+ | #define USES_P066 | ||
+ | // #define USES_P067 | ||
+ | #define USES_P068 | ||
+ | #define USES_P069 | ||
+ | |||
+ | // #define USES_P070 | ||
+ | // #define USES_P071 | ||
+ | #define USES_P072 | ||
+ | #define USES_P073 | ||
+ | #define USES_P074 | ||
+ | // #define USES_P075 | ||
+ | // #define USES_P076 | ||
+ | // #define USES_P077 | ||
+ | // #define USES_P078 | ||
+ | #define USES_P079 | ||
+ | |||
+ | // #define USES_P080 | ||
+ | #define USES_P081 | ||
+ | // #define USES_P082 | ||
+ | #define USES_P083 | ||
+ | #define USES_P084 | ||
+ | // #define USES_P085 | ||
+ | // #define USES_P086 | ||
+ | // #define USES_P087 | ||
+ | // #define USES_P088 | ||
+ | #define USES_P089 | ||
+ | |||
+ | #define USES_P090 | ||
+ | // #define USES_P091 | ||
+ | // #define USES_P092 | ||
+ | // #define USES_P093 | ||
+ | // #define USES_P094 | ||
+ | // #define USES_P095 | ||
+ | // #define USES_P096 | ||
+ | // #define USES_P097 | ||
+ | // #define USES_P098 | ||
+ | // #define USES_P099 | ||
+ | |||
+ | // #define USES_P100 | ||
+ | // #define USES_P101 | ||
+ | // #define USES_P102 | ||
+ | #define USES_P103 | ||
+ | // #define USES_P104 | ||
+ | #define USES_P105 | ||
+ | #define USES_P106 | ||
+ | // #define USES_P107 | ||
+ | // #define USES_P108 | ||
+ | // #define USES_P109 | ||
+ | |||
+ | #define USES_P110 | ||
+ | // #define USES_P111 | ||
+ | #define USES_P112 | ||
+ | #define USES_P113 | ||
+ | #define USES_P114 | ||
+ | // #define USES_P115 | ||
+ | // #define USES_P116 | ||
+ | #define USES_P117 | ||
+ | #define USES_P118 | ||
+ | // #define USES_P119 | ||
+ | |||
+ | // #define USES_P120 | ||
+ | // #define USES_P121 | ||
+ | // #define USES_P122 | ||
+ | // #define USES_P123 | ||
+ | // #define USES_P124 | ||
+ | // #define USES_P125 | ||
+ | // #define USES_P126 | ||
+ | #define USES_P127 | ||
+ | // #define USES_P128 | ||
+ | // # | ||
+ | // # | ||
+ | // # | ||
+ | // # | ||
+ | // # | ||
+ | // # | ||
+ | // # | ||
+ | // # | ||
+ | // #define USES_P129 | ||
+ | |||
+ | // #define USES_P131 | ||
+ | // #define USES_P132 | ||
+ | #define USES_P133 | ||
+ | // #define USES_P134 | ||
+ | #define USES_P135 | ||
+ | // # | ||
+ | // #define USES_P137 | ||
+ | // #define USES_P138 | ||
+ | |||
+ | // #define USES_P141 | ||
+ | #define USES_P142 | ||
+ | // #define USES_P143 | ||
+ | // # | ||
+ | // # | ||
+ | // # | ||
+ | |||
+ | // #define USES_P144 | ||
+ | #define USES_P145 | ||
+ | #define USES_P146 | ||
+ | #define USES_P147 | ||
+ | // #define P147_FEATURE_GASINDEXALGORITHM | ||
+ | |||
+ | // #define USES_P148 | ||
+ | #define USES_P150 | ||
+ | #define USES_P151 | ||
+ | #define USES_P152 | ||
+ | #define USES_P153 | ||
+ | #define USES_P154 | ||
+ | |||
+ | // #define USES_P159 | ||
+ | |||
+ | // #define USES_P162 | ||
+ | #define USES_P163 | ||
+ | #define USES_P164 | ||
+ | // #define USES_P166 | ||
+ | #define USES_P167 | ||
+ | #define USES_P168 | ||
+ | #define USES_P169 | ||
+ | #define USES_P170 | ||
+ | #define USES_P172 | ||
+ | #define USES_P173 | ||
+ | |||
+ | /* | ||
+ | ####################################################################################################### | ||
+ | ########### | ||
+ | ####################################################################################################### | ||
+ | */ | ||
+ | |||
+ | |||
+ | #define USES_C001 | ||
+ | #define USES_C002 | ||
+ | #define USES_C003 | ||
+ | #define USES_C004 | ||
+ | #define USES_C005 | ||
+ | #define USES_C006 | ||
+ | #define USES_C007 | ||
+ | #define USES_C008 | ||
+ | #define USES_C009 | ||
+ | #define USES_C010 | ||
+ | #define USES_C011 | ||
+ | #define USES_C012 | ||
+ | #define USES_C013 | ||
+ | #define USES_C014 | ||
+ | #define USES_C015 | ||
+ | #define USES_C016 | ||
+ | #define USES_C017 | ||
+ | #define USES_C018 | ||
+ | |||
+ | |||
+ | /* | ||
+ | ####################################################################################################### | ||
+ | ########### | ||
+ | ####################################################################################################### | ||
+ | */ | ||
+ | |||
+ | |||
+ | #define USES_N001 | ||
+ | #define USES_N002 | ||
+ | |||
+ | |||
+ | #endif // ESPEASY_CUSTOM_H | ||
+ | |||
+ | </ | ||
+ | |||
+ | Mit '' | ||
+ | |||
+ | {{howtos_knowledge_base: | ||
+ | |||
+ | Die fertig kompilierte Firmware findet ihr im Verzeichnis '' | ||
+ | |||
+ | Das war's an dieser Stelle - Du hast es geschafft! Macht jetzt im [[# | ||
+ | |||
+ | ===== Firmware flashen ===== | ||
Folgende Software benötigt ihr: | Folgende Software benötigt ihr: | ||
Zeile 48: | Zeile 653: | ||
* PuTTY: [[https:// | * PuTTY: [[https:// | ||
- | Als erstes ladet ihr Euch noch die Flashsoftware "Flash Download Tool" herunter. Das Flash Download Tool wird auf euren Rechner mit einem [[https:// | + | Als erstes ladet ihr Euch noch die Flashsoftware "Flash Download Tool" herunter. Das Flash Download Tool wird auf euren Rechner mit einem [[https:// |
Überprüft nun, welcher COM-Port eurem Device zugeordnet wurde: [[https:// | Überprüft nun, welcher COM-Port eurem Device zugeordnet wurde: [[https:// | ||
Zeile 60: | Zeile 665: | ||
Setzt vorne den Haken und gebt hinten als Startadresse hinter dem @-Zeichen '' | Setzt vorne den Haken und gebt hinten als Startadresse hinter dem @-Zeichen '' | ||
- | {{howtos_knowledge_base: | + | {{howtos_knowledge_base: |
Das war's. Macht jetzt im [[# | Das war's. Macht jetzt im [[# | ||
- | === Konfiguration === | + | ===== Konfiguration |
Zieht den ESP32 vom USB ab und installiert und startet dann '' | Zieht den ESP32 vom USB ab und installiert und startet dann '' | ||
Zeile 70: | Zeile 675: | ||
{{howtos_knowledge_base: | {{howtos_knowledge_base: | ||
- | Nun verbindet ihr den ESP32 wieder mit dem Rechner, wartet 1-2 Sekunden, bis der ESP erkannt wurde und klickt in PuTTY dann auf '' | + | Nun verbindet ihr den ESP32 wieder mit dem Rechner, wartet 1-2 Sekunden, bis der ESP erkannt wurde und klickt in PuTTY dann auf '' |
+ | |||
+ | {{howtos_knowledge_base: | ||
- | Der ESP macht wie üblich ein eigenes WLAN auf - der Name variiert je nach Firmware etwas. Er lautet '' | + | Der ESP macht wie üblich ein eigenes WLAN auf - der Name variiert je nach Firmware etwas (siehe oben - ihr seht den Namen in den Bootmeldungen). Er lautet '' |
Unter '' | Unter '' | ||
Zeile 78: | Zeile 685: | ||
{{howtos_knowledge_base: | {{howtos_knowledge_base: | ||
- | Im Tab '' | + | Im Tab '' |
{{howtos_knowledge_base: | {{howtos_knowledge_base: | ||
- | Im Tab '' | + | Im Tab '' |
- | * %%Controller Subscribe: | + | * Controller Subscribe: '' |
- | * %%Controller Publish: | + | * Controller Publish: '' |
- | * %%Controller LWT Topic: | + | * Controller LWT Topic: '' |
- | * %%LWT Connect Message: | + | * LWT Connect Message: '' |
- | * %%LWT Disconnect Message: | + | * LWT Disconnect Message: '' |
* Send LWT to Broker: '' | * Send LWT to Broker: '' | ||
* Enabled: '' | * Enabled: '' | ||
- | {{howtos_knowledge_base: | + | {{:howtos_knowledge_base: |
Anschließend sollte sich der ESP mit eurem MQTT Broker verbinden. Prüft den Status im '' | Anschließend sollte sich der ESP mit eurem MQTT Broker verbinden. Prüft den Status im '' |