Index: /nodes/genesis-to-py.pl
===================================================================
--- /nodes/genesis-to-py.pl	(revision 6501)
+++ /nodes/genesis-to-py.pl	(revision 6508)
@@ -9,6 +9,6 @@
 # Which gonna be used for more logic stuff ;-)
 
-#
-# Usage: for file in */wleiden.conf; do ./genesis-to-py.pl $file; done > py.conf
+# Avoid junk node imports, use following line to import valid nodes
+# Usage: for file in CNode*/wleiden.conf proxy*/wleiden.conf; do ./genesis-to-py.pl $file; done > py.conf
 do($ARGV[0]) || die;
 
@@ -48,4 +48,5 @@
         'configtype' => 'interface',
         'dhcp' => 'no',
+        'compass-direction' => '',
         );
     foreach $line  (split('\n',$config{$if})) {
@@ -74,4 +75,13 @@
             } elsif ($key =~ /^essid$/i) {
                 $key = 'ssid';
+
+                # Dirty hack to fetch compass direction of essid
+                $value =~ /[a-z]+-([a-z]+)\..*/;
+                $direction = $1;
+                # Translate into English
+                if ($direction ne "omni") {
+                    $direction =~ tr/oz/es/;
+                }
+                $tmp{'compass-direction'} = $direction;
             } elsif ($key =~ /^gain$/i) {
                 $value =~ s/dbi//;
