Created
May 2, 2014 01:19
-
-
Save shehaaz/62bbfb4fe38f8c2b7ded 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
#!/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