swharden / FSKview

A high resolution spectrogram for viewing FSK signals in real time
https://swharden.com/software/FSKview
MIT License
13 stars 5 forks source link

additional customization options #3

Closed swharden closed 4 years ago

swharden commented 4 years ago

add a mechanism to customize additional settings and remember GUI state through program restarts:

Config File

Customizations

swharden commented 4 years ago

I went with an XML format like this

<?xml version="1.0" encoding="utf-8"?>
<ProgramSettings xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <Version>1.0</Version>
  <audioDeviceIndex>0</audioDeviceIndex>
  <window>Cosine</window>
  <colormap>Viridis</colormap>
  <dialFrequencyIndex>5</dialFrequencyIndex>
  <brightness>2</brightness>
  <isWsprEnabled>true</isWsprEnabled>
  <wsprLogFilePath>asdf</wsprLogFilePath>
  <showBands>true</showBands>
  <saveGrabs>true</saveGrabs>
  <showScaleOnAllGrabs>false</showScaleOnAllGrabs>
  <grabFileName>latest.png</grabFileName>
  <targetWidth>1000</targetWidth>
  <grabSavePxAbove>123</grabSavePxAbove>
  <grabSavePxBelow>321</grabSavePxBelow>
  <verticalReduction>2</verticalReduction>
  <freqDisplayOffset>0</freqDisplayOffset>
  <grabMessage>station information not set</grabMessage>
  <ftpServerAddress>ftp://ftp.qsl.net</ftpServerAddress>
  <ftpRemoteSubfolder>/</ftpRemoteSubfolder>
  <ftpUsername>sampleUsername</ftpUsername>
  <ftpObfuscatedPassword>c2FUGcmQFzc3tcGxldv</ftpObfuscatedPassword>
  <ftpDelaySec>15</ftpDelaySec>
</ProgramSettings>

image

K4RCG commented 4 years ago

Settings is a huge value-add. I especially like the RX above/below QRSS values....

swharden commented 4 years ago

done, will be in v1.0.5