weather

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 Mapping

type Mapping struct {
	ModuleID string   `json:"moduleId"`
	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 Netatmo weather module 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 {
	ClientID      string    `json:"clientId"`
	ClientSecret  string    `json:"clientSecret"`
	Username      string    `json:"username"`
	Password      string    `json:"password"`
	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 {
	Type     string `json:"type"`
	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