https://github.com/ftl/godxmap
Integrate HamDXMap to display locations and other things on the map
https://github.com/ftl/godxmap
Last synced: 4 months ago
JSON representation
Integrate HamDXMap to display locations and other things on the map
- Host: GitHub
- URL: https://github.com/ftl/godxmap
- Owner: ftl
- License: mit
- Created: 2024-05-28T22:32:33.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2024-12-22T17:27:16.000Z (7 months ago)
- Last Synced: 2025-01-17T17:14:49.373Z (6 months ago)
- Language: Go
- Size: 4.88 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# goDXMap
This is a simple Go library to integrate with [F5UUI's HamDXMap](https://dxmap.f5uii.net/). It opens a websocket and allows to display different things on the map, using the [wtSock protocol](https://dxmap.f5uii.net/help/index.html).## Example
```go
// see also ./example/main.go
func main() {
server := godxmap.NewServer(":12345")go serveCallsigns(server)
err := server.Serve()
if err != nil && err != http.ErrServerClosed {
log.Fatal(err)
}
}func serveCallsigns(server *godxmap.Server) {
callsigns := []string{"F5UII", "W1AW", "PY1PY", "DL3NEY", "ZL2CTM"}
for _, callsign := range callsigns {
time.Sleep(10 * time.Second)
server.ShowPartialCall(callsign)
}
err := server.Close()
if err != nil {
log.Printf("error closing the server: %v", err)
}
}
```## License
This library is published under the [MIT License](https://www.tldrlegal.com/l/mit).Copyright [Florian Thienel](http://thecodingflow.com/)