-
Notifications
You must be signed in to change notification settings - Fork 199
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cant exec shell script #1390
Comments
Unfortunately, you still need to preface the command with "sh" as there is no environment settings in the exec from the system. Try "sh /home/pi/ac_off.sh" |
I had the same problem, did not matter if I executed it directly or as script or as systemctl service. Nothing worked. Check if midea-beautiful-air-cli has to be executed as user and if yoa ure running ha-bridge as root. You can run ha-bridge as user if you set the port outside of the privileged port range (1-1023): java -jar -Dserver.port=31337 ha-bridge-v5.4.1.jar Edit: Ok but with a port other than 80, Alexa could not find my ha-bridge devices. sudo apt-get install libcap2-bin Maybe this helps someone. |
I actually ran into both these issues a few weeks ago. I moved HA-Bridge to port 85 so I could free up 80 for something else. Wrong! Broke pretty much everything. Then I had set up a script to control an Onkyo receiver. Could not make it work at all until I changed the commands WITHIN the script to run as su -c "command" username |
I use they x-10 heyu software to operate lots of things, and if I assigned an operation that wasn't part of they heyu (like irclient from irtrans) into a heyu alias, I found it called any shell/script, avoiding the "sh" thing. I presume heyu adds a shell. |
trying to run a shell script via execute command, i tried like everything and cant get it to work
i type in "/home/pi/ac_off.sh" in the execute command section.
ac_off.sh contains:
#!/bin/sh
/home/pi/.local/bin/midea-beautiful-air-cli set --ip 192.168.2.70 --token xxx --key xxx --running 0
It wont execute it, chmod +x is set, tried with root and pi user, tried with sh and /bin/sh in front of the command.. nothing. HaBridge shows no error, it says the command is executed successfully.
I got another device in habridge which controls my hyperion ambilight with "/home/pi/hyperion/build/bin/hyperion-remote --on" for example, this works flawlessly.
If i put the hyperion command in the shell script it doesnt work, too. So it has something to do with sh scripts itself?
Would be happy for a hint, cheers!
The text was updated successfully, but these errors were encountered: