Mercurial > code > home > repos > homeauto
changeset 1222:4ae655806141
use rel path for config
Ignore-this: 5f2c4d0f4004f4472f89b6c9478b846d
darcs-hash:8128bede68a1e311659e93dfeb443fd619278c91
author | drewp <drewp@bigasterisk.com> |
---|---|
date | Sat, 30 Mar 2019 16:57:08 -0700 |
parents | 05e9c01471a7 |
children | 34de6cfa0b6b |
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)