Skip to content

Instantly share code, notes, and snippets.

@shehaaz
Created May 2, 2014 01:19
Show Gist options
  • Save shehaaz/62bbfb4fe38f8c2b7ded to your computer and use it in GitHub Desktop.
Save shehaaz/62bbfb4fe38f8c2b7ded to your computer and use it in GitHub Desktop.
#!/bin/bash
RANGE_HR=200
RANGE_T=32
RANGE_O=50
SLEEP_SECONDS=2
while [ true ]
do
hr=$RANDOM
let "hr %= $RANGE_HR"
t=$RANDOM
let "t %= $RANGE_T"
o=$RANDOM
let "o %= $RANGE_O"
curl -X put http://localhost:8080/virgil/data/healthapp/carla/heartrate`date +%m%d%Y`/`date +%s` -d $hr
sleep $SLEEP_SECONDS
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment