Broadband-Hamnet™ Forum :: General
Welcome Guest   [Register]  [Login]
 Subject :olsr-topologyview hack for MacOS.. 2015-01-17- 14:19:10 
WB6TAE
Member
Joined: 2014-05-01- 23:48:12
Posts: 70
Location

In olsr-topology-view (OTV) the ImageMagick program is only required to display the finish graphic on the screen. If you are running OTV on MacOS you can avoid installing ImageMagick and use the Preview application to display the images instead.

Just replace the existing code around line 149 with the following:

if ($SHOW) {	
	if ($^O == "darwin") {	
		system "/usr/bin/open -a preview $TOPPATH/$NAME.$EXT &";
	} else {
		if ($ROOTWIN) {
			system "display -window root -backdrop $TOPPATH/$NAME.$EXT &";
		} elsif ($start) {
			system "display $FULLOPT -update 5 $TOPPATH/$NAME.$EXT &";
			$start = 0;
		}
	}
}
IP Logged
 Subject :Re:olsr-topologyview hack for MacOS.. 2015-01-19- 05:20:45 
k5dlq
Member
Joined: 2012-05-11- 08:05:13
Posts: 233
Location: Magnolia, TX USA
 
Nice hack! Thanks.
IP Logged
Darryl - K5DLQ
www.aredn.org
 Subject :Re:olsr-topologyview hack for MacOS.. 2015-01-19- 18:41:24 
WB6TAE
Member
Joined: 2014-05-01- 23:48:12
Posts: 70
Location

I have now made a few other changes:
• Added an option to use "dig" instead of gethostbyaddr() for address-to-name resolution. Gethostbyaddr() was missing a lot of host lookups.
• Suppressed links to 0.0.0.0/0
• Fixed a problem with the --linewidth option. They were sometimes so large they covered the entire page.
• Add a timestamp.
• Suppress duplicate edges (In a few cases I was seeing more than one path from a remote node to another.)
• Cosmetic changes

I'd be glad to share the code if anyone is interested.



IP Logged
 Subject :Re:olsr-topologyview hack for MacOS.. 2015-01-19- 18:50:44 
KG6JEI
Member
Joined: 2013-12-02- 19:52:05
Posts: 516
Location

I would love s copy.

Looks like it cleaned up nicely

mycall at amsat should get it to me 

IP Logged
Note: Most posts submitted from iPhone
Page # 


Powered by ccBoard


SPONSORED AD: