up
This commit is contained in:
parent
f3851e44b6
commit
b77b013d63
0
.vscode/launch.json
vendored
Normal file
0
.vscode/launch.json
vendored
Normal file
@ -22,6 +22,7 @@ type TCPClient struct {
|
|||||||
LogWriter *bufio.Writer
|
LogWriter *bufio.Writer
|
||||||
Reader *bufio.Reader
|
Reader *bufio.Reader
|
||||||
Writer *bufio.Writer
|
Writer *bufio.Writer
|
||||||
|
Scanner *bufio.Scanner
|
||||||
Conn *net.TCPConn
|
Conn *net.TCPConn
|
||||||
TCPServer TCPServer
|
TCPServer TCPServer
|
||||||
MsgChan chan string
|
MsgChan chan string
|
||||||
@ -130,9 +131,11 @@ func (c *TCPClient) SetFilters() {
|
|||||||
func (c *TCPClient) ReadLine() {
|
func (c *TCPClient) ReadLine() {
|
||||||
|
|
||||||
for {
|
for {
|
||||||
|
|
||||||
message, err := c.Reader.ReadString('\n')
|
message, err := c.Reader.ReadString('\n')
|
||||||
message, _ = strings.CutSuffix(message, "\n")
|
message, _ = strings.CutSuffix(message, "\n")
|
||||||
message, _ = strings.CutSuffix(message, "\r")
|
message, _ = strings.CutSuffix(message, "\r")
|
||||||
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
Log.Errorf("Error reading message: %s", err)
|
Log.Errorf("Error reading message: %s", err)
|
||||||
c.Conn.Close()
|
c.Conn.Close()
|
||||||
|
@ -8,14 +8,14 @@ sqlite:
|
|||||||
sqlite_path: 'C:\Perso\Seafile\Radio\Logs\Log4OM\F4BPO.SQLite' # SQLite Db oath of Log4OM
|
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
|
callsign: F4BPO # Log4OM Callsign used to check if you get spotted by someone
|
||||||
cluster:
|
cluster:
|
||||||
server: dxc.k0xm.net # dxc.k0xm.net
|
server: www.db0erf.de # dxc.k0xm.net
|
||||||
port: 7300
|
port: 41113
|
||||||
login: f4bpo
|
login: f4bpo
|
||||||
skimmer: true
|
skimmer: true
|
||||||
ft8: false
|
ft8: false
|
||||||
ft4: false
|
ft4: false
|
||||||
command: SET/NOFILTER
|
command: SET/NOFILTER
|
||||||
login_prompt: "Please enter your call:"
|
login_prompt: "login: "
|
||||||
flex:
|
flex:
|
||||||
discovery: true # Radio must be on same LAN than the program
|
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
|
ip: 10.10.10.120 # if discovery is true no need to put an IP
|
||||||
@ -30,4 +30,4 @@ gotify:
|
|||||||
NewDXCC: true
|
NewDXCC: true
|
||||||
NewBand: false
|
NewBand: false
|
||||||
NewMode: false
|
NewMode: false
|
||||||
NewBandAndMode: true
|
NewBandAndMode: false
|
@ -6713,7 +6713,7 @@
|
|||||||
<CountryTag />
|
<CountryTag />
|
||||||
<CountryPrefixList>
|
<CountryPrefixList>
|
||||||
<CountryPrefix>
|
<CountryPrefix>
|
||||||
<PrefixList>^FO.*</PrefixList>
|
<PrefixList>^FO.*|TX5U</PrefixList>
|
||||||
<StartDate xsi:nil="true" />
|
<StartDate xsi:nil="true" />
|
||||||
<EndDate>1979-07-18T00:00:00Z</EndDate>
|
<EndDate>1979-07-18T00:00:00Z</EndDate>
|
||||||
</CountryPrefix>
|
</CountryPrefix>
|
||||||
@ -6723,7 +6723,7 @@
|
|||||||
<EndDate>1979-07-22T23:59:59Z</EndDate>
|
<EndDate>1979-07-22T23:59:59Z</EndDate>
|
||||||
</CountryPrefix>
|
</CountryPrefix>
|
||||||
<CountryPrefix>
|
<CountryPrefix>
|
||||||
<PrefixList>^FO.*</PrefixList>
|
<PrefixList>^FO.*|TX5U</PrefixList>
|
||||||
<StartDate>1979-07-22T23:59:59Z</StartDate>
|
<StartDate>1979-07-22T23:59:59Z</StartDate>
|
||||||
<EndDate xsi:nil="true" />
|
<EndDate xsi:nil="true" />
|
||||||
</CountryPrefix>
|
</CountryPrefix>
|
||||||
@ -12832,7 +12832,7 @@
|
|||||||
<EndDate>1979-12-31T23:59:59Z</EndDate>
|
<EndDate>1979-12-31T23:59:59Z</EndDate>
|
||||||
</CountryPrefix>
|
</CountryPrefix>
|
||||||
<CountryPrefix>
|
<CountryPrefix>
|
||||||
<PrefixList>^FR.*</PrefixList>
|
<PrefixList>^FR.*|^TO974REF</PrefixList>
|
||||||
<StartDate>1979-12-31T23:59:59Z</StartDate>
|
<StartDate>1979-12-31T23:59:59Z</StartDate>
|
||||||
<EndDate xsi:nil="true" />
|
<EndDate xsi:nil="true" />
|
||||||
</CountryPrefix>
|
</CountryPrefix>
|
||||||
|
@ -81,6 +81,6 @@ func sendToGotify(mess GotifyMessage) {
|
|||||||
if resp.StatusCode != http.StatusOK {
|
if resp.StatusCode != http.StatusOK {
|
||||||
Log.Errorln("Gotify server returned non-OK status:", resp.Status)
|
Log.Errorln("Gotify server returned non-OK status:", resp.Status)
|
||||||
} else {
|
} else {
|
||||||
Log.Println("Push successfully sent to Gotify")
|
Log.Debugln("Push successfully sent to Gotify")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
2
main.go
2
main.go
@ -49,7 +49,7 @@ func main() {
|
|||||||
|
|
||||||
log.Infof("Gotify Push Enabled: %v", cfg.Gotify.Enable)
|
log.Infof("Gotify Push Enabled: %v", cfg.Gotify.Enable)
|
||||||
if 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
|
// Load country.xml to get all the DXCC number
|
||||||
|
Loading…
x
Reference in New Issue
Block a user