rename the receiver...
This commit is contained in:
11
Decoder/receiver.sh
Executable file
11
Decoder/receiver.sh
Executable 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
|
||||
|
||||
Reference in New Issue
Block a user