curl http://127.0.0.1:8000/info -H 'Content-Type: application/json'
curl -X POST http://127.0.0.1:8000/power/on -H 'Content-Type: application/json'
curl -X POST http://127.0.0.1:8000/volume/up -H 'Content-Type: application/json'
curl -X POST http://127.0.0.1:8000/volume/-55 -H 'Content-Type: application/json'
curl -X POST http://127.0.0.1:8000/input/HDMI%201 -H 'Content-Type: application/json'
curl -X POST http://127.0.0.1:8000/power/off -H 'Content-Type: application/json'
export VERSION=v0.16.0
curl -L https://github.com/danielhstahl/xmc-1-rest-api/releases/download/${VERSION}/xmc1_rest_api > xmc1_rest_api
chmod +x ./xmc1_rest_api
curl -L https://github.com/danielhstahl/xmc-1-rest-api/releases/download/${VERSION}/build.zip > build.zip
mkdir xmc-remote
unzip build.zip -d xmc-remote/
Then copy the binary and the folder into /usr/bin/xmc1RestApi
sudo cp /home/pi/scripts/xmc1RestApi.service /lib/systemd/system/
sudo systemctl start xmc1RestApi.service
sudo systemctl enable xmc1RestApi
Copy the service to /etc/systemd/system
.
sudo systemctl start xmc1RestApi.service
sudo systemctl enable xmc1RestApi