Browse Source

add 'location' from ALFRED data

Helge Jung 9 years ago
parent
commit
966870f26d
1 changed files with 3 additions and 0 deletions
  1. 3 0
      ffstatus/alfred.py

+ 3 - 0
ffstatus/alfred.py

@@ -131,6 +131,9 @@ class AlfredParser:
                 item['rxbytes'] = int(traffic["rx"]["bytes"])
                 item['txbytes'] = int(traffic["tx"]["bytes"])
 
+            if 'location' in nodestatic:
+                nodeinfo['location'] = nodestatic['location']
+
         return data
 
 if __name__ == "__main__":