diff --git a/tools/server.py b/tools/server.py index eeb970ce..f74ef31b 100644 --- a/tools/server.py +++ b/tools/server.py @@ -8,6 +8,7 @@ import re #Replace this with a different path if you need to... base_path = os.path.join(os.getcwd(),"..","esp8266","data") +tools_path = os.getcwd(); class MyHandler(SimpleHTTPServer.SimpleHTTPRequestHandler): def do_GET(self): @@ -53,7 +54,7 @@ class MyHandler(SimpleHTTPServer.SimpleHTTPRequestHandler): fn = os.path.join(base_path,fn) data = open(fn).read() - fn_json = os.path.join(base_path,"tags.json") + fn_json = os.path.join(tools_path,"tags.json") if os.path.exists(fn_json): json_dic = json.loads(open(fn_json).read()) else: diff --git a/esp8266/data/tags.json b/tools/tags.json similarity index 53% rename from esp8266/data/tags.json rename to tools/tags.json index 5aebc12c..375939a1 100644 --- a/esp8266/data/tags.json +++ b/tools/tags.json @@ -1,4 +1,4 @@ { - "WEB_ADDRESS":"localhost", + "WEB_ADDRESS":"localhost:8080", "PAGE_TITLE":"Testing things..." }