Commit Graph

2189 Commits

Author SHA1 Message Date
Thomas Basler
4099347a43 webapp: Add additional filter possibilities to console view 2025-05-04 16:26:27 +02:00
Bernhard Kirchen
95106e4488 Fix: motivate browsers to reload web app resources
by mangling the Git commit hash into the MD5 hash of all web application
resource's ETag headers, we ensure that index.html is essentially
invalidated in the browser's cache, even if the actual content is the
same between firmware versions. this hopefully makes the browser
recognize that it has to reload app.js in particular.
2025-05-04 16:26:27 +02:00
Thomas Basler
cb73af73e7 webapp: Make css for home view only available for home view 2025-05-04 16:26:27 +02:00
Thomas Basler
a1b2ea7a76 webapp: Add hint text for the core log level 2025-05-04 16:26:27 +02:00
Thomas Basler
bb800a1dac Apply log level only for facilities which are available for configuration 2025-05-04 16:26:27 +02:00
Thomas Basler
1b640751a5 Upgrade ESP32Async/ESPAsyncWebServer from 3.7.6 to 3.7.7 2025-05-04 16:26:27 +02:00
Thomas Basler
c9f6932b6d Update bblanchon/ArduinoJson from 7.3.1 to 7.4.1 2025-05-04 16:26:27 +02:00
Thomas Basler
e1f00fd7f5 webapp: Update dependencies 2025-05-04 16:26:27 +02:00
Thomas Basler
a397f57f90 CPU temperature: make boolean value human-readable in serial log 2025-05-04 16:26:27 +02:00
Thomas Basler
030df8b715 Syslog: Send dynamic headers based on log level of the message
The code part regarding overflow was also removed as the write method 1 in any case. Different handling regarding line break etc. in one message was also removed as the function is called only containing one log line from MessageOutput.
2025-05-04 16:26:27 +02:00
Thomas Basler
633d9b9802 webapp: Extend language packs for syslog messages 2025-05-04 16:26:27 +02:00
Thomas Basler
473dd6cbcc Use new logging function in syslog module 2025-05-04 16:26:27 +02:00
Bernhard Kirchen
ecc85bb4a1 webapp: optimize syslog settings
* avoid duplicate id for hostname input
* hide server and port inputs if syslog disabled
2025-05-04 16:26:27 +02:00
ranma
bf31ccd02c Feature: Add syslog logger
This implements RFC5424 version of the protocol.

Doesn't use https://github.com/arcao/Syslog since the protocol itself
is trivial and most of the libraries functionality is not needed here.
The library also doesn't support setting the PROCID field, which is set
to a random id to indicate a reboot here.

Adds UI for syslog configuration to network admin view.
2025-05-04 16:26:27 +02:00
Tobias Diedrich
3d39349876 Add UI for syslog configuration to network view 2025-05-04 16:26:27 +02:00
Thomas Basler
4b5659456c bump mikepenz/release-changelog-builder-action from 4 to 5 2025-05-04 16:17:24 +02:00
benzman
d039455b82 Fix: handle MQTT message fragmentation
MQTT messages might arrive in parts if their payload is too big. for that
reason, we need to be prepared to re-assemble fragmented messages
on a topic before handing them over to the subscriber.
2025-05-04 16:17:24 +02:00
Thomas Basler
d4c29d708b Feature: Allow setting the log level for the different modules at runtime 2025-05-04 16:17:24 +02:00
Thomas Basler
d51e79c90a webapp: Allow scrolling in horizontal direction in console window 2025-05-04 16:17:24 +02:00
Thomas Basler
3eaff7e45c Use ESP Logging Macros for hoymiles library 2025-05-04 16:17:24 +02:00
Thomas Basler
1c6dffbfce Use ESP Logging Macros for invertersetup 2025-05-04 16:17:24 +02:00
Thomas Basler
7df4bbc454 Use ESP Logging Macros for i18n 2025-05-04 16:17:23 +02:00
Thomas Basler
c5e97a5c7b Use ESP Logging Macros for mqtt 2025-05-04 16:17:23 +02:00
Thomas Basler
d0e8dbe61f Use ESP Logging Macros for network 2025-05-04 16:17:23 +02:00
Thomas Basler
24b0dae659 Use ESP Logging Macros for configuration 2025-05-04 16:17:23 +02:00
Thomas Basler
ac03cbff3c Use ESP Logging Macros for pinmapping 2025-05-04 16:17:23 +02:00
Thomas Basler
77eff68c5f Use ESP Logging Macros for utils 2025-05-04 16:17:23 +02:00
Thomas Basler
dd646aebff Use ESP Logging Macros for webapi 2025-05-04 16:17:23 +02:00
Thomas Basler
6bbea37526 Use ESP Logging Macros for device startup 2025-05-04 16:17:23 +02:00
Thomas Basler
724890147f Feature: Redirect all ESP log output to the MessageOutput handler 2025-05-04 16:17:23 +02:00
Thomas Basler
98e6d05e4e Feature: Rewrite virutal console to support new line break and colored highlighting 2025-05-04 16:17:23 +02:00
Thomas Basler
8372deaf7c BREAKING CHANGE: Logging newline changed from "\r\n" to "\n" 2025-05-04 16:17:23 +02:00
Thomas Basler
8fa23bcca7 Use same name for CMT debug messages 2025-05-04 16:17:23 +02:00
Thomas Basler
935ef6fcd1 Fix: Prevent unpredicted behavior on overflows of millis() 2025-05-04 16:17:23 +02:00
Thomas Basler
9d0de8d2ca Replace all print and println with printf in startup code 2025-05-04 16:17:23 +02:00
Thomas Basler
39b8d3f43f Implement Wifi reconnect watchdog
Sometimes the ESP does not trigger the ARDUINO_EVENT_WIFI_STA_DISCONNECTED when a disconnect occours. In this case, no further reconnect attempt is done. To take care of this behavior, the wifi hardware is reset when no connect occours within 60 seconds..
2025-05-04 16:17:23 +02:00
Thomas Basler
ec614b3132 Move disableAdminMode to separate method 2025-05-04 16:16:38 +02:00
Thomas Basler
ed9d4cc65d Fix: When enabling admin mode, the search for the STA was automatically disabled 2025-05-04 16:16:38 +02:00
Thomas Basler
818133e866 Wifi connection is only established when IP is set and the stack reports connected 2025-05-04 16:16:38 +02:00
Thomas Basler
6b3decf397 Fix possible race condition when enabling Admin Mode AP 2025-05-04 16:16:38 +02:00
Thomas Basler
52961ed5a6 InverterSettings: Optimize init function
Also replace all print and println by printf
2025-05-04 16:16:38 +02:00
Thomas Basler
6c4d3f47c7 NetworkSettings: Optimize loop function
Also replace all print and println by printf
2025-05-04 16:16:38 +02:00
Thomas Basler
f490e4af4b NetworkSettings: Optimize handleMDNS function
Also replace all print and println by printf
2025-05-04 16:16:38 +02:00
Thomas Basler
650f33f7f7 NetworkSettings: Optimize setStaticIp function
Also replace all print and println by printf
2025-05-04 16:16:38 +02:00
Thomas Basler
b911ba09a4 NetworkSettings: Optimize applyConfig function
Also replace all print and println by printf
2025-05-04 16:16:38 +02:00
Thomas Basler
852649fd86 NetworkSettings: Optimize setHostname function
Also replace all print and println by printf
2025-04-18 11:00:13 +02:00
Thomas Basler
0dcf3c5902 NetworkSettings: Replace println by printf 2025-04-18 11:00:13 +02:00
Thomas Basler
9735deae44 Configuration: Replace print and println with printf 2025-04-18 11:00:13 +02:00
Thomas Basler
3572f177fa MqttHandleInverter: Replace all print and println with printf 2025-04-18 11:00:13 +02:00
Thomas Basler
5cb7fcd854 MqttSettings: Replace all print and println with printf 2025-04-18 11:00:13 +02:00