Skip to content

Commit ba1829f

Browse files
author
dingo35
committed
tests.sh: fix to http
1 parent 6766c25 commit ba1829f

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

SmartEVSE-3/test/tests.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ SLAVE_SOCKET_HARDWIRED=130
3838
MASTER_MAC_ID=$1
3939
SLAVE_MAC_ID=$2
4040

41-
MASTER="smartevse-"$1".local"
42-
SLAVE="smartevse-"$2".local"
41+
MASTER="http://smartevse-"$1".local"
42+
SLAVE="http://smartevse-"$2".local"
4343

4444
control_c()
4545
# run if user hits control-c
@@ -75,11 +75,15 @@ ABORT=0
7575

7676
init_devices () {
7777
for device in $SLAVE $MASTER; do
78+
printf "Rebooting $device\n"
7879
#go to Normal Mode for init
7980
$CURLPOST $device/reboot
81+
printf "Setting $device loadbl and mainsmeter\n"
8082
sleep 1
8183
$CURLPOST "$device/automated_testing?loadbl=0&mainsmeter=1"
84+
printf "Setting $device to NORMAL mode\n"
8285
$CURLPOST $device/settings?mode=1
86+
printf "Done $device\n"
8387
done
8488
read -p "Make sure all EVSE's are set to NOT CHARGING, then press <ENTER>" dummy
8589
sleep 5

0 commit comments

Comments
 (0)