27-Sep-2020, 09:24
(27-Sep-2020, 04:24)mingfang Wrote:(26-Sep-2020, 10:44)ofrappier Wrote: Hi,
even inside javascript of webinterface of my reactor, we can see hidden opticalmode instructions, but how to ?
http://10.0.0.9/static/js/main.6f802eb1.js
Using this information I've created a Bash script to set the Devialet Premiere to Optical Direct Mode, set volume to 70 and set the L/R channels. You need curl and jq installed.
Code:volume=70
speakers="192.168.2.103 192.168.2.60"
for host in $speakers; do
echo $host
# enable optical direct mode
curl -s http://$host/opticaldirect/enabled -XPOST
# name must be Left or Right
curl -s http://$host/device/name | jq .
role=$(curl -s http://$host/device/name | jq -r .data.name)
curl -s http://$host/opticaldirect/role -d "{\"role\":\"Front$role\"}" -H "Content-Type: application/json"
curl -s http://$host/opticaldirect/volume -d "{\"volume\":$volume}" -H "Content-Type: application/json"
curl -s http://$host/device/info | jq .
curl -s http://$host/opticaldirect/getall | jq .
done
Hi,
I will try, i've just to replace with my SPEAKERS IP :
this line
speakers="192.168.2.103 192.168.2.60"
to
speakers="10.0.0.9 10.0.0.10"
you are a genius, i will try this afternoon
IMAC -> MOTU 8A -> TOSLINK -> PHANTOM I RIGHT AUX OPTICAL INPUT-> ETHERNET CABLE between LEFT and RIGHT (60ms): 2X Phantom I 103 dB (2021) in STEREO MODE DOS 2.12.3 - app 1.14