carolus

package
v0.0.0-...-441f3cd Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Url = "https://carolus-thermen.de/auslastung/"
)

Variables

View Source
var Coordinate = cfac.Coordinate{
	Latitude:  50.782993,
	Longitude: 6.097059,
}

Functions

func FetchOccupancy

func FetchOccupancy(c *colly.Collector, cb Callback, ecb cfac.ErrorCallback) *sync.WaitGroup

func NewMeasurable

func NewMeasurable() cfac.Measurable

Types

type Callback

type Callback func(o Occupancy)

type Measurable

type Measurable struct{}

func (*Measurable) Fetch

func (m *Measurable) Fetch(c *colly.Collector, cb cfac.MeasurementCallback, ecb cfac.ErrorCallback) *sync.WaitGroup

type Occupancy

type Occupancy struct {
	ThermalBath cfac.Percent
	Sauna       cfac.Percent
	Parking     cfac.Percent
	LastUpdated time.Time
}

func (Occupancy) Measure

func (o Occupancy) Measure() []cfac.Measurement

Jump to

Keyboard shortcuts

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