Bash script to download log files from your SENEC device
First, download the script and make it executable:
curl -sSO https://raw.githubusercontent.com/solectrus/senec-log-downloader/main/download.sh
chmod +x download.shFor configuration, you can use your .env file from SOLECTRUS or create and edit a new one using the following commands:
curl -sSO https://raw.githubusercontent.com/solectrus/senec-log-downloader/main/.env
nano .env
Now you can run the script with ./download.sh. After the script has finished, you will find the results in the logs/ directory.
After downloading the logs, you can search them for specific entries by using grep. Here are some examples:
grep -rh "\[I|Settings\] MCU firmware" logs | sort | uniq --skip-fields=2grep -rhi "Reboot" logs | sortgrep -rh "Changed operating mode" logs | sortgrep -rh "Switched off" logs | sortgrep -rh "external control mode" logs | sort