changeset 419:fdbdecdecd0b

use rel path for config Ignore-this: 5f2c4d0f4004f4472f89b6c9478b846d
author drewp@bigasterisk.com
date Sat, 30 Mar 2019 16:57:08 -0700
parents b3935eac90e1
children a530d9c5b280
files service/tomatoWifi/wifi.py
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/service/tomatoWifi/wifi.py	Sat Mar 30 16:56:47 2019 -0700
+++ b/service/tomatoWifi/wifi.py	Sat Mar 30 16:57:08 2019 -0700
@@ -114,7 +114,7 @@
 
 @inlineCallbacks
 def loadUvaData():
-    config = json.load(open("/my/proj/homeauto/service/tomatoWifi/priv-uva.json"))
+    config = json.load(open("priv-uva.json"))
     headers = {'Authorization': ['Basic %s' % config['userPass'].encode('base64').strip()]}
     resp = yield fetch('http://10.2.0.2/wlstationlist.cmd', headers=headers)
     root = lxml.html.soupparser.fromstring(resp.body)
@@ -138,7 +138,7 @@
 
 @inlineCallbacks
 def loadCiscoData():
-    config = json.load(open("/my/proj/homeauto/service/tomatoWifi/priv-uva.json"))
+    config = json.load(open("priv-uva.json"))
     headers = {'Authorization': ['Basic %s' % config['userPass'].encode('base64').strip()]}
     print headers
     resp = yield fetch('http://10.2.0.2/', headers=headers)
@@ -147,7 +147,7 @@
 
 @inlineCallbacks
 def loadOrbiData():
-    config = json.load(open("/my/proj/homeauto/service/tomatoWifi/priv-uva.json"))
+    config = json.load(open("priv-uva.json"))
     headers = {'Authorization': ['Basic %s' % config['userPass'].encode('base64').strip()]}
     resp = yield fetch('http://orbi.bigasterisk.com/DEV_device_info.htm', headers=headers)