Midi driver for Yamaha C5 series
- NGINX
- Erlang 20.x
sudo cp config/nginx-default /etc/nginx/sites-enabled/default
sudo mkidr /usr/local/ymixer && cd /usr/local/ymixer
sudo mkdir static && sudo mkdir html
cd ymixer
make rel
cp _rel/ymixer_release/ymixer_release-{version}.tar.gz /usr/local/ymixer
tar zxvf ymixer_release-{version}.tar.gz
/usr/local/ymixer/bin/ymixer_release start
sudo systemctl restart nginx
curl -i -H "Content-type: application/json" -X GET localhost:8080/api/mixes
response
[0,1,2,3,4,5]
curl -i -H "Content-type: application/json" -X POST localhost:8080/api/mix/$MIXID$
curl -i -H "Content-type: application/json" -X GET localhost:8080/api/mix/$MIXID$
Response JSON:
[{"on":false,"image":"https://api.adorable.io/avatars/285/channel-1.png","id":0}, {"on":false,"image":"https://api.adorable.io/avatars/285/channel-1.png","id":1}, {"on":false,"image":"https://api.adorable.io/avatars/285/channel-1.png","id":2}]
curl -i -H "Content-type: application/json" -X POST localhost:8080/api/channel/switch/0/3/on
Content Type must be "image/jpeg"
curl -i -F '[email protected]' localhost:8080/api/channel/upload/1