homecontrol: use numbers instead of strings for values/levels

This commit is contained in:
Konstantin Koslowski 2020-03-02 00:39:01 +01:00
parent 577dd4f78b
commit e8cdc5de17
3 changed files with 7 additions and 8 deletions

View file

@ -1,9 +1,9 @@
#!/bin/bash
REQ=GET
URL=http://localhost:5000/actor/get
URL=http://localhost:8200/actor/get
echo "$REQ $URL"
read -p "continue?" -n 1 foo
# echo "$REQ $URL"
# read -p "continue?" -n 1 foo
curl \
-X $REQ $URL \
-H "Content-Type: application/json"

View file

@ -2,7 +2,7 @@
ACTORID=${1:-11111111}
LIMIT=${2:-0}
REQ=GET
URL=http://localhost:5000/actor/get_levels/$ACTORID?limit=$LIMIT
URL=http://localhost:8200/actor/get_levels/$ACTORID?limit=$LIMIT
echo "$REQ $URL"
read -p "continue?" -n 1 foo