Commit Graph

2131 Commits

Author SHA1 Message Date
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
Thomas Basler
7f922f849a Pinmapping: Remove println output 2025-04-18 11:00:13 +02:00
Thomas Basler
86e5aa1576 Hoymiles Lib: Return command string directly instead of printing it to a stream 2025-04-18 11:00:13 +02:00
Thomas Basler
613f8ab5a6 Hoymiles Lib: Use pre-rendered serial number 2025-04-18 11:00:13 +02:00
Thomas Basler
e71796d451 Hoymiles Lib: Move array dumping methods in separate method 2025-04-18 11:00:13 +02:00
Thomas Basler
cb1ecd812c Hoymiles Lib: Replace lot of println by printf 2025-04-18 11:00:13 +02:00
Thomas Basler
3addcc2758 Use more thread save Message Output
Thanks to OnBattery!
2025-04-18 11:00:13 +02:00
Thomas Basler
82985d0bb2 Remove outdated screenshots as they are available in the official documentation as well 2025-04-10 18:48:31 +02:00
Thomas Basler
163a32154c Fix typo 2025-04-10 18:45:36 +02:00