Skip to content

Instantly share code, notes, and snippets.

@drasko
Last active September 5, 2018 23:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save drasko/e31eb1b4e26c1ce0c4a072a2ce8d5e5a to your computer and use it in GitHub Desktop.
Save drasko/e31eb1b4e26c1ce0c4a072a2ce8d5e5a to your computer and use it in GitHub Desktop.
###
# 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