From 2170c05b050fa1e936c8782cf079d3a9e483e631 Mon Sep 17 00:00:00 2001 From: Eric Yu Date: Wed, 17 Aug 2022 03:39:35 -0700 Subject: [PATCH] Delete writerandomvalues.py --- writerandomvalues.py | 14 -------------- 1 file changed, 14 deletions(-) delete mode 100644 writerandomvalues.py diff --git a/writerandomvalues.py b/writerandomvalues.py deleted file mode 100644 index 632bd8d..0000000 --- a/writerandomvalues.py +++ /dev/null @@ -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()