zigbee2mqtt-frontend
zigbee2mqtt-frontend copied to clipboard
[feat] Button to download current & old log files
Is your feature request related to a problem? Please describe.
Some setups don't make it particularly easy to retrieve log files.
Describe the solution you'd like
A button in Tools to download the current log file.
A button to load a list of older log files, with accompanying buttons to download them too (or some other fashion to achieve this).
Include a version for each button that sanitizes the log file before download (for sharing). Checks for security (network key, IEEE...) and privacy (friendly names...) items.
Just a side note here : websockets are not really the best solution to manage this use case, and z2m-frontend is mostly interacting with ws/wss so far (streaming chunks of logs currently).
I would suggest to :
- add a new HTTP-based API in z2m to manage file downloads (list/download)
- implement a z2m-frontend button to request those files through regular HTTP file transfers