Fix prameters

Add upload camera.jpg
This commit is contained in:
2021-02-07 16:13:55 +01:00
parent 9a82880086
commit 77ee263d78

View File

@@ -3,12 +3,12 @@
host="172.16.1.254" host="172.16.1.254"
topic="home/sensor/strecha/bme280" topic="home/sensor/strecha/bme280"
url="https://meranie.bh.ttx.sk/upload/image" url="https://meranie.bh.ttx.sk/upload/image"
tty="/dev/ttyUSB0" ttyname="/dev/ttyUSB0"
cd /tmp cd /tmp
stty -F $ttyname 115200 -parenb -parodd cs8 -hupcl -cstopb cread clocal -crtscts -iuclc -ixany -imaxbel -iutf8 -opost -olcuc -ocrnl -onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0 vt0 ff0 -isig -icanon -iexten -echo -echoe -echok -echonl -noflsh -xcase -
tostop -echoprt -echoctl -echoke
while true
do
while true while true
do do
echo "measure" echo "measure"
@@ -49,5 +49,3 @@ do
curl -v -X POST -F "submit=OK" -F "file=@camera.jpg" $url curl -v -X POST -F "submit=OK" -F "file=@camera.jpg" $url
rm camera.jpg rm camera.jpg
sleep 300
done