Delete writerandomvalues.py

This commit is contained in:
Eric Yu 2022-08-17 03:39:35 -07:00 committed by GitHub
parent c6a68202fe
commit 2170c05b05
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 14 deletions

View File

@ -1,14 +0,0 @@
from random import randint
from datetime import datetime
import json
# constant settings
a = json.load(open('settings.json', 'r'))
sens = len(a['sensor_ports'])
fileName = a["file_name"]
numberofsensors = len(a['sensor_ports'])
for i in range(1000):
f = open(fileName, 'a')
f.write(", ".join([datetime.now().strftime('%H:%M:%S')] + [str(randint(1, 1000)) for j in range(numberofsensors)]) + '\n')
f.close()