Mercurial > code > home > repos > homeauto
changeset 272:660d21bcfcde
reload config wifi more often
Ignore-this: 1c665e995b434233e8f602f60bb67cc9
author | drewp@bigasterisk.com |
---|---|
date | Thu, 14 Apr 2016 00:19:10 -0700 |
parents | e7a30f72536a |
children | 1fbcda1bdc5f |
files | service/tomatoWifi/wifi.py |
diffstat | 1 files changed, 6 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/service/tomatoWifi/wifi.py Thu Apr 14 00:16:58 2016 -0700 +++ b/service/tomatoWifi/wifi.py Thu Apr 14 00:19:10 2016 -0700 @@ -15,10 +15,13 @@ gather the users of wifi from the tomato routers """ def __init__(self, accessN3="/my/proj/openid_proxy/access.n3"): + self.rereadConfig() + #self._loadRouters(accessN3, tomatoUrl) + + def rereadConfig(self): self.graph = Graph() self.graph.parse('config.n3', format='n3') - - #self._loadRouters(accessN3, tomatoUrl) + def _loadRouters(self, accessN3, tomatoUrl): g = Graph() @@ -56,6 +59,7 @@ @inlineCallbacks def getPresentMacAddrs(self): + self.rereadConfig() rows = yield loadUvaData() for row in rows: if 'clientHostname' in row: