My Living Room TV is running Android TV and therefore able to receive notifications, which is very handy. So after a few searches with our friend google, I found a way to send notifications.
To make sure that I can get things working as they should I have rule created a simple rule that when runs has the following line.
The result from this doesn’t display anything on the TV screen as there are two commas that shouldn’t be there for some reason. Here’s what the command should be.
/opt/openhab/conf/scripts/Sonarr.sh 'The Grand Tour'
hi,
i usually build the whole command I want to execute in a separate string variable and put this string variable in the executecommandline. You can print it in the log before to see what it is doing.
cheers
When i running this directly at the command line it work perfectly. Which is why this is so confusing. I’m also running the command as root, so permissions shouldn’t be an issue.
I’ll change my logging to DEBUG and see what that outputs.
The openhab account shouldn’t be in sudoers, so I don’t think that will work. But @Maximo could make sure that the openhab account has permissions to the script file by executing…
Now this is interesting. Here’s the output, which I’m totally confused by.
2020-01-20 19:40:32.216 [INFO ] [eclipse.smarthome.model.script.Rules] - plex_result = [open /root/go/src/github.com/robbiet480/nfa/gopher.png: no such file or directory
open /root/go/src/github.com/robbiet480/nfa/gopher.png: no such file or directory
open /root/go/src/github.com/robbiet480/nfa/gopher.png: no such file or directory]
I certainly don’t get any errors like this when running directly from the command line.