wirelesstag

package
v0.0.0-...-ea4ac85 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 2, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GetHourlyStatsURL = "https://www.mytaglist.com/ethLogs.asmx/GetHourlyStats"
)

Variables

This section is empty.

Functions

func GetLogs

func GetLogs(clientId string, clientSecret string) (map[string]map[string][]float64, error)

Types

type Stat

type Stat struct {
	Date   string      `json:"date"`
	IDs    []int       `json:"ids"`
	Values [][]float64 `json:"values"`
}

type StatsRequest

type StatsRequest struct {
	IDs  []int  `json:"ids"`
	Type string `json:"type"`
}

type StatsResponse

type StatsResponse struct {
	Data StatsResponseData `json:"d"`
}

type StatsResponseData

type StatsResponseData struct {
	Stats []Stat   `json:"stats"`
	IDs   []int    `json:"ids"`
	Names []string `json:"names"`
}

type Tag

type Tag struct {
	Name             string  `json:"name"`
	Temperature      float64 `json:"temperature"`
	UUID             string  `json:"uuid"`
	SignaldBm        float64 `json:"signaldBm"`
	BatteryRemaining float64 `json:"batteryRemaining"`
	Humidity         float64 `json:"cap"`
	Type             int     `json:"tagType"`
	ID               int     `json:"slaveId"`
}

func GetTags

func GetTags() ([]Tag, error)

type TagList

type TagList struct {
	Tag []Tag `json:"d"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL