Mercurial > code > home > repos > homeauto
changeset 1077:d4218c0e0d30
reload config wifi more often
Ignore-this: 1c665e995b434233e8f602f60bb67cc9
darcs-hash:62e6f63a39a96d6c36b381686e03d52f15c7b42e
author | drewp <drewp@bigasterisk.com> |
---|---|
date | Thu, 14 Apr 2016 00:19:10 -0700 |
parents | d0ca77a3faf4 |
children | bb7c6b310b56 |
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: