Files
klipper-macros/macros/bd_pa_create_spoolman_field.sh
T

7 lines
268 B
Bash
Raw Normal View History

#!/bin/bash
BASE_URL=$1
FIELD=$2
curl -sf -X POST "${BASE_URL}/api/v1/field/spool/${FIELD}" \
-H "Content-Type: application/json" \
-d "{\"name\": \"Pressure Advance\", \"field_type\": \"float\", \"default_value\": \"0\"}" \
> /tmp/pa_setup_result 2>&1