8 lines
367 B
Bash
8 lines
367 B
Bash
|
|
#!/bin/bash
|
||
|
|
curl -s --max-time 5 -X POST -H 'Content-Type: application/json' -d '{"action":"start","num":1}' http://192.168.58.109/api/timeline -w ' [%{http_code}]\n'
|
||
|
|
sleep 1
|
||
|
|
echo '--- timeline state ---'
|
||
|
|
curl -s --max-time 5 http://192.168.58.109/api/timeline | head -c 300; echo
|
||
|
|
echo '--- group level ---'
|
||
|
|
curl -s --max-time 5 http://192.168.58.109/api/group; echo
|