diff service/tomatoWifi/tomatoWifi.py @ 966:cce0107a78b4

scan dhcpd.leases to get more info about networked devices Ignore-this: d281707203bd85ede94402568b73c205 darcs-hash:20150322073510-312f9-507aab994fadabe3e1fb1bc98519c2d7d91e68ee
author drewp <drewp@bigasterisk.com>
date Sun, 22 Mar 2015 00:35:10 -0700
parents 691aa1333073
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: