Skip to content

Instantly share code, notes, and snippets.

@ashhadulislam
Created August 18, 2020 08:44
Show Gist options
  • Save ashhadulislam/5beb4bfbf273cde629c38d1676de3e52 to your computer and use it in GitHub Desktop.
Save ashhadulislam/5beb4bfbf273cde629c38d1676de3e52 to your computer and use it in GitHub Desktop.
seed(1)
i=0
while 1==1:
new_dict={}
new_dict["timestamp"]=int(time.time())
new_dict["dataNum"]="data"+str(i)
new_dict["device_name"]="dev"
new_dict["HeartRate"]=random.randint(60, 120)
print("loading ",json.dumps(new_dict))
time.sleep(0.2)
i+=1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment