-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathirkit_backward.sh
More file actions
executable file
·33 lines (24 loc) · 1.11 KB
/
irkit_backward.sh
File metadata and controls
executable file
·33 lines (24 loc) · 1.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/bin/bash
#if [ $# -lt 1 ]
#then
# echo "[USAGE] $0 [FILE]"
# exit 1
#fi
IRKIT=192.168.0.19
BR="65535,0"
HEAD="{\"format\":\"raw\",\"freq\":38,\"data\":"
HEAD="${HEAD}[1073,5794,1073,2813,1073,873,1073,2813,1073,904,1073,904,1073,2813,1073,873,1073,873,1073,873,1073,873,1073,2813,1073,2813,1073,2813,1073"
HEAD="${HEAD},${BR},${BR},${BR},13693,1073,5794,1073,2813,1073,873,1073,2813,1073,873,1073,873,1073,2813,1073,873,1073,873,1073,873,1073,873,1073,2813,1073,2813,1073,2813,1073"
CD="1073,5794,1073,2813,1073,873,1073,2813,1073,2813,1073,2813,1073,2813,1073,2813,1073,2813,1073,2813,1073,2813,1073,2813,1073,904,1073,787,1073"
S0="${BR},${BR},${BR},48898,${CD}"
S1="${BR},${BR},${BR},4107,${CD}"
S2="${BR},${BR},${BR},4554,${CD}"
I1="${BR},${BR},${BR},3704,${CD}"
B0="${BR},${BR},${BR},9707,${CD}"
B1="${BR},${BR},${BR},3579,${CD}"
B2="${BR},${BR},${BR},4400,${CD}"
B3="${BR},${BR},${BR},4107,${CD}"
#DATA="'${HEAD},${S0},${S1},${S2},${S3},${S1},${S2},${S3},${S2},${S3},${S2}]}'"
DATA="'${HEAD},${B0},${B1},${B2},${I1},${B3},${B2},${I1},${B3},${B2},${I1}]}'"
echo "${DATA}"
curl -i "http://${IRKIT}/messages" -d ${DATA}