Version: v0.0.0-...-d994f4f Latest Latest

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

Go to latest
Published: Jul 7, 2020 License: Apache-2.0 Imports: 1 Imported by: 0




This section is empty.


This section is empty.


This section is empty.


type XovisContent

type XovisContent struct {
	Element []XovisElement `json:"element"`

XovisContent - content

type XovisElement

type XovisElement struct {
	ElementID   int                `json:"element-id"`
	ElementName string             `json:"element-name"`
	ElementType string             `json:"element-type"`
	DataType    string             `json:"data-type"`
	From        time.Time          `json:"from"`
	To          time.Time          `json:"to"`
	Resolution  string             `json:"resolution"`
	Measurement []XovisMeasurement `json:"mesurement"`

XovisElement - elements

type XovisMeasurement

type XovisMeasurement struct {
	From  time.Time    `json:"from"`
	To    time.Time    `json:"to"`
	Value []XovisValue `json:"value"`

XovisMeasurement -measurements

type XovisMessage

type XovisMessage struct {
	SensorTime XovisSensorTime `json:"sensor-time"`
	Status     XovisStatus     `json:"status"`
	Content    XovisContent    `json:"content"`
	SensorINfo XovisSensorInfo `json:"sensor-info"`

XovisMessage - Xovis MQTT message format

type XovisSensorInfo

type XovisSensorInfo struct {
	SerialNumber string `json:"serial-number"`
	IPAddress    string `json:"ip-address"`
	Name         string `json:"name"`
	Group        string `json:"group"`
	DeviceType   string `json:"device-type"`

XovisSensorInfo - sensor information

type XovisSensorTime

type XovisSensorTime struct {
	TimeZone string    `json:"timezone"`
	Time     time.Time `json:"time"`

XovisSensorTime - time structure

type XovisStatus

type XovisStatus struct {
	Code string `json:"code"`

XovisStatus - status code

type XovisValue

type XovisValue struct {
	Value int    `json:"value"`
	Label string `json:"label"`

XovisValue - values

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL