Wolfgang_S
(Wolfgang_S)
September 1, 2020, 2:16am
6
Yes, that should work. See e.g.
did you put /usr/bin/ssh using visudo for openhabian as well?
This (password for sudo when beeing openhabian) should then be solved.
executeCommandLine("sudo /usr/bin/ssh -p 8101 -i /etc/openhab2/openhab.id_rsa openhab@localhost bundle:restart org.openhab.binding.ipcamera")
you forgot the timeout at the end:
executeCommandLine("sudo /usr/bin/ssh -p 8101 -i /etc/openhab2/openhab.id_rsa openhab@localhost bundle:restart org.openhab.binding.ipcamera", 5000)
But I am not sure, if a default valu…
I upgraded to 2.5.3.202003100402 and seem to have better stability at this time. I had one node that was still causing problems for me and changed the USB cable and power supply I was using to power it and it’s been up for a few days now (was only going about 12hrs).
and there are more examples.
While the above examples use ssh key-pairs for authentication your script uses password.
So the above examples can be used for the OH cron part. Just adapt it to continue to use password instead of keys.