hi any of you familliar with bash and or curl stuff 
i'm trying to integrate a sma ev charger and the peice of shit has no real api
i got sensor whit bash but am a bit stuck whit the controles
this is what i have now to try and get it to respond
IP_EV_Charger='11.3.3.8'
USER='xxxx'
PASSWORD='xxx'
TOKENREQUEST=$(curl http://$IP_EV_Charger/api/v1/token -d "grant_type=password&username="$USER"&password="$PASSWORD)
bearer_token_string=$(echo "$TOKENREQUEST" | jq -r .access_token) # -r removes surrounding quotes
echo "$bearer_token_string"
test=$(curl -i -s -k -X 'PUT' http://$IP_EV_Charger/api/v1/parameters/IGULD:SELF -H 'Content-Type: application/json' -H "Referer: http://$IP_EV_Charger/webui/Plant:1,IGULD:SELF/configuration/view-parameters" -d '{\"values\":[{\"channelId\":\"Parameter.Inverter.AcALim\",\"value\":\"6\"}]}' -H "Authorization: Bearer $bearer_token_string")
echo "$test"
and this is the part that works
IP_EV_Charger='11.3.3.8' ;
USER='xxxxx' ;
PASSWORD='xxxx' ;
TOKENREQUEST=$(curl --silent curl http://$IP_EV_Charger/api/v1/token -d "grant_type=password&username="$USER"&password="$PASSWORD)
bearer_token_string=$(echo $TOKENREQUEST | jq -r .access_token) # -r removes surrounding quotes
SMA_EV_Return=$(curl --silent http://$IP_EV_Charger/api/v1/measurements/live/ -d "[{\"componentId\":\"IGULD:SELF\"}]" -H "Authorization: Bearer $bearer_token_string")
echo "{\"sma_ev_json\":"$SMA_EV_Return"}"
```
