Skip to content

cintema/hamcode

 
 

Repository files navigation

Hamcode

My tools/things for learning CW.

We use ebook2cw from Fabian Kurz which is also used to generate audio on the wonderful CW training site [lcwo.net][5]. ebook2cw is used to generate audio files that contain a random collection of real words. Currently a german wordlist (deutsch.txt) can be used which we obtained from netzmafia.de and a QSO wordlist (see below) can be used. This can be exchanged by any list which has its words seperated by a newline or space.

The QSO wordlist is used to generate texts with abbreviations and callsigns which should be typical on the air. The sample morse files (folder 300USAqso) are courtesy of Jim Weir via G4FON's excellent CW trainer site http://www.g4fon.net/CW Trainer.htm.

The words can be limited to a certain set of characters. This is helpful if you yet only know a limited amount of characters.

My longterm goal would be to extend this so this can generate real QSO like texts so one can learn the typical patterns off the air. With QSO wordlists we are quite close to that but real QSO are still quite different.

Usage

There is a demo page with the output.

Here an example script I call every day using a cronjob:

#!/bin/bash
# Example: ./generate_all.sh "kmuresnaptlwi.jz=foy,vg5/q92h38b?47c1d60x+#" output
# + -> ^AR, # -> ^KA, < -> ^ERROR
/home/hvoigt/hamcode/generate_all.sh -i 4 'elv0' \
	"/var/www/cw.hvoigt.net/Lektion 1" >/dev/null
/home/hvoigt/hamcode/generate_all.sh -i 3 'elv0aqs' \
	"/var/www/cw.hvoigt.net/Lektion 2" >/dev/null
/home/hvoigt/hamcode/generate_all.sh -i 2 'elv0aqst2' \
	"/var/www/cw.hvoigt.net/Lektion 3" >/dev/null
/home/hvoigt/hamcode/generate_all.sh -i 2 'elv0aqst2co' \
	"/var/www/cw.hvoigt.net/Lektion 4" >/dev/null
/home/hvoigt/hamcode/generate_all.sh -f -e 'elv0aqst2co' \
	"/var/www/cw.hvoigt.net/Lektion 5" >/dev/null
/home/hvoigt/hamcode/generate_all.sh -i 3 'elv0aqst2cod5/' \
	"/var/www/cw.hvoigt.net/Lektion 6" >/dev/null
/home/hvoigt/hamcode/generate_all.sh -i 3 'elv0aqst2cod5/ir9' \
	"/var/www/cw.hvoigt.net/Lektion 7" >/dev/null
/home/hvoigt/hamcode/generate_all.sh -i 2 -q -t 'elv0aqst2cod5/ir9gx' \
	"/var/www/cw.hvoigt.net/Lektion 8" >/dev/null
/home/hvoigt/hamcode/generate_all.sh -i 2 -q -t 'elv0aqst2cod5/ir9gxf4' \
	"/var/www/cw.hvoigt.net/Lektion 9" >/dev/null

Building

You need to have the following prerequisites installed:

  • perl
  • gcc
  • make
  • git
  • bash
  • libmp3lame, libvorbis, libvorbisenc, libogg

On Ubuntu 16.04 the line for installing the needed libs is:

sudo apt-get install -y build-essential git libmp3lame-dev libvorbis-dev

To clone and build the repository:

git clone https://github.com/hvoigt/hamcode.git
cd hamcode
git submodule update --init
make

Now you should be able to execute the scripts as described above.

About

Some code for the ham operator

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 46.6%
  • C 19.9%
  • Shell 18.1%
  • JavaScript 7.2%
  • Perl 6.9%
  • CSS 0.7%
  • Makefile 0.6%