User Tools

Site Tools


iot:spz

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

iot:spz [2020/01/22 09:24]
127.0.0.1 external edit
iot:spz [2020/01/22 12:09] (current)
Jan Forman
Line 7: Line 7:
 status=$(alpr -c eu -p cz -n 5 -j /tmp/snapshot.jpg | grep confidence) status=$(alpr -c eu -p cz -n 5 -j /tmp/snapshot.jpg | grep confidence)
 if [ "$status" != "" ]; then if [ "$status" != "" ]; then
-echo `date` >>spz.txt +curl --header "Content-Type: application/json" --request POST --data "$status https://{endpoint}
-echo $status >>spz.txt +
-echo "--------------------" >>spz.txt+
 fi fi
- 
 sleep 2 sleep 2
-done +done</code>
-</code>+
iot/spz.txt · Last modified: 2020/01/22 12:09 by Jan Forman