Video describes the NUT configuration and how to install Docker, Docker Compose and run the Home Assistant as a Docker container. Additionally I present how to turn off the Mikrotik router from the Raspberry Pi if the battery level state is low.
I decided to "promote" this video that is just an excellent example that explains step by step how to install and configure NUT on a Raspberry Pi. https://youtu.be/vyBP7wpN72c
NUT documentation: https://networkupstools.org/docs/man/
My article about this: https://sysadmin.info.pl/en/configure-the-nut-to-manage-a-ups-through-the-home-assistant-as-a-docker-container-on-a-raspberry-pi
I created a nut user on a Mikrotik and additionally tested it with RSA keys without a passphrase what in LAN is let's say secure enough. All you have to do is to save private and public key in openSSH format, but not the newest one, but instead the standard format - hope I explained it well, just because Puttygen allows you to save the RSA key in new openSSH format. Anyway you have to upload the private key into the Files in Mikrotik, and then in system - users section im port the key for a user. But you can also just use ordinary password with sshpass as I did in the password. If you want use RSA, you have to remove this from bash script:
sshpass -f /root/creds
All the necessary scripts are on my github account:
https://github.com/sysadmin-info/NUT
You can buy me a coffee:
☕https://www.buymeacoffee.com/sysadmininfo
Gear I use:
⚙ https://kit.co/sysadmin-info
Wants more?
Check:
🌐https://sysadmin.info.pl
ⓕ https://facebook.com/sysadmininfo
Best YouTube to MP3 Converter
Tube MP3 is the leading converter which allows you to convert YouTube videos to MP3 files with just a few clicks. It supports high quality MP3 up to 320kbps. Enjoy listening to your favorite YouTube songs in offline mode.