Last active
September 5, 2018 23:21
-
-
Save drasko/e31eb1b4e26c1ce0c4a072a2ce8d5e5a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### | |
# Add Events | |
### | |
printf "\n> Creating Events\n" | |
curl http://localhost:48080/api/v1/event -X POST -s -S -d @- <<EOF | |
{ | |
"device":"countcamera1", | |
"readings":[ | |
{ | |
"name":"humancount", | |
"value":"5" | |
}, | |
{ | |
"name":"caninecount", | |
"value":"3" | |
} | |
] | |
} | |
EOF | |
echo "" | |
curl http://localhost:48080/api/v1/event -X POST -s -S -d @- <<EOF | |
{ | |
"device":"countcamera1", | |
"origin":1471806386919, | |
"readings":[ | |
{ | |
"name":"humancount", | |
"value":"1", | |
"origin":1471806386919 | |
}, | |
{ | |
"name":"caninecount", | |
"value":"0", | |
"origin":1471806386919 | |
} | |
] | |
} | |
EOF |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment