Date
1 - 1 of 1
Recording wav files in WD 3.0.3.3
Rob Robinett
Starting in WD 3.0.3.3, when ARCHIVE_WAV_FILES="yes" is defined in wsprdaemon.conf a currently running WD client will start to cache all wav files after they are decoded and queued for posting to wsprnet.org. When so enabled, at each odd two minute WD stores all of the currently cached wav files into a single compressed tar file in
the ~/wsprdaemon/wav-archive.d directory. That tar file's name is derived from the WD client's site name, maidenhead, and date of the most recent .wav file it contains and with the file name extension .tar.zst . For example, at KFS the file 'KFS_CM87tj_220805_0808.tar.zst' contains a group of wav files the most recent of which recorded the WSPR cycle which started at Aug 5, 2022 at 08:08 UDT. In almost all cases, all of the wav files in such a tar file come from the same WSPR cycle.
the ~/wsprdaemon/wav-archive.d directory. That tar file's name is derived from the WD client's site name, maidenhead, and date of the most recent .wav file it contains and with the file name extension .tar.zst . For example, at KFS the file 'KFS_CM87tj_220805_0808.tar.zst' contains a group of wav files the most recent of which recorded the WSPR cycle which started at Aug 5, 2022 at 08:08 UDT. In almost all cases, all of the wav files in such a tar file come from the same WSPR cycle.
Since these wav files are uncompressed audio they are quite large so that a 30 minute wav file which might contain a FST4W-1800 signal will be almost 50 MBytes. When the file system which contains ~/wsprdaemon/wav-archive.d is more than 75% full, WD will delete the oldest *.tar.zst. Depending upon the number of receive channels, the number and type of modes, and size of that file system, anywhere from less than one day to more than 7 days of wav files may be stored. At KFS which has 26 receive channels any many modes, the *.tar.zst files occupy about 1TByte and the oldest *.tar.zst is about a week old. You can get a summary of those files by executing 'wd-wav':
wd_client@KFS-WD3:~$ wd-wav
Filesystem Size Used Avail Use% Mounted on
/dev/sda5 1.8T 1.2T 596G 66% /
1007G /home/wd_client/wsprdaemon/wav-archive.d/
total 1054179476
-rw-rw-r-- 1 wd_client wd_client 55059954 Aug 13 03:03 KFS_CM87tj_220813_0300.tar.zst
-rw-rw-r-- 1 wd_client wd_client 1416112247 Aug 13 03:01 KFS_CM87tj_220813_0258.tar.zst
-rw-rw-r-- 1 wd_client wd_client 47595138 Aug 5 08:13 KFS_CM87tj_220805_0810.tar.zst
-rw-rw-r-- 1 wd_client wd_client 163404506 Aug 5 08:11 KFS_CM87tj_220805_0808.tar.zst
wd_client@KFS-WD3:~$
To extract a wav file of interest, run 'tar axf FILE.tar.zst' and cd to the subdirectory it creates, e.g:
wd_client@KFS-WD3:~/wsprdaemon/wav-archive.d$ tar axf KFS_CM87tj_220813_0112.tar.zst
wd_client@KFS-WD3:~/wsprdaemon/wav-archive.d$ ls -lh KFS_CM87tj_220813_0112.tar.zst
wd_client@KFS-WD3:~/wsprdaemon$ cd wav-archive.d/KFS_CM87tj/KIWI_Omni_A/20/
To extract a wav file of interest, run 'tar axf FILE.tar.zst' and cd to the subdirectory it creates, e.g:
wd_client@KFS-WD3:~/wsprdaemon/wav-archive.d$ ls -lrt | tail
-rw-rw-r-- 1 wd_client wd_client 52615034 Aug 13 01:07 KFS_CM87tj_220813_0104.tar.zst
-rw-rw-r-- 1 wd_client wd_client 51904896 Aug 13 01:09 KFS_CM87tj_220813_0106.tar.zst
-rw-rw-r-- 1 wd_client wd_client 178258309 Aug 13 01:11 KFS_CM87tj_220813_0108.tar.zst
-rw-rw-r-- 1 wd_client wd_client 52150886 Aug 13 01:13 KFS_CM87tj_220813_0110.tar.zst
-rw-rw-r-- 1 wd_client wd_client 575320030 Aug 13 01:15 KFS_CM87tj_220813_0112.tar.zst
-rw-rw-r-- 1 wd_client wd_client 51171957 Aug 13 01:17 KFS_CM87tj_220813_0114.tar.zst
-rw-rw-r-- 1 wd_client wd_client 50051569 Aug 13 01:19 KFS_CM87tj_220813_0116.tar.zst
-rw-rw-r-- 1 wd_client wd_client 176094891 Aug 13 01:21 KFS_CM87tj_220813_0118.tar.zst
-rw-rw-r-- 1 wd_client wd_client 54001300 Aug 13 01:23 KFS_CM87tj_220813_0120.tar.zst
-rw-rw-r-- 1 wd_client wd_client 188987066 Aug 13 01:25 KFS_CM87tj_220813_0122.tar.zst
wd_client@KFS-WD3:~/wsprdaemon/wav-archive.d$ tar axf KFS_CM87tj_220813_0112.tar.zst
wd_client@KFS-WD3:~/wsprdaemon/wav-archive.d$ ls -lh KFS_CM87tj_220813_0112.tar.zst
-rw-rw-r-- 1 wd_client wd_client 549M Aug 13 01:15 KFS_CM87tj_220813_0112.tar.zst
wd_client@KFS-WD3:~/wsprdaemon/wav-archive.d$ du -sh KFS_CM87tj
938M KFS_CM87tj
wd_client@KFS-WD3:~/wsprdaemon$ cd wav-archive.d/KFS_CM87tj/KIWI_Omni_A/20/
wd_client@KFS-WD3:~/wsprdaemon/wav-archive.d/KFS_CM87tj/KIWI_Omni_A/20$ ls -l
total 30952
-rw-rw-r-- 1 wd_client wd_client 21602348 Aug 13 01:15 220813_0100.wav
-rw-rw-r-- 1 wd_client wd_client 7200812 Aug 13 01:15 220813_0110.wav
-rw-rw-r-- 1 wd_client wd_client 2880556 Aug 13 01:14 220813_0112.wav
wd_client@KFS-WD3:~/wsprdaemon/wav-archive.d/KFS_CM87tj/KIWI_Omni_A/20$