# HG changeset patch # User drewp # Date 1553990228 25200 # Node ID 4ae6558061418622e2f0f4c44dcaa71f48af4cbc # Parent 05e9c01471a770e8c2bb4fd291da87ed167c275a use rel path for config Ignore-this: 5f2c4d0f4004f4472f89b6c9478b846d darcs-hash:8128bede68a1e311659e93dfeb443fd619278c91 diff -r 05e9c01471a7 -r 4ae655806141 service/tomatoWifi/wifi.py --- 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)