Month: April 2022
Add-On Configuration | Home Assistant Developer Docs
Source: Add-On Configuration | Home Assistant Developer Docs
tcp – iptables/haproxy limit packets per second
iptables -A INPUT -p tcp --dport 1234 -m state --state NEW -j ACCEPT
iptables -I INPUT -p tcp --dport 1234 -m hashlimit --hashlimit-mode srcip,srcport --hashlimit-name HASHNAME --hashlimit-htable-max 5000 --hashlimit-htable-expire 10000 --hashlimit-above 5/sec -j DROP
Source: tcp – iptables/haproxy limit packets per second – Server Fault
Shell Command
This integration can expose regular shell commands as services. Services can be called from a script or in automation. Shell commands aren’t allowed for a camel-case naming, please use lowercase naming only and separate the names with underscores.
Source: Shell Command – Home Assistant
Help needed – Cron job not working with HA OS – Configuration
Instead of Cron jobs you could schedule it directly into HA using automation and shell commands. I have tons of these that I use for various purposes and doing it in HA has the added benefit of being able to set conditions on which scripts to execute and when. For example, here is what I use to truncate my log every hour:
shell_commands.yaml:
shell_rotate_log: '/config/logreset.sh'
automation:
alias: 'Schedule: Clear Logs Each Hour' description: '' trigger: - platform: time_pattern hours: /1 minutes: '59' condition: [] action: - service: shell_command.shell_rotate_log data: {} mode: single
Source: Help needed – Cron job not working with HA OS – Configuration – Home Assistant Community
ESP32 Serial.read to slow
Repair Corrupt Video Files using FFmpeg
If it’s a corrupt MP4 video:
ffmpeg -i input.mp4 -c copy output.mp4
https://www.stellarinfo.com/blog/repair-corrupt-videos-using-ffmpeg/
Watch “Asparagus Cultivation Techniques” on YouTube
LibSSH-ESP32
The Worst Person in the World (2021)
https://www.imdb.com/title/tt10370710/