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.sh
For 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=2
grep -rhi "Reboot" logs | sort
grep -rh "Changed operating mode" logs | sort
grep -rh "Switched off" logs | sort
grep -rh "external control mode" logs | sort