mirror of
https://github.com/chuot/rdio-scanner.git
synced 2026-08-13 16:33:01 -06:00
22 lines
519 B
Bash
Executable file
22 lines
519 B
Bash
Executable file
#!/bin/bash
|
|
|
|
csv_path=/home/radio/trunk-recorder/talkgroups
|
|
|
|
function upload {
|
|
basename=$(basename $2)
|
|
csv="$2"
|
|
name="${basename%.*}"
|
|
system=$1
|
|
|
|
curl -s http://localhost:3000/api/trunk-recorder-system-upload \
|
|
-F "csv=@$csv;type=text/csv" \
|
|
-F "key=b29eb8b9-9bcd-4e6e-bb4f-d244ada12736" \
|
|
-F "name=$name" \
|
|
-F "system=$system"
|
|
}
|
|
|
|
upload 11 "$csv_path/RSP25MTL1.csv"
|
|
upload 15 "$csv_path/RSP25MTL5.csv"
|
|
upload 21 "$csv_path/SERAM.csv"
|
|
upload 31 "$csv_path/HQ.csv"
|