This commit is contained in:
2025-07-30 21:13:15 +02:00
parent 4d5c810786
commit 170b5c7912
5 changed files with 15 additions and 12 deletions

View File

@@ -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: "",