homecontrol/scripts/sensor_get.sh

10 lines
166 B
Bash
Raw Permalink Normal View History

2019-11-05 01:18:25 +01:00
#!/bin/bash
REQ=GET
URL=http://localhost:5000/sensor/get
echo "$REQ $URL"
read -p "continue?" -n 1 foo
curl \
-X $REQ $URL \
-H "Content-Type: application/json"