mirror of
https://github.com/bckelley/cgm-remote-monitor.git
synced 2026-08-24 03:14:12 -05:00
16 lines
259 B
Bash
Executable File
16 lines
259 B
Bash
Executable File
#!/bin/bash
|
|
|
|
INPUT=$1
|
|
|
|
(
|
|
echo '['
|
|
first=""
|
|
cat $1 | while read dateString date sgv direction device ; do
|
|
test -n "$first" && printf "," || printf -v first "nope"
|
|
./bin/create_svg.sh $sgv $direction $dateString
|
|
echo
|
|
done
|
|
|
|
echo ']'
|
|
) | tr -d '\n' | json
|