pysalx/scripts/pysalx-api-acquire

12 lines
405 B
Plaintext
Raw Normal View History

2022-01-25 14:01:57 -07:00
#!/bin/bash
# Acquire a sample via API
# XXX kruft
SCIAPSIP=`cat ~/.sciaps-ip`
SCIAPSPORT=`cat ~/.sciaps-port`
#curl -X POST -H "Content-Type: application/json" -d @settings.json --output output.json http://192.168.1.1:8080/api/v2/acquire/all?mode=Alloy
curl -X POST -H "Content-Type: application/json" -d @settings.json --output output.json http://$SCIAPSIP:$SCIAPSPORT/api/v2/acquire/all?mode=Alloy