This commit is contained in:
Gregory Salaun 2025-06-02 23:16:10 +02:00
parent f3851e44b6
commit b77b013d63
6 changed files with 12 additions and 9 deletions

0
.vscode/launch.json vendored Normal file
View File

View File

@ -22,6 +22,7 @@ type TCPClient struct {
LogWriter *bufio.Writer
Reader *bufio.Reader
Writer *bufio.Writer
Scanner *bufio.Scanner
Conn *net.TCPConn
TCPServer TCPServer
MsgChan chan string
@ -130,9 +131,11 @@ func (c *TCPClient) SetFilters() {
func (c *TCPClient) ReadLine() {
for {
message, err := c.Reader.ReadString('\n')
message, _ = strings.CutSuffix(message, "\n")
message, _ = strings.CutSuffix(message, "\r")
if err != nil {
Log.Errorf("Error reading message: %s", err)
c.Conn.Close()

View File

@ -8,14 +8,14 @@ sqlite:
sqlite_path: 'C:\Perso\Seafile\Radio\Logs\Log4OM\F4BPO.SQLite' # SQLite Db oath of Log4OM
callsign: F4BPO # Log4OM Callsign used to check if you get spotted by someone
cluster:
server: dxc.k0xm.net # dxc.k0xm.net
port: 7300
server: www.db0erf.de # dxc.k0xm.net
port: 41113
login: f4bpo
skimmer: true
ft8: false
ft4: false
command: SET/NOFILTER
login_prompt: "Please enter your call:"
login_prompt: "login: "
flex:
discovery: true # Radio must be on same LAN than the program
ip: 10.10.10.120 # if discovery is true no need to put an IP
@ -30,4 +30,4 @@ gotify:
NewDXCC: true
NewBand: false
NewMode: false
NewBandAndMode: true
NewBandAndMode: false

View File

@ -6713,7 +6713,7 @@
<CountryTag />
<CountryPrefixList>
<CountryPrefix>
<PrefixList>^FO.*</PrefixList>
<PrefixList>^FO.*|TX5U</PrefixList>
<StartDate xsi:nil="true" />
<EndDate>1979-07-18T00:00:00Z</EndDate>
</CountryPrefix>
@ -6723,7 +6723,7 @@
<EndDate>1979-07-22T23:59:59Z</EndDate>
</CountryPrefix>
<CountryPrefix>
<PrefixList>^FO.*</PrefixList>
<PrefixList>^FO.*|TX5U</PrefixList>
<StartDate>1979-07-22T23:59:59Z</StartDate>
<EndDate xsi:nil="true" />
</CountryPrefix>
@ -12832,7 +12832,7 @@
<EndDate>1979-12-31T23:59:59Z</EndDate>
</CountryPrefix>
<CountryPrefix>
<PrefixList>^FR.*</PrefixList>
<PrefixList>^FR.*|^TO974REF</PrefixList>
<StartDate>1979-12-31T23:59:59Z</StartDate>
<EndDate xsi:nil="true" />
</CountryPrefix>

View File

@ -81,6 +81,6 @@ func sendToGotify(mess GotifyMessage) {
if resp.StatusCode != http.StatusOK {
Log.Errorln("Gotify server returned non-OK status:", resp.Status)
} else {
Log.Println("Push successfully sent to Gotify")
Log.Debugln("Push successfully sent to Gotify")
}
}

View File

@ -49,7 +49,7 @@ func main() {
log.Infof("Gotify Push Enabled: %v", cfg.Gotify.Enable)
if cfg.Gotify.Enable {
log.Infof("Gotify Push NewDXCC %v - NewBand %v - NewMode %v - NewBandAndMode %v", cfg.Gotify.NewDXCC, cfg.Gotify.NewBand, cfg.Gotify.NewMode, cfg.Gotify.NewBandAndMode)
log.Infof("Gotify Push NewDXCC: %v - NewBand: %v - NewMode: %v - NewBandAndMode: %v", cfg.Gotify.NewDXCC, cfg.Gotify.NewBand, cfg.Gotify.NewMode, cfg.Gotify.NewBandAndMode)
}
// Load country.xml to get all the DXCC number