Discover Packages
github.com/hatstand/shinywaffle
wirelesstag
package
Version:
v0.0.0-...-ea4ac85
Opens a new window with list of versions in this module.
Published: Dec 2, 2024
License: MIT
Opens a new window with license information.
Imports: 15
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
View Source
const (
GetHourlyStatsURL = "https://www.mytaglist.com/ethLogs.asmx/GetHourlyStats"
)
type Stat struct {
Date string `json:"date"`
IDs []int `json:"ids"`
Values [][]float64 `json:"values"`
}
type StatsRequest struct {
IDs []int `json:"ids"`
Type string `json:"type"`
}
type StatsResponseData struct {
Stats []Stat `json:"stats"`
IDs []int `json:"ids"`
Names []string `json:"names"`
}
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"`
}
type TagList struct {
Tag []Tag `json:"d"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.