up
This commit is contained in:
@@ -150,10 +150,10 @@ func (c *TCPClient) ReadLine() {
|
||||
Log.Debug("Found login prompt...sending callsign")
|
||||
c.Write([]byte(c.Login + "\r\n"))
|
||||
c.LoggedIn = true
|
||||
// c.SetFilters()
|
||||
// if Cfg.Cluster.Command != "" {
|
||||
// c.WriteString(Cfg.Cluster.Command + "\n\r")
|
||||
// }
|
||||
c.SetFilters()
|
||||
if Cfg.Cluster.Command != "" {
|
||||
c.WriteString(Cfg.Cluster.Command + "\n\r")
|
||||
}
|
||||
Log.Infof("Connected to DX cluster %s:%s", Cfg.Cluster.Server, Cfg.Cluster.Port)
|
||||
Log.Info("Start receiving spots")
|
||||
continue
|
||||
|
@@ -16,24 +16,24 @@ database:
|
||||
sqlite:
|
||||
sqlite_path: 'C:\Perso\Seafile\Radio\Logs\Log4OM\F4BPO.SQLite' # SQLite Db oath of Log4OM
|
||||
cluster:
|
||||
server: cluster.f4bpo.com # dxc.k0xm.net dxc.sm7iun.se
|
||||
server: dxc.sm7iun.se # dxc.k0xm.net dxc.sm7iun.se
|
||||
port: 7300
|
||||
login: f4bpo
|
||||
password: 89DGgg
|
||||
skimmer: true
|
||||
ft8: false
|
||||
ft4: false
|
||||
command:
|
||||
command: "SET/NOFILTER" #"SET/FILTER DOC/PASS EA,OH,G,F,DL,I,SV,9A,SK,S5,LX,OE,HA,CT"
|
||||
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
|
||||
ip: 192.168.2.131 # if discovery is true no need to put an IP
|
||||
spot_life: 600 #seconds
|
||||
telnetserver: # Log4OM must be connected to this server ie: localhost:7301 if on same machine as this program else ip:7301
|
||||
host: 0.0.0.0
|
||||
port: 7301
|
||||
gotify:
|
||||
enable: false
|
||||
enable: true
|
||||
url: https://gotify.rouggy.com/message
|
||||
token: ALaGS4MVMWTEMcP
|
||||
NewDXCC: true
|
||||
|
@@ -8274,7 +8274,7 @@
|
||||
<CountryTag />
|
||||
<CountryPrefixList>
|
||||
<CountryPrefix>
|
||||
<PrefixList>^4U/I.*</PrefixList>
|
||||
<PrefixList>^4U0ITU|4U0ITU</PrefixList>
|
||||
<StartDate>1962-06-01T00:00:00Z</StartDate>
|
||||
<EndDate xsi:nil="true" />
|
||||
</CountryPrefix>
|
||||
|
@@ -5,6 +5,7 @@ import (
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"net/http"
|
||||
"strings"
|
||||
)
|
||||
|
||||
type GotifyMessage struct {
|
||||
@@ -15,9 +16,11 @@ type GotifyMessage struct {
|
||||
|
||||
func Gotify(spot FlexSpot) {
|
||||
|
||||
if Cfg.Gotify.Enable {
|
||||
ExceptionList := "4U1UN 5Z4B OH2B CS3B"
|
||||
|
||||
message := fmt.Sprintf("DX: %s\nFrom: %s\nFreq: %s\nMode: %s\n", spot.DX, spot.Source, spot.FrequencyMhz, spot.Mode)
|
||||
if Cfg.Gotify.Enable && !strings.Contains(ExceptionList, spot.DX) {
|
||||
|
||||
message := fmt.Sprintf("DX: %s\nFrom: %s\nFreq: %s\nMode: %s\nTime: %s\n", spot.DX, spot.SpotterCallsign, spot.FrequencyMhz, spot.Mode, spot.TimeStamp)
|
||||
|
||||
gotifyMsg := GotifyMessage{
|
||||
Title: "",
|
||||
|
Reference in New Issue
Block a user