Be a part of CinemaVision today! Once registered and logged in, you will have access to public chat and your own private messenger, you can view and contribute guides, collaborate on the forums, review downloads, give reputation to your fellow members, contribute content and so much more. Registering is quick and completely free, so what are you waiting for? Sign In Sign Up
I just spend 3hours trying to figure this out, but I couldn't do it, so maybe you can help!
My goal is to have an action that via the Harmony Hub changes my receivers source. I use https://github.com/sushilks/harmonyHubCLI to connect to the Hub and it works great.
So as you can see in my .cvaction I call a shell script, that part works. However what does not work is the whole execution of the shell script. As you can see I'm executing a nodejs script within the shell file, this works like a charm when testing it through ssh. The output of the node script gets logged and more importantly the receiver source is being changed. However when calling the shell script using the action file it does create the log file but only prints "Executed", it does not print the output of the "node harmony....." command. Furthermore it does not result in the receiver changing the source. Since the command does not even get logged, not even an error message, I have concluded that it is not being executed. But why?
Any help would be greatly appreciated,
Paul
Edit: I also tried using a python script with the library "Naked" to execute the node script. Again it worked when doing it through ssh but no result when doing it through the actions.
Edit 2: It appears to not even be executing "default" linux commands like mkdir. Once again, when running the script through ssh it creates the folder, but when doing it through actions it does not. However it does update the log file so the sh script is being partially executed.
Hey everybody,
I just spend 3hours trying to figure this out, but I couldn't do it, so maybe you can help!
My goal is to have an action that via the Harmony Hub changes my receivers source. I use https://github.com/sushilks/harmonyHubCLI to connect to the Hub and it works great.
So as you can see in my .cvaction I call a shell script, that part works. However what does not work is the whole execution of the shell script. As you can see I'm executing a nodejs script within the shell file, this works like a charm when testing it through ssh. The output of the node script gets logged and more importantly the receiver source is being changed. However when calling the shell script using the action file it does create the log file but only prints "Executed", it does not print the output of the "node harmony....." command. Furthermore it does not result in the receiver changing the source. Since the command does not even get logged, not even an error message, I have concluded that it is not being executed. But why?
Any help would be greatly appreciated,
Paul
Edit: I also tried using a python script with the library "Naked" to execute the node script. Again it worked when doing it through ssh but no result when doing it through the actions.
Edit 2: It appears to not even be executing "default" linux commands like mkdir. Once again, when running the script through ssh it creates the folder, but when doing it through actions it does not. However it does update the log file so the sh script is being partially executed.
switch.cvaction
switch.sh
Edited by LuapShare this post
Link to post
Share on other sites