aboutsummaryrefslogtreecommitdiffstats
path: root/alfred.py
diff options
context:
space:
mode:
Diffstat (limited to 'alfred.py')
-rwxr-xr-xalfred.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/alfred.py b/alfred.py
index c0f9d13..086ebc7 100755
--- a/alfred.py
+++ b/alfred.py
@@ -14,6 +14,12 @@ class alfred:
node_alias = {}
if 'location' in node:
node_alias['gps'] = str(node['location']['latitude']) + ' ' + str(node['location']['longitude'])
+
+ try:
+ node_alias['firmware'] = node['software']['firmware']['release']
+ except KeyError:
+ pass
+
if 'hostname' in node:
node_alias['name'] = node['hostname']
elif 'name' in node: