service

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2023 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FetchTomorrowPrices

func FetchTomorrowPrices(token string) ([]tibber.Price, error)

Types

type HourResult

type HourResult struct {
	Hour    int
	Enabled bool
}

type PriceResult

type PriceResult struct {
	Date       time.Time
	HourResult []HourResult
}

func CalculateCheapestPrices

func CalculateCheapestPrices(activeHours int, forcedHours []int, prices []tibber.Price) PriceResult

Jump to

Keyboard shortcuts

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