diff --git a/sampleData.py b/sampleData.py index 04f3843..135c38b 100644 --- a/sampleData.py +++ b/sampleData.py @@ -14,7 +14,10 @@ import random import requests import json +####### DEFAULTS ####### web_address = "http://localhost:3000" +scan_rate = 30 # seconds +save_all = "test" # use True, False, or any string class Sample(Tag): @@ -59,10 +62,9 @@ class Sample(Tag): print("Stored {} for {} at {}".format(resp['val'], self.name, resp['createdAt'])) tag_store = {} -scan_rate = 30 # default scan rate is 30 seconds -save_all = "test" def main(): + global web_address, scan_rate, save_all try: # Get tags stored in database get_tag_request_data = {'where':'{"tag_class":5}'}