Script to activate downmix for AC3 and DTS and echo+log the result:
#!/bin/bash #change 127.0.0.1 for the box IP if this script is executed remotely from other linux system curl -o /tmp/downmix_result.txt --noproxy '*' --data value="true" "http://127.0.0.1/api/saveconfig?key=config.av.downmix_ac3" echo AC3 downmix is enabled curl -o /tmp/downmix_result.txt --noproxy '*' --data value="true" "http://127.0.0.1/api/saveconfig?key=config.av.downmix_dts" echo DTS downmix is enabled exit 0
Script to disable downmix for AC3 and DTS and echo+log the result:
#!/bin/bash #change 127.0.0.1 for the box IP if this script is executed remotely from other linux system curl -o /tmp/downmix_result.txt --noproxy '*' --data value="false" "http://127.0.0.1/api/saveconfig?key=config.av.downmix_ac3" echo AC3 downmix is disabled curl -o /tmp/downmix_result.txt --noproxy '*' --data value="false" "http://127.0.0.1/api/saveconfig?key=config.av.downmix_dts" echo DTS downmix is disabled exit 0
and now laugh about me, I have been more than an hour to develop this one, I'm very basic skilled in programming, but it works, I'm so happy!!! thank you again @s3n0, you're my hero
the nice thing of this check is that it doesn't need to stop enigma to read the updated settings file, it queries the actual status live
#!/bin/sh export LANG=es_ES.UTF-8 logdir="/tmp" SUBJECT="Checks if AC3 downmix is enabled or disabled by quering enigma2 settings with API" fecha=`date +%Y%m%d_%H%M` search="config.av.downmix_ac3" cat /dev/null >$logdir/downmix.status.txt cat /dev/null >$logdir/downmix.review.txt cat /dev/null >$logdir/downmix.status.read.txt curl -o /tmp/downmix.status.txt "http://127.0.0.1/web/settings" #change 127.0.0.1 for the box IP if this script is executed remotely from other linux system cat $logdir/downmix.status.txt|egrep "$search" > $logdir/downmix.status.read.txt cat $logdir/downmix.status.txt|grep -A 1 "$search" > $logdir/downmix.status.read.txt if cat $logdir/downmix.status.read.txt | grep -q 'False' then echo "AC3 downmix is disabled" echo "AC3 downmix is disabled" >>$logdir/downmix.review.txt else echo "AC3 downmix is enabled" echo "AC3 downmix is enabled" >>$logdir/downmix.review.txt fi exit 0
change 127.0.0.1 for the IP of the box if it is executed remotely from other linux system.
I integrated the logged results to a php very simple page where I check status and change them by clicking simple buttons
Cheers