foobot

package
v0.0.0-...-e64aa6a Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2018 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FoobotJSON

type FoobotJSON struct {
	UUID       string      `json:"uuid"`
	Start      int64       `json:"start"`
	End        int64       `json:"end"`
	Sensors    []string    `json:"sensors"`
	Units      []string    `json:"units"`
	Datapoints [][]float64 `json:"datapoints"`
}

FoobotJSON response from Foobot api

type Mapping

type Mapping struct {
	UUID    string   `json:"uuid"`
	Name    string   `json:"name"`
	Server  string   `json:"server"`
	Streams []Stream `json:"streams"`
}

Mapping contains information about the link between the netatmo stations, sensors and datastreams

type Module

type Module struct {
	module.ConnectorModuleBase
	// contains filtered or unexported fields
}

Module adds support for publishing Foobot air quality readings to a SensorThings server

func (*Module) Setup

func (m *Module) Setup() error

Setup initialised the module by setting some default values

func (*Module) Start

func (m *Module) Start(initStartup bool) error

Start receiving Netatmo readings and publish it to a SensorThings server

func (*Module) Stop

func (m *Module) Stop()

Stop receiving Netatmo readings

type Settings

type Settings struct {
	SecretKey     string    `json:"secretKey"`
	FetchInterval int       `json:"fetchIntervalSeconds"`
	Mappings      []Mapping `json:"mappings"`
}

Settings contains information on Netatmo login and sensor reading to datastream mappings

type Stream

type Stream struct {
	Sensor   string `json:"sensor"`
	StreamID string `json:"streamId"`
}

Stream Netatmo type to SensorThings stream

Jump to

Keyboard shortcuts

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