internal

package
v0.0.0-...-cb6734b Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2024 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConnectToInverter

func ConnectToInverter(inverterUrl string)

Types

type TibberResult

type TibberResult struct {
	Viewer struct {
		Homes []struct {
			CurrentSubscription struct {
				PriceInfo struct {
					Current struct {
						Total    float32
						Energy   float32
						Tax      float32
						StartsAt time.Time
					}
					Today []struct {
						Total    float32
						Energy   float32
						Tax      float32
						StartsAt time.Time
					}
					Tomorrow []struct {
						Total    float32
						Energy   float32
						Tax      float32
						StartsAt time.Time
					}
				}
			}
		}
	}
}

func GetPriceForecast

func GetPriceForecast(tibberApiUrl string, apiToken string) (TibberResult, bool)

Jump to

Keyboard shortcuts

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