Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

change name #3

Merged
merged 1 commit into from
Nov 1, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 4 additions & 7 deletions client.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
// Use of this source code is governed by an MIT-style
// license that can be found in the LICENSE file.

// Package ambient_weather_client is a client that can access the Ambient Weather
// network API and return device and weather data.
// Package awn is a client that can access the Ambient Weather network API and return
// device and weather data.
package awn

import (
Expand Down Expand Up @@ -50,9 +50,6 @@ const (
// retryMinWaitTimeSeconds An integer describing the minimum time to wait to retry
// an API call, in seconds.
retryMinWaitTimeSeconds = 5

// Version # of client
Version = "0.0.1"
)

// The ConvertTimeToEpoch help function can convert any Go time.Time object to a Unix epoch time in milliseconds.
Expand Down Expand Up @@ -196,8 +193,8 @@ func CheckReturn(err error, msg string, level LogLevelForError) {
}
}

// CheckResponse is a helper function that will take an API response and evaluate it for
// for any errors that might have occurred. The API specification does not publish all of
// CheckResponse is a helper function that will take an API response and evaluate it
// for any errors that might have occurred. The API specification does not publish all
// the possible error messages, but these are what I have found so far.
func CheckResponse(resp map[string]string) bool {
message, ok := resp["error"]
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 github.com/d-dot-one/ambient-weather-client
module github.com/d-dot-one/awn

go 1.21.3

Expand Down
Loading