Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ftl/godxmap
Integrate HamDXMap to display locations and other things on the map
https://github.com/ftl/godxmap
Last synced: 1 day 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 (6 months ago)
- Default Branch: master
- Last Pushed: 2024-05-29T15:30:08.000Z (6 months ago)
- Last Synced: 2024-06-20T04:53:02.732Z (5 months ago)
- Language: Go
- Size: 3.91 KB
- Stars: 0
- 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/)