Skip to content

HeartBeatLive/SendHeartRateScript

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

Send Heart Rate Script

This is a script to emulate user's heart rate and send it to the server.
This is very useful for developement when you want to simulate user's heart rate.

Example usage

Send random heart rate

$ ./send-heart-rate.sh -j $JWT_TOKEN

Send random heart rate to custom server

$ ./send-heart-rate.sh -j $JWT_TOKEN -e https://rest.heartbeatlive.com/graphql

Send random heart rate with custom timeout

$ ./send-heart-rate.sh -j $JWT_TOKEN -t 20

Send low heart rate

$ ./send-heart-rate.sh -j $JWT_TOKEN -l 1 -h 20

Send high heart rate

$ ./send-heart-rate.sh -j $JWT_TOKEN -l 200 -h 300

Parameters

Parameter Name Description
-h, --help Print command information.
-j JWT token to use when making requests. Required.
-l Lowest heart rate to use. Default to 30.
-h Highest heart rate to use. Default to 170.
-t Timeout in seconds between each request. Default to 5.
-e Server GraphQL endpoint on which make request. Default to http://localhost:8080/graphql.

About

Script to emulate user's heart rate.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages