Mercurial > code > home > repos > homeauto
diff service/tomatoWifi/tomatoWifi.py @ 161:b0c168f562e8
scan dhcpd.leases to get more info about networked devices
Ignore-this: d281707203bd85ede94402568b73c205
author | drewp@bigasterisk.com |
---|---|
date | Sun, 22 Mar 2015 00:35:10 -0700 |
parents | bca6d6c63bdc |
children | bb70eaa45666 |
line wrap: on
line diff
--- a/service/tomatoWifi/tomatoWifi.py Mon Feb 09 00:11:03 2015 -0800 +++ b/service/tomatoWifi/tomatoWifi.py Sun Mar 22 00:35:10 2015 -0700 @@ -117,8 +117,8 @@ for dev in self.settings.poller.lastAddrs: if not dev.get('connected'): continue - uri = URIRef("http://bigasterisk.com/wifiDevice/%s" % dev['mac']) - g.add((uri, ROOM['macAddress'], Literal(dev['mac']))) + uri = URIRef("http://bigasterisk.com/mac/%s" % dev['mac'].lower()) + g.add((uri, ROOM['macAddress'], Literal(dev['mac'].lower()))) g.add((uri, ROOM['connected'], aps)) if 'clientHostname' in dev: