The script should be adapted to support a new user variable, for example SMAPPEE_PASS, so that the user can adapt this in case he modified the default password (and he should do it! Never leave the default password!!)
Add this to the user configuration section
# Authenication for the SMAPPEE, default admin
SMAPPEE_PASS="admin"
Further on the following line should be adapted
if [ "$ERR" -eq 1 ]
then
curl -H "Content-Type: application/json" -X POST -d "admin" http://$SMAPPEE_IP/gateway/apipublic/logon
SMAP=$(curl http://${SMAPPEE_IP}/gateway/apipublic/reportInstantaneousValues)
fi
to
if [ "$ERR" -eq 1 ]
then
curl -H "Content-Type: application/json" -X POST -d $SMAPPEE_PASS http://$SMAPPEE_IP/gateway/apipublic/logon
SMAP=$(curl http://${SMAPPEE_IP}/gateway/apipublic/reportInstantaneousValues)
fi
Hi,
The script should be adapted to support a new user variable, for example SMAPPEE_PASS, so that the user can adapt this in case he modified the default password (and he should do it! Never leave the default password!!)
Add this to the user configuration section
Further on the following line should be adapted
to