|
@@ -38,7 +38,7 @@ class BatmanParser:
|
|
|
|
|
|
return True
|
|
|
|
|
|
- def fetch(self, batadv_dump=None):
|
|
|
+ def fetch(self):
|
|
|
"""Fetches the current data from batadv-vis."""
|
|
|
|
|
|
data = {}
|
|
@@ -49,12 +49,6 @@ class BatmanParser:
|
|
|
rawdata = unicode(rawdata, encoding='latin1', errors='replace')
|
|
|
batmandata = json.loads(rawdata)
|
|
|
|
|
|
- # dump raw data into file if requested
|
|
|
- if batadv_dump is not None:
|
|
|
- dumpfile = io.open(batadv_dump, 'w')
|
|
|
- dumpfile.write(rawdata)
|
|
|
- dumpfile.close()
|
|
|
-
|
|
|
# parse raw data, convert all MAC into nodeid
|
|
|
for item in batmandata['vis']:
|
|
|
itemid = ffstatus.mac2id(item['primary'])
|