Remove colours from API #7

This commit is contained in:
Ian Renton
2025-09-29 20:57:17 +01:00
parent 269e67225c
commit ac6d4d40cd
4 changed files with 18 additions and 36 deletions

View File

@@ -12,23 +12,23 @@ ALL_MODES = CW_MODES + PHONE_MODES + DATA_MODES
# Band definitions
BANDS = [
Band(name="160m", start_freq=1800, end_freq=2000, color="#7cfc00", contrast_color="black"),
Band(name="80m", start_freq=3500, end_freq=4000, color="#e550e5", contrast_color="black"),
Band(name="60m", start_freq=5250, end_freq=5410, color="#00008b", contrast_color="white"),
Band(name="40m", start_freq=7000, end_freq=7300, color="#5959ff", contrast_color="white"),
Band(name="30m", start_freq=10100, end_freq=10150, color="#62d962", contrast_color="black"),
Band(name="20m", start_freq=14000, end_freq=14350, color="#f2c40c", contrast_color="black"),
Band(name="17m", start_freq=18068, end_freq=18168, color="#f2f261", contrast_color="black"),
Band(name="15m", start_freq=21000, end_freq=21450, color="#cca166", contrast_color="black"),
Band(name="12m", start_freq=24890, end_freq=24990, color="#b22222", contrast_color="white"),
Band(name="10m", start_freq=28000, end_freq=29700, color="#ff69b4", contrast_color="black"),
Band(name="6m", start_freq=50000, end_freq=54000, color="#FF0000", contrast_color="white"),
Band(name="4m", start_freq=70000, end_freq=70500, color="#cc0044", contrast_color="white"),
Band(name="2m", start_freq=144000, end_freq=148000, color="#FF1493", contrast_color="black"),
Band(name="70cm", start_freq=420000, end_freq=450000, color="#999900", contrast_color="white"),
Band(name="23cm", start_freq=1240000, end_freq=1325000, color="#5AB8C7", contrast_color="black"),
Band(name="13cm", start_freq=2300000, end_freq=2450000, color="#FF7F50", contrast_color="black")]
UNKNOWN_BAND = Band(name="Unknown", start_freq=0, end_freq=0, color="black", contrast_color="white")
Band(name="160m", start_freq=1800, end_freq=2000),
Band(name="80m", start_freq=3500, end_freq=4000),
Band(name="60m", start_freq=5250, end_freq=5410),
Band(name="40m", start_freq=7000, end_freq=7300),
Band(name="30m", start_freq=10100, end_freq=10150),
Band(name="20m", start_freq=14000, end_freq=14350),
Band(name="17m", start_freq=18068, end_freq=18168),
Band(name="15m", start_freq=21000, end_freq=21450),
Band(name="12m", start_freq=24890, end_freq=24990),
Band(name="10m", start_freq=28000, end_freq=29700),
Band(name="6m", start_freq=50000, end_freq=54000),
Band(name="4m", start_freq=70000, end_freq=70500),
Band(name="2m", start_freq=144000, end_freq=148000),
Band(name="70cm", start_freq=420000, end_freq=450000),
Band(name="23cm", start_freq=1240000, end_freq=1325000),
Band(name="13cm", start_freq=2300000, end_freq=2450000)]
UNKNOWN_BAND = Band(name="Unknown", start_freq=0, end_freq=0)
# DXCC flags (borrowed from https:#github.com/wavelog/wavelog/blob/master/application/libraries/DxccFlag.php)
DXCC_FLAGS = {