rename the receiver...

This commit is contained in:
Joe Tretter
2022-09-05 10:53:24 -05:00
parent 4b4c3fcbd5
commit c904b5ffef

11
Decoder/receiver.sh Executable file
View File

@@ -0,0 +1,11 @@
#/bin/bash
while /bin/true;do
fswebcam -q -r 800x800 a.png
#dta=$(fswebcam -q -r 1280x720 - | zbarimg -q --raw --nodbus -)
dta=$(zbarimg -q --raw --nodbus a.png)
chunkNum=${dta/|*/}
chunkData=${dta/*|/}
echo received: ${chunkNum}
echo $chunkData | base64 -d > chunks/${chunkNum}.chunk
done