influxdb

package
v0.0.0-...-efa8cb2 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(config Config) Client

func (Client) Close

func (c Client) Close()

func (Client) WriteTemperature

func (c Client) WriteTemperature(data Temperature)

type Config

type Config struct {
	Token  string `json:"token"`
	Url    string `json:"url"`
	Bucket string `json:"bucket"`
}

type Temperature

type Temperature struct {
	Room        string  `json:"room"`
	Temperature float64 `json:"temperature"`
	Humidity    int     `json:"humidity"`
	Battery     int     `json:"battery"`
	Co2         int     `json:"co2"`
}

Jump to

Keyboard shortcuts

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