I like the feature on stats.allstarlink.org which shows the time since last unkey, but I wish there was a way to sort it, it would be really nice if I could find all of the nodes that are currently talking so I could connect in if I want to find someone to talk to or do a demonstration etc. First, has anyone done such a thing, where you grab the last unkey from the stats.allstarlink and show all of the nodes that have had traffic sorted by last unkey? Second, if I wanted to do it, what programming language would I have to learn to script it for my ham radio website and how hard would it be? Thanks Skyler KDØWHB
Hi Skyler, Is this list that what you like? I have write it in few minutes with php. http://82.135.26.20/lastactivity.php 73 de Florian DL1FLO
Am 09.08.2015 um 04:02 schrieb Skyler F <electricity440@gmail.com>:
I like the feature on stats.allstarlink.org which shows the time since last unkey, but I wish there was a way to sort it, it would be really nice if I could find all of the nodes that are currently talking so I could connect in if I want to find someone to talk to or do a demonstration etc.
First, has anyone done such a thing, where you grab the last unkey from the stats.allstarlink and show all of the nodes that have had traffic sorted by last unkey?
Second, if I wanted to do it, what programming language would I have to learn to script it for my ham radio website and how hard would it be?
Thanks Skyler KDØWHB _______________________________________________ App_rpt-users mailing list App_rpt-users@ohnosec.org http://ohnosec.org/cgi-bin/mailman/listinfo/app_rpt-users
To unsubscribe from this list please visit http://ohnosec.org/cgi-bin/mailman/listinfo/app_rpt-users and scroll down to the bottom of the page. Enter your email address and press the "Unsubscribe or edit options button" You do not need a password to unsubscribe, you can do it via email confirmation. If you have trouble unsubscribing, please send a message to the list detailing the problem.
Hi, I hope it works, here is the sourcecode: ---- <? $quelltext = file_get_contents("http://stats.allstarlink.org"); $quelltext = str_replace(" ", "", $quelltext); $quelltext = str_replace("</tr>", "<br>", $quelltext); $quelltext = str_replace("</td>", ";", $quelltext); $quelltext = str_replace("<td>", "", $quelltext); $quelltext = str_replace("; ", ";", $quelltext); $quelltext = str_replace("; ", ";", $quelltext); $quelltext = str_replace("; ", ";", $quelltext); $quelltext = str_replace("<tr class=\"even-row\">", "", $quelltext); $quelltext = str_replace("<tr class=\"odd-row\">", "", $quelltext); $quelltext = substr($quelltext, strpos($quelltext, "Click here for")+39); $quelltext = str_replace("<a href=\"nodeinfo.cgi?node=", "", $quelltext); $quelltext = str_replace("\">", ";", $quelltext); $quelltext = str_replace("</a>", "", $quelltext); $quelltext = str_replace(";<br>", "<br>", $quelltext); $quelltext = substr($quelltext, 0, strpos($quelltext, "<br></table>")); $list = explode("<br>", $quelltext); for ($i = 0; $i < count($list); $i++) { $list[$i] = explode(";",$list[$i]); } for ($i = 0; $i < count($list); $i++) { $duration = $list[$i][6]; $d=0; $h=0; $m=0; $s=0; if (strpos($duration, "D") > 0) { $d = substr($duration, 0, strpos($duration, "D")); $duration = substr($duration, strpos($duration, "D")+1); } if (strpos($duration, "H") > 0) { $h = substr($duration, 0, strpos($duration, "H")); $duration = substr($duration, strpos($duration, "H")+1); } if (strpos($duration, "M") > 0) { $m = substr($duration, 0, strpos($duration, "M")); $duration = substr($duration, strpos($duration, "M")+1); } if (strpos($duration, "S") > 0) { $s = substr($duration, 0, strpos($duration, "S")); $duration = substr($duration, strpos($duration, "S")+1); } $duration=$d*24*60*60+$h*60*60+$m*60+$s; $list[$i][6]=$duration; } for ($x = 1; $x < count($list); $x++) { for ($i = 1; $i < count($list); $i++) { if ($list[$i][6] < $list[$i-1][6]) { $s1=$list[$i-1][1]; $s2=$list[$i-1][2]; $s3=$list[$i-1][3]; $s4=$list[$i-1][4]; $s5=$list[$i-1][5]; $s6=$list[$i-1][6]; $list[$i-1][1]=$list[$i][1]; $list[$i-1][2]=$list[$i][2]; $list[$i-1][3]=$list[$i][3]; $list[$i-1][4]=$list[$i][4]; $list[$i-1][5]=$list[$i][5]; $list[$i-1][6]=$list[$i][6]; $list[$i][1]=$s1; $list[$i][2]=$s2; $list[$i][3]=$s3; $list[$i][4]=$s4; $list[$i][5]=$s5; $list[$i][6]=$s6; } } } echo "<table>"; echo "<tr><td>Node</td><td>Channel</td><td>Callsign</td><td>Location</td><td>Keyed</td><td>Last Key/Unkey</td></tr>"; for ($i = 0; $i < count($list); $i++) { $durationD = intval($list[$i][6]/(24*60*60)); $durationH = intval(($list[$i][6]-$durationD*24*60*60)/(60*60)); $durationM = intval(($list[$i][6]-$durationD*24*60*60-$durationH*60*60)/(60)); $durationS = intval(($list[$i][6]-$durationD*24*60*60-$durationH*60*60-$durationM*60)); $duration =""; if ($durationD > 0) {$duration = $durationD."D ".$durationH."H ".$durationM."M ".$durationS."S";}else{ if ($durationH > 0) {$duration = $durationH."H ".$durationM."M ".$durationS."S";}else{ if ($durationM > 0) {$duration = $durationM."M ".$durationS."S";}else{$duration = $durationS."S";}}} echo "<tr><td>".$list[$i][1]."</td><td>".$list[$i][2]."</td><td>".$list[$i][3]."</td><td>".$list[$i][4]."</td><td>".$list[$i][5]."</td><td>".$duration."</td></tr>"; } echo "<table>"; ?> ---- 73 de DL1FLO
Am 09.08.2015 um 04:02 schrieb Skyler F <electricity440@gmail.com>:
I like the feature on stats.allstarlink.org which shows the time since last unkey, but I wish there was a way to sort it, it would be really nice if I could find all of the nodes that are currently talking so I could connect in if I want to find someone to talk to or do a demonstration etc.
First, has anyone done such a thing, where you grab the last unkey from the stats.allstarlink and show all of the nodes that have had traffic sorted by last unkey?
Second, if I wanted to do it, what programming language would I have to learn to script it for my ham radio website and how hard would it be?
Thanks Skyler KDØWHB _______________________________________________ App_rpt-users mailing list App_rpt-users@ohnosec.org http://ohnosec.org/cgi-bin/mailman/listinfo/app_rpt-users
To unsubscribe from this list please visit http://ohnosec.org/cgi-bin/mailman/listinfo/app_rpt-users and scroll down to the bottom of the page. Enter your email address and press the "Unsubscribe or edit options button" You do not need a password to unsubscribe, you can do it via email confirmation. If you have trouble unsubscribing, please send a message to the list detailing the problem.
At 12:16 09/08/2015, Florian Schmid wrote:
Hi, I hope it works, here is the sourcecode:
----
Interesting demo that worked well. thanks. the src code seems to have got smashed up in the list server email relay does any one have this code working that can send to me directly as an attachment zip or other Im not a php expert tried to fix it but its too badly broken for me to fix. thanks. Barry
Barry, Attached is a working lastactivity script. This is meant to be run on a local http server. On the RPi2 put it in /srv/http Then browse your_RPi2_ip/lastactivity.php You need to have php setup in your http server as per Allmon instructions. This is already done in the RPi2 image. For other distributions you would have to set things up in httpd.conf and place the file in the http path before it will work. 73 Doug WA3DSP http://www.crompton.com/hamradio
Date: Sun, 9 Aug 2015 14:59:14 +0100 To: app_rpt-users@ohnosec.org From: g8sau@sidx.org.uk Subject: Re: [App_rpt-users] Find nodes that are talking
At 12:16 09/08/2015, Florian Schmid wrote:
Hi, I hope it works, here is the sourcecode:
----
Interesting demo that worked well. thanks.
the src code seems to have got smashed up in the list server email relay does any one have this code working that can send to me directly as an attachment zip or other
Im not a php expert tried to fix it but its too badly broken for me to fix.
thanks. Barry
_______________________________________________ App_rpt-users mailing list App_rpt-users@ohnosec.org http://ohnosec.org/cgi-bin/mailman/listinfo/app_rpt-users
To unsubscribe from this list please visit http://ohnosec.org/cgi-bin/mailman/listinfo/app_rpt-users and scroll down to the bottom of the page. Enter your email address and press the "Unsubscribe or edit options button" You do not need a password to unsubscribe, you can do it via email confirmation. If you have trouble unsubscribing, please send a message to the list detailing the problem.
At 16:50 09/08/2015, you wrote:
Barry,
Attached is a working lastactivity script. This is meant to be run on a local http server.
On the RPi2 put it in /srv/http
Then browse your_RPi2_ip/lastactivity.php
Thanks for the src code I did fix all this as I have the same as you sent to me. but neither work [Sun Aug 09 17:07:11 2015] [error] [client 81.149.82.229] File does not exist: /var/www/html/nodes/style.css, referer: http://www.gb3gr.co.uk/nodes/lastactivity.php [Sun Aug 09 17:07:11 2015] [error] [client 81.149.82.229] PHP Notice: Undefined offset: 6 in /var/www/html/nodes/lastactivity.php on line 24 [Sun Aug 09 17:07:11 2015] [error] [client 81.149.82.229] PHP Notice: Undefined offset: 1 in /var/www/html/nodes/lastactivity.php on line 96 [Sun Aug 09 17:07:11 2015] [error] [client 81.149.82.229] PHP Notice: Undefined offset: 2 in /var/www/html/nodes/lastactivity.php on line 96 [Sun Aug 09 17:07:11 2015] [error] [client 81.149.82.229] PHP Notice: Undefined offset: 3 in /var/www/html/nodes/lastactivity.php on line 96 [Sun Aug 09 17:07:11 2015] [error] [client 81.149.82.229] PHP Notice: Undefined offset: 4 in /var/www/html/nodes/lastactivity.php on line 96 [Sun Aug 09 17:07:11 2015] [error] [client 81.149.82.229] PHP Notice: Undefined offset: 5 in /var/www/html/nodes/lastactivity.php on line 96 I can see that it gets the stats file then starts to parse the data looking for 0 in Last Key/Unkey bits of the data and then sorting in order of number size the parsing is not actually working..? lsnodes on this ox and allmon all work its a std linux install from acid all working fine Barry
I don't believe it works as it should. it's reporting my node as not keyed up in 6 daysand that's not true. seems to me it's reporting how long the systems has been up andnot how busy they are. 73 Russ WL7LP Alaska Morning Net - Net Manager IRLP node 7369,AllStar 29332, 29265, From: Barry <g8sau@sidx.org.uk> To: Doug Crompton <doug@crompton.com>; "app_rpt-users@ohnosec.org" <app_rpt-users@ohnosec.org> Sent: Sunday, August 9, 2015 8:17 AM Subject: Re: [App_rpt-users] Find nodes that are talking At 16:50 09/08/2015, you wrote:
Barry,
Attached is a working lastactivity script. This is meant to be run on a local http server.
On the RPi2 put it in /srv/http
Then browse your_RPi2_ip/lastactivity.php
Thanks for the src code I did fix all this as I have the same as you sent to me. but neither work [Sun Aug 09 17:07:11 2015] [error] [client 81.149.82.229] File does not exist: /var/www/html/nodes/style.css, referer: http://www.gb3gr.co.uk/nodes/lastactivity.php [Sun Aug 09 17:07:11 2015] [error] [client 81.149.82.229] PHP Notice: Undefined offset: 6 in /var/www/html/nodes/lastactivity.php on line 24 [Sun Aug 09 17:07:11 2015] [error] [client 81.149.82.229] PHP Notice: Undefined offset: 1 in /var/www/html/nodes/lastactivity.php on line 96 [Sun Aug 09 17:07:11 2015] [error] [client 81.149.82.229] PHP Notice: Undefined offset: 2 in /var/www/html/nodes/lastactivity.php on line 96 [Sun Aug 09 17:07:11 2015] [error] [client 81.149.82.229] PHP Notice: Undefined offset: 3 in /var/www/html/nodes/lastactivity.php on line 96 [Sun Aug 09 17:07:11 2015] [error] [client 81.149.82.229] PHP Notice: Undefined offset: 4 in /var/www/html/nodes/lastactivity.php on line 96 [Sun Aug 09 17:07:11 2015] [error] [client 81.149.82.229] PHP Notice: Undefined offset: 5 in /var/www/html/nodes/lastactivity.php on line 96 I can see that it gets the stats file then starts to parse the data looking for 0 in Last Key/Unkey bits of the data and then sorting in order of number size the parsing is not actually working..? lsnodes on this ox and allmon all work its a std linux install from acid all working fine Barry _______________________________________________ App_rpt-users mailing list App_rpt-users@ohnosec.org http://ohnosec.org/cgi-bin/mailman/listinfo/app_rpt-users To unsubscribe from this list please visit http://ohnosec.org/cgi-bin/mailman/listinfo/app_rpt-users and scroll down to the bottom of the page. Enter your email address and press the "Unsubscribe or edit options button" You do not need a password to unsubscribe, you can do it via email confirmation. If you have trouble unsubscribing, please send a message to the list detailing the problem.
It reports only RF activity at the node listed. My hub has lots of activity but it does not show up unless coming directly from that node. THIs somewhat makes sense because if it showed all the nodes keyed that were connected to all hubs the list would go crazy! 73 Doug WA3DSP http://www.crompton.com/hamradio Date: Sun, 9 Aug 2015 16:45:03 +0000 From: wl7lp@yahoo.com To: app_rpt-users@ohnosec.org Subject: Re: [App_rpt-users] Find nodes that are talking I don't believe it works as it should. it's reporting my node as not keyed up in 6 daysand that's not true. seems to me it's reporting how long the systems has been up andnot how busy they are. 73 Russ WL7LP Alaska Morning Net - Net Manager IRLP node 7369, AllStar 29332, 29265, From: Barry <g8sau@sidx.org.uk> To: Doug Crompton <doug@crompton.com>; "app_rpt-users@ohnosec.org" <app_rpt-users@ohnosec.org> Sent: Sunday, August 9, 2015 8:17 AM Subject: Re: [App_rpt-users] Find nodes that are talking At 16:50 09/08/2015, you wrote:>Barry,>> Attached is a working lastactivity script. This is meant to be run on a > local http server.>>On the RPi2 put it in /srv/http>>Then browse your_RPi2_ip/lastactivity.phpThanks for the src code I did fix all this as I have the same as you sent to me.but neither work[Sun Aug 09 17:07:11 2015] [error] [client 81.149.82.229] File does not exist: /var/www/html/nodes/style.css, referer: http://www.gb3gr.co.uk/nodes/lastactivity.php[Sun Aug 09 17:07:11 2015] [error] [client 81.149.82.229] PHP Notice: Undefined offset: 6 in /var/www/html/nodes/lastactivity.php on line 24[Sun Aug 09 17:07:11 2015] [error] [client 81.149.82.229] PHP Notice: Undefined offset: 1 in /var/www/html/nodes/lastactivity.php on line 96[Sun Aug 09 17:07:11 2015] [error] [client 81.149.82.229] PHP Notice: Undefined offset: 2 in /var/www/html/nodes/lastactivity.php on line 96[Sun Aug 09 17:07:11 2015] [error] [client 81.149.82.229] PHP Notice: Undefined offset: 3 in /var/www/html/nodes/lastactivity.php on line 96[Sun Aug 09 17:07:11 2015] [error] [client 81.149.82.229] PHP Notice: Undefined offset: 4 in /var/www/html/nodes/lastactivity.php on line 96[Sun Aug 09 17:07:11 2015] [error] [client 81.149.82.229] PHP Notice: Undefined offset: 5 in /var/www/html/nodes/lastactivity.php on line 96I can see that it gets the stats file then starts to parse the data looking for 0 in Last Key/Unkey bits of the data andthen sorting in order of number sizethe parsing is not actually working..?lsnodes on this ox and allmon all work its a std linux install from acid all working fine Barry_______________________________________________App_rpt-users mailing listApp_rpt-users@ohnosec.orghttp://ohnosec.org/cgi-bin/mailman/listinfo/app_rpt-usersTo unsubscribe from this list please visit http://ohnosec.org/cgi-bin/mailman/listinfo/app_rpt-users and scroll down to the bottom of the page. Enter your email address and press the "Unsubscribe or edit options button"You do not need a password to unsubscribe, you can do it via email confirmation. If you have trouble unsubscribing, please send a message to the list detailing the problem. _______________________________________________ App_rpt-users mailing list App_rpt-users@ohnosec.org http://ohnosec.org/cgi-bin/mailman/listinfo/app_rpt-users To unsubscribe from this list please visit http://ohnosec.org/cgi-bin/mailman/listinfo/app_rpt-users and scroll down to the bottom of the page. Enter your email address and press the "Unsubscribe or edit options button" You do not need a password to unsubscribe, you can do it via email confirmation. If you have trouble unsubscribing, please send a message to the list detailing the problem.
What is the error? What system are you using? Acid? RPi2? etc. Are you setup for Allmon (changes to httpd.conf) ? Check the http error log. /var/log/httpd/error_log and access_log 73 Doug WA3DSP http://www.crompton.com/hamradio
Date: Sun, 9 Aug 2015 17:17:26 +0100 To: doug@crompton.com; app_rpt-users@ohnosec.org From: g8sau@sidx.org.uk Subject: RE: [App_rpt-users] Find nodes that are talking
At 16:50 09/08/2015, you wrote:
Barry,
Attached is a working lastactivity script. This is meant to be run on a local http server.
On the RPi2 put it in /srv/http
Then browse your_RPi2_ip/lastactivity.php
Thanks for the src code I did fix all this as I have the same as you sent to me. but neither work
[Sun Aug 09 17:07:11 2015] [error] [client 81.149.82.229] File does not exist: /var/www/html/nodes/style.css, referer: http://www.gb3gr.co.uk/nodes/lastactivity.php [Sun Aug 09 17:07:11 2015] [error] [client 81.149.82.229] PHP Notice: Undefined offset: 6 in /var/www/html/nodes/lastactivity.php on line 24 [Sun Aug 09 17:07:11 2015] [error] [client 81.149.82.229] PHP Notice: Undefined offset: 1 in /var/www/html/nodes/lastactivity.php on line 96 [Sun Aug 09 17:07:11 2015] [error] [client 81.149.82.229] PHP Notice: Undefined offset: 2 in /var/www/html/nodes/lastactivity.php on line 96 [Sun Aug 09 17:07:11 2015] [error] [client 81.149.82.229] PHP Notice: Undefined offset: 3 in /var/www/html/nodes/lastactivity.php on line 96 [Sun Aug 09 17:07:11 2015] [error] [client 81.149.82.229] PHP Notice: Undefined offset: 4 in /var/www/html/nodes/lastactivity.php on line 96 [Sun Aug 09 17:07:11 2015] [error] [client 81.149.82.229] PHP Notice: Undefined offset: 5 in /var/www/html/nodes/lastactivity.php on line 96
I can see that it gets the stats file then starts to parse the data looking for 0 in Last Key/Unkey bits of the data and then sorting in order of number size
the parsing is not actually working..?
lsnodes on this ox and allmon all work its a std linux install from acid all working fine
Barry
participants (5)
-
Barry -
Doug Crompton -
Florian Schmid -
Russ WL7LP -
Skyler F