up
This commit is contained in:
@@ -150,10 +150,10 @@ func (c *TCPClient) ReadLine() {
|
|||||||
Log.Debug("Found login prompt...sending callsign")
|
Log.Debug("Found login prompt...sending callsign")
|
||||||
c.Write([]byte(c.Login + "\r\n"))
|
c.Write([]byte(c.Login + "\r\n"))
|
||||||
c.LoggedIn = true
|
c.LoggedIn = true
|
||||||
// c.SetFilters()
|
c.SetFilters()
|
||||||
// if Cfg.Cluster.Command != "" {
|
if Cfg.Cluster.Command != "" {
|
||||||
// c.WriteString(Cfg.Cluster.Command + "\n\r")
|
c.WriteString(Cfg.Cluster.Command + "\n\r")
|
||||||
// }
|
}
|
||||||
Log.Infof("Connected to DX cluster %s:%s", Cfg.Cluster.Server, Cfg.Cluster.Port)
|
Log.Infof("Connected to DX cluster %s:%s", Cfg.Cluster.Server, Cfg.Cluster.Port)
|
||||||
Log.Info("Start receiving spots")
|
Log.Info("Start receiving spots")
|
||||||
continue
|
continue
|
||||||
|
@@ -16,24 +16,24 @@ database:
|
|||||||
sqlite:
|
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
|
||||||
cluster:
|
cluster:
|
||||||
server: cluster.f4bpo.com # dxc.k0xm.net dxc.sm7iun.se
|
server: dxc.sm7iun.se # dxc.k0xm.net dxc.sm7iun.se
|
||||||
port: 7300
|
port: 7300
|
||||||
login: f4bpo
|
login: f4bpo
|
||||||
password: 89DGgg
|
password: 89DGgg
|
||||||
skimmer: true
|
skimmer: true
|
||||||
ft8: false
|
ft8: false
|
||||||
ft4: 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:"
|
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: 192.168.2.131 # if discovery is true no need to put an IP
|
||||||
spot_life: 600 #seconds
|
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
|
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
|
host: 0.0.0.0
|
||||||
port: 7301
|
port: 7301
|
||||||
gotify:
|
gotify:
|
||||||
enable: false
|
enable: true
|
||||||
url: https://gotify.rouggy.com/message
|
url: https://gotify.rouggy.com/message
|
||||||
token: ALaGS4MVMWTEMcP
|
token: ALaGS4MVMWTEMcP
|
||||||
NewDXCC: true
|
NewDXCC: true
|
||||||
|
@@ -8274,7 +8274,7 @@
|
|||||||
<CountryTag />
|
<CountryTag />
|
||||||
<CountryPrefixList>
|
<CountryPrefixList>
|
||||||
<CountryPrefix>
|
<CountryPrefix>
|
||||||
<PrefixList>^4U/I.*</PrefixList>
|
<PrefixList>^4U0ITU|4U0ITU</PrefixList>
|
||||||
<StartDate>1962-06-01T00:00:00Z</StartDate>
|
<StartDate>1962-06-01T00:00:00Z</StartDate>
|
||||||
<EndDate xsi:nil="true" />
|
<EndDate xsi:nil="true" />
|
||||||
</CountryPrefix>
|
</CountryPrefix>
|
||||||
|
@@ -5,6 +5,7 @@ import (
|
|||||||
"encoding/json"
|
"encoding/json"
|
||||||
"fmt"
|
"fmt"
|
||||||
"net/http"
|
"net/http"
|
||||||
|
"strings"
|
||||||
)
|
)
|
||||||
|
|
||||||
type GotifyMessage struct {
|
type GotifyMessage struct {
|
||||||
@@ -15,9 +16,11 @@ type GotifyMessage struct {
|
|||||||
|
|
||||||
func Gotify(spot FlexSpot) {
|
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{
|
gotifyMsg := GotifyMessage{
|
||||||
Title: "",
|
Title: "",
|
||||||
|
2
main.go
2
main.go
@@ -42,7 +42,7 @@ func main() {
|
|||||||
cfg := NewConfig(cfgPath)
|
cfg := NewConfig(cfgPath)
|
||||||
|
|
||||||
log := NewLog()
|
log := NewLog()
|
||||||
log.Info("Running FlexDXCluster version 0.6")
|
log.Info("Running FlexDXCluster version 0.7")
|
||||||
log.Infof("Callsign: %s", cfg.General.Callsign)
|
log.Infof("Callsign: %s", cfg.General.Callsign)
|
||||||
|
|
||||||
DeleteDatabase("./flex.sqlite", log)
|
DeleteDatabase("./flex.sqlite", log)
|
||||||
|
Reference in New Issue
Block a user