10 changed files with 17 additions and 2230 deletions
@ -1,4 +1 @@
|
||||
This is still all chaotic, sorry :-) |
||||
If you like to add other clubs or awards, have a look at the sources to figure |
||||
out how to do it, or drop me a line. If it's a rather popular award, I will add |
||||
it. |
||||
Under construction. |
||||
|
@ -1,12 +0,0 @@
|
||||
# Unfortunately the AGCW membership data is only available as a Excel |
||||
# spreadsheet. It needs to be converted to a CSV list. |
||||
|
||||
BEGIN { |
||||
print "use DJ1YFK;" |
||||
} |
||||
|
||||
// { |
||||
split($0,array,";") # split the line up |
||||
print "INSERT INTO clubs (CLUB, CALL, NR) VALUES ('AGCW', '"array[2]"', '"array[1]"');" |
||||
} |
||||
|
@ -1,36 +0,0 @@
|
||||
# http://www.qsl.net/dl0hsc/files/hscmember.zip |
||||
# |
||||
# The HSC membership data is given in the following format: |
||||
|
||||
# Call HSC Name 2nd Call ex Calls Remarks |
||||
# ------------------------------------------------------------------------------------------------------- |
||||
# 0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 |
||||
# 1 2 3 4 5 6 7 8 |
||||
# |
||||
# What we need is only "Call", "HSC" (number) and "ex Calls" (2nd calls are |
||||
# included in the normal list already as multiple entries) |
||||
|
||||
BEGIN { |
||||
print "use DJ1YFK;" |
||||
} |
||||
|
||||
/^[0-9A-Z]*[0-9]+/ { # Line starts with a number or letter, |
||||
# then another number.. has to be a call |
||||
# The first two are always a callsign/number |
||||
# combination and can be added to the DB. |
||||
|
||||
print "INSERT INTO clubs (CLUB, CALL, NR) VALUES ('HSC', '"$1"', '"$2"');" |
||||
|
||||
# Now of the remaining line, we are only interested in 60 .. 83 (ex Calls) |
||||
# we save the part in question in "line", omitting the last character |
||||
# (newline). |
||||
line = substr($0, 60, length($0)-60); |
||||
gsub(/(\s|,)+/," ", line); # remove all whitespaces and commas |
||||
if (length(line) > 1) { # we have a ex Call |
||||
split(line, array, " "); # split line into array |
||||
for (foo in array) { # for every callsign |
||||
# print the callsign and the number... |
||||
print "INSERT INTO clubs (CLUB, CALL,NR) VALUES ('HSC', '"array[foo]"', '"$2"');" |
||||
} |
||||
} |
||||
} |
Binary file not shown.
@ -1,3 +1,8 @@
|
||||
Just a quick example how to use the $callsign.log to make a searchable online |
||||
log. Of course it's also possible to directly use the MySQL database for the |
||||
online log, etc... |
||||
log. |
||||
|
||||
Of course it's also possible (and probably a much better idea!) to |
||||
directly use the MySQL database for the online log, etc. |
||||
|
||||
Example (live): https://fkurz.net/ham/log/ (link to source code on that page) |
||||
|
||||
|
Loading…
Reference in new issue