Ok I installed my openhab2 platform on a raspberry pi and in using it to control all my stuff with it.
So now I want to conrol additionally my Synology NAS DS218+ and my MagicMirror (another Raspberry Pi 3b+).
For this I thnik I shoud use the exec-Binding right?
For the raspberry pi:
I tried to use this but I’m not sure if I need the stuff on my openhab installation what he did. I just need a user, who is allowed to do reboot, shutdown and update, upgrade.
For the synology:
For example in my sshd_config I don’t have the first option in my synology:
#RSAAuthentication yes #PubkeyAuthentication yes
I just want to aks if anybody knows, if there is a easier way. Just asking
So I startet to create the openhab user for the magicmirror. Then I set the openhab user to no password for the commands shutdown, reboot that openhab just can do this stuff.
No my question is it better to create some .sh files and then runn them by the exec command like: