= Attenuator API = == REST API == All valid calls will reply with formatted XML. The first line will be `` for commands that execute correctly, or `` if either the parameters passed are invalid of the call failed for some other reason (check /var/log/syslog on the relevant Pi for more information). || '''REST API Call''' || '''Description''' || || /Attenuator/set?name=''''&value='''' || Sets the requested attenuator to the desired dB value. || || /Attenuator/zero_all || Set all attenuators to 0 dB. || || /Attenuator/read?name='''' || Read the current dB setting of the requested attenuator. || || /Attenuator/read_all || Read the current dB setting of all attenuators. || '''IMPORTANT NOTE:''' The attenuator API will round the requested set attenuator value to the nearest possible value based on the attenuator it has (eg. 37.63 dB with 0.5 dB/step attenuator will be rounded to 37.5 dB) '''Example XML responses:''' Response to: .../Attenuator/set?name=1&value=37.63 {{{ }}} Response to: .../Attenuator/zero_all {{{ }}} Response to: .../Attenuator/read?name=1 {{{ }}} Response to: .../Attenuator/read_all {{{ }}}