Skip to content

Commit

Permalink
rename to wxgate
Browse files Browse the repository at this point in the history
Signed-off-by: Jeremy Chase <[email protected]>
  • Loading branch information
jeremychase committed Mar 16, 2023
1 parent 048a5cd commit 6701483
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 16 deletions.
4 changes: 2 additions & 2 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
// README at: https://github.com/devcontainers/templates/tree/main/src/go
{
"name": "wxigate",
"name": "wxgate",
"build": {
// https://containers.dev/guide/dockerfile
// Path is relative to the devcontainer.json file.
Expand All @@ -25,7 +25,7 @@

// remoteEnv sets variables for VS Code and related sub-processes (terminals, tasks, debugging, etc.):
"remoteEnv": {
"GITHUB_TOKEN": "${localEnv:WXIGATE_DEVELOPMENT_GITHUB_TOKEN}"
"GITHUB_TOKEN": "${localEnv:WXGATE_DEVELOPMENT_GITHUB_TOKEN}"
}

// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
Expand Down
2 changes: 1 addition & 1 deletion .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ builds:

# BUG(low) investigate stripping. unclear if '-s -w' is optimal
ldflags:
- -s -w -X 'wxigate/cmd.Version={{ .Version }}'
- -s -w -X 'wxgate/cmd.Version={{ .Version }}'

archives:
- replacements:
Expand Down
4 changes: 2 additions & 2 deletions cmd/handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"os"
"strconv"
"time"
"wxigate/calcrain"
"wxgate/calcrain"

"github.com/ebarkie/aprs"
)
Expand All @@ -26,7 +26,7 @@ func awpHandlerV1(opts options) http.Handler {
// fmt.Sprintf("%s%s%s", aprs.SwName, aprs.SwVers, wx.Type)
//
// On aprs.fi a lowercase 'v%d' gets dropped, so that is why this is 'V'.
aprs.SwName = "wxigate-V"
aprs.SwName = "wxgate-V"
aprs.SwVers = Version

f := aprs.Frame{
Expand Down
4 changes: 2 additions & 2 deletions cmd/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"net"
"net/http"
"wxigate/requestlog"
"wxgate/requestlog"
)

func server(opts options) error {
Expand All @@ -18,7 +18,7 @@ func server(opts options) error {

// Routes
mux.HandleFunc("/", defaultHandler)
mux.Handle("/wxigate/awp/v1", awpHandlerV1(opts))
mux.Handle("/wxgate/awp/v1", awpHandlerV1(opts))

_, err = fmt.Printf("%s-%s %f %f listening on: %s\n", opts.callsign, opts.ssid, opts.longitude, opts.latitude, listener.Addr().String())
if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module wxigate
module wxgate

go 1.17

Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package main

import (
"os"
"wxigate/cmd"
"wxgate/cmd"
)

func main() {
Expand Down
10 changes: 5 additions & 5 deletions readme.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# Hello

`wxigate` is a commandline tool that can send weather data from Ambient Weather stations into the APRS-IS network.
`wxgate` is a commandline tool that can send weather data from Ambient Weather stations into the APRS-IS network.

## Software Setup

1. Download the binary from the releases.
1. Unarchive
1. Run it, for example:
```
./wxigate -callsign YOUR_CALL -latitude 12.345 -longitude "-12.345"
./wxgate -callsign YOUR_CALL -latitude 12.345 -longitude "-12.345"
```

## Weather Station setup
Expand All @@ -17,10 +17,10 @@
1. Go to "Device List"
1. Select the station you want data from.
1. Click 'next' until on the 'Customized' view.
1. Enter the IP or hostname of the machine running `wxigate`.
1. In `Path` enter `/wxigate/awp/v1?`
1. Enter the IP or hostname of the machine running `wxgate`.
1. In `Path` enter `/wxgate/awp/v1?`
1. Click 'Save'.
1. You should start seeing packets in the stdout of `wxigate`.
1. You should start seeing packets in the stdout of `wxgate`.

## Status

Expand Down
4 changes: 2 additions & 2 deletions release.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## Release

1. Use the vscode dev container terminal
1. The `WXIGATE_DEVELOPMENT_GITHUB_TOKEN` env var must be exported for `code`
1. `GITHUB_TOKEN` should now match `WXIGATE_DEVELOPMENT_GITHUB_TOKEN`
1. The `WXGATE_DEVELOPMENT_GITHUB_TOKEN` env var must be exported for `code`
1. `GITHUB_TOKEN` should now match `WXGATE_DEVELOPMENT_GITHUB_TOKEN`
2. Perform [goreleaser instructions](https://goreleaser.com/quick-start/).

0 comments on commit 6701483

Please sign in to comment.