2
0
Quellcode durchsuchen

add 'location' from ALFRED data

Helge Jung vor 9 Jahren
Ursprung
Commit
966870f26d
1 geänderte Dateien mit 3 neuen und 0 gelöschten Zeilen
  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__":