Commit Graph

714 Commits

Author SHA1 Message Date
Dirk Koopman
ed671609b5 Fix slots around the time
Fill the slots around the time in the order set/dxgid, set/usstate, set/dxcq or set/dxicq
2021-12-10 15:36:14 +00:00
Dirk Koopman
ec2bc54f84 back port registration from mojo 2021-12-10 10:45:23 +00:00
Dirk Koopman
2e3638e69f backport mojo console.pl width/scolling changes 2021-12-08 13:34:39 +00:00
Dirk Koopman
f5938b5fe6 fix sh/registered 2021-12-06 21:18:27 +00:00
Dirk Koopman
4b7dbe2c98 show git branch on show/version 2020-05-20 16:24:56 +01:00
Dirk Koopman
fc8ec20708 add sh/dx origin and ip and regexes
See help show/ddx for more information

A regex for alpha fields for filters, Regexes are indicated by surrounding
the pattern required with { and } e.g {\d+\s*db\s+\d+\s*wpm(?:\s+cq)?} But, in this case,
the 'set/badword' mechanism is probably more robust.

This is an experimental feature that may well not work...
2020-04-06 21:05:28 +01:00
Dirk Koopman
112baf5b4c improve DXQsl handling and fix crashes? 2019-09-10 17:02:53 +01:00
Dirk Koopman
c0ed0767ac remove empty forward/mail command 2019-08-28 19:15:34 +01:00
Dirk Koopman
8d185cf5bc fix sh/425 (mostly - bull doesn't work) 2017-05-12 19:04:03 +01:00
Dirk Koopman
6bcb0688c4 Fix sh/dx on 14050 so it works as expected 2017-02-21 11:26:11 +00:00
Dirk Koopman
713a209e15 fix correct url for sh/425 2016-01-02 20:32:36 +00:00
Dirk Koopman
9b65e70322 try fix node type changes from outside
Also add CTY-2516 prefix changes
2015-12-30 19:34:38 +00:00
Dirk Koopman
d2cdffc409 change Aliases to allow other cmds for ^q.*
This has been changed by request from Hans OE1SRC, to allow other
commands than 'quit' that start with the letter 'q'.
Add CTY-2507 prefixes.
2015-06-02 16:25:24 +01:00
Dirk Koopman
74a756eeda fix sh/dx <call> with sql spot logging 2015-02-13 22:40:00 +00:00
Dirk Koopman
0c963c43ab fix small crash with Spot::dup
This may have something to do with the new wpxloc.raw format that
I am now using (erm.. testing). But if I check for a a duplicate of
the prefix in the remarks, and that "prefix" (char string length <= 4)
contains a space, Spot::dup crashes. Intermittently.
2014-03-08 00:18:18 +00:00
Dirk Koopman
536ca8cd58 fix dx and import_cmd problems 2014-01-12 16:43:37 +00:00
Dirk Koopman
725d28d2eb fix AsyncMsg state handling and sh/qrz 2013-09-12 13:40:05 +01:00
Dirk Koopman
564b5b3a0c add get/keps command to load AMSAT keps
Fix AsyncMsg to handle basic 302 redirects.
2013-09-11 16:17:30 +01:00
Dirk Koopman
b099b4a232 update sh/qrz and start get/keps 2013-09-10 23:42:24 +01:00
Dirk Koopman
e941823af3 fix sh/time undefined $last[0] error 2013-09-10 19:58:18 +01:00
Dirk Koopman
8bb293d5a1 AsyncMsgise sh/db0sdx
Add POST and on_disconnect handlers in AsyncMsg.pm
2013-09-09 15:20:32 +01:00
Dirk Koopman
89eaa6762e AsyncMsgise sh/425 2013-09-08 16:17:17 +01:00
Dirk Koopman
cc83de0d57 AsyncMsgise sh/qrz
Which was quite easy compared to some...
2013-09-07 23:08:15 +01:00
Dirk Koopman
9fc2ec1708 mv HTTPMsg to AsyncMsg, add 'raw' method
Convert sh/wm7d command to AsyncMsg.
Modify all the HTTPMsg converted cmds to use AsyncMsg.

Add a 'raw' 'telnet' handler. This allows one to query things with command
prompts or stuff that isn't a HTTP server. But it ain't always easy. See the
messing around in sh/wm7d I had to do, to get something that is stable given
that the thing that I am looking doesn't have a \n at the end.

It's just a prompt.
2013-09-07 18:47:48 +01:00
Dirk Koopman
1ec21f9257 and also in sh/db0sdx.pl 2013-09-07 00:23:38 +01:00
Dirk Koopman
75c9f67f91 fix missing Net::Telnet in sh/wm7d
temporarily...
2013-09-07 00:21:31 +01:00
Dirk Koopman
fd2d8314dd Add HTTPMsg.pm an async HTTP agent
This is a start of making all the Net::Telnet things redundant.

HTTPMsg.pm is likely to be substantially modified or replaced.

W.I.P
2013-09-07 00:10:36 +01:00
Dirk Koopman
c675748ded added support for subroutines in commands
Traditionally, a command is a piece of perl that is a simple
in line lump of code e.g (blank.pl):

		my ($self, $line) = @_;
		my $lines = 1;
		my $data = ' ';
		my @f = split /\s+/, $line;
		if (@f && $f[0] !~ /^\d+$/) {
			$data = shift @f;
			$data = $data x int(($self->width-1) / length($data));
			$data .= substr $data, 0, int(($self->width-1) % length($data))
		}
		if (@f && $f[0] =~ /^\d+$/) {
			$lines = shift @f;
			$lines = 9 if $lines > 9;
			$lines = 1 if $lines < 1;
		}
		my @out;
		push @out, $data for (1..$lines);
		return (1, @out);

It is now possible to have a 'handler' and any other code you like in
a command file, for instance (again blank.pl):

sub this {}

sub that {}

sub another {}

sub handle
{
		my ($self, $line) = @_;
		my $lines = 1;
		my $data = ' ';
		my @f = split /\s+/, $line;
		if (@f && $f[0] !~ /^\d+$/) {
			$data = shift @f;
			$data = $data x int(($self->width-1) / length($data));
			$data .= substr $data, 0, int(($self->width-1) % length($data))
		}
		if (@f && $f[0] =~ /^\d+$/) {
			$lines = shift @f;
			$lines = 9 if $lines > 9;
			$lines = 1 if $lines < 1;
		}
		my @out;
		push @out, $data for (1..$lines);
		return (1, @out);
}

The 'sub handle' being the cue that distiguishes one form from the other.

The first form has the 'sub handle { <code> }' wrapped around it so, internally
they are treated the same. Each command is placed in its own DXCommandmode sub
package with a standard set of packages "use"d in front of it.

For now (at least) any functions you declare are just that. "$self" is a DXCommandmode
not a blessed reference to this command's full package name, you cannot use things like

$self->this() or $self->that()

they must be called as local functions.

This may change in the future.

Conflicts:

	perl/DXChannel.pm
	perl/Version.pm
2013-09-06 14:22:38 +01:00
Dirk Koopman
f67292b60a fix sh/contest and add CTY2308 prefixes 2013-09-06 13:42:02 +01:00
Dirk Koopman
7f7535c09c Make peerhost data more consistent 2013-07-21 23:38:24 +01:00
Dirk Koopman
503168fd0f add ip address to links command 2013-07-21 23:17:46 +01:00
Dirk Koopman
7d74331026 fix dxqsl_export titling in help 2010-10-24 10:34:44 +01:00
Dirk Koopman
75987f0dbc added dbexport & dxqsl_import/export cmds 2010-10-23 23:39:19 +01:00
Dirk Koopman
537a4a109f allow 4 letter callsigns, add git id sh/version 2010-06-17 13:26:29 +01:00
Dirk Koopman
cd5b993f99 add ip addresses to dxspots emitted as PC61 2010-06-17 11:45:21 +01:00
Dirk Koopman
cf3be2ab23 Merge commit '64461bf14f8ce1a'
merge in 500khz changes

Conflicts:

	Changes
	perl/Version.pm
2010-03-03 14:50:44 +00:00
dirk
1488e94d7a Add clear/cmd_cache command to git 2010-02-26 18:28:43 +00:00
Dirk Koopman
64461bf14f add 500khz band and CTY-1923 prefixes 2009-11-27 12:13:33 +00:00
Dirk Koopman
99077d96c9 add xml version of sh/qrz
you will need a subscription to the xml service. See:
http://www.qrz.com/XML/index.html for more info.

Disable the incomplete Encoding of textual data. Work out what to do after
more agreement with people.
2009-11-25 17:15:57 +00:00
Dirk Koopman
6ba06f6627 fix ssid handling on (un)set/badnode.pl 2009-11-14 11:38:43 +00:00
Dirk Koopman
3bbdbaf825 add missing show/motd command 2008-12-29 22:00:08 +00:00
Dirk Koopman
0efcf0d784 add show/motd command
and also CTY-1817 prefix changes
2008-12-29 18:23:48 +00:00
Dirk Koopman
01c7ebc6ec fix sh/425 to point to new server
unfortunately this is http/1.1 only which causes problems with
detecting the EOF ('cos there ain't one). So it is slower than it was.

Add CTY-1814 prefixes 'Kingman Reef'
2008-11-17 00:09:29 +00:00
Dirk Koopman
963ead7224 Add set/maxconnect command 2008-10-02 10:13:18 +01:00
Dirk Koopman
8081646e93 add the ability to limit no of connections
Add the ability to limit the no of connections an incoming user/node
has. If a node/user is already connected elsewhere more than the maximum
no of times then this incoming connection is refused.
2008-10-01 23:04:48 +01:00
Dirk Koopman
229eee2688 make buddies work better :-)
also prettify show/sun.pl to help my understanding
2008-06-28 15:27:16 +01:00
Dirk Koopman
51de27cf70 added show/ik3qar command 2008-06-26 13:49:50 +01:00
dirk
0e26aa78a0 add ... for more than 4 routes in sh/route 2008-06-25 00:02:59 +01:00
Dirk Koopman
b2dfa97751 change interface to Route::findroutes
This change allows things like sh/route to obtain the actual
routing priorities either for use or display.

Add a command 'send_config' to broadcast a new PC92 C record
to all interfaces. Useful for playig catchup more quickly after
a restart.
2008-06-24 22:22:44 +01:00
Dirk Koopman
c1540ccd79 New improved route finding algorithm
This is what Changes says:

Change the route finding algorithm completely. No more recursion. No more
tree searching. It now gives you answers even on a partial cluster map. Oh
and the answers are correct, instead on completely random.

Also completely remove RouteDB from the equation.
Also change sh/newc to default to node map rather than node+user map.
2008-06-24 19:36:57 +01:00