Bash Script Curl Output To Variable Resistor Circuit