global variables for sampleData

This commit is contained in:
Patrick McDonagh
2016-04-29 15:10:31 -05:00
parent ad40affeb8
commit 3684d5c480

View File

@@ -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}'}