bathaq

package module
v0.0.0-...-1591aef Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2017 License: MIT Imports: 10 Imported by: 0

README

Bath Air Quality

A Thingful fetcher for getting data from the almost real time air monitoring stations in Bath, UK.

This project is licensed under the terms of the MIT license.

Documentation

Overview

Package bathaq is a fetcher implementation that collects air quality data from monitoring stations Bath, UK.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewIndexer

func NewIndexer() (thingfulx.Indexer, error)

NewIndexer instantiates a new Indexer instance. All fetchers must try to load any required config values from namespaced environment variables.

Types

type Station

type Station struct {
	Location     location `json:"sensor_location"`
	Nox          string   `json:"nox"`
	No2          string   `json:"no2"`
	No           string   `json:"no"`
	Pm10         string   `json:"pm10"`
	Co           string   `json:"co"`
	LocationName string   `json:"sensor_location_name"`
	Datetime     string   `json:"datetime"`
	Slug         string   `json:"sensor_location_slug"`
}

Station struct can parse an individual station data object

type Stations

type Stations struct {
	Name string `json:"title"`
}

Stations struct can parse stations data and store their names

Jump to

Keyboard shortcuts

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