openweathermapbee

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2020 License: AGPL-3.0 Imports: 2 Imported by: 1

README

Openweathermapbee

Available languages

English - en, Russian - ru, Italian - it, Spanish - es (or sp), Ukrainian - uk (or ua), German - de, Portuguese - pt, Romanian - ro, Polish - pl, Finnish - fi, Dutch - nl, French - fr, Bulgarian - bg, Swedish - sv (or se), Chinese Traditional - zh_tw, Chinese Simplified - zh (or zh_cn), Turkish - tr, Croatian - hr, Catalan - ca

Multiple Measurement Systems Available

Fahrenheit (OpenWeatherMap API - imperial) Celcius (OpenWeatherMap API - metric) Kelvin (OpenWeatherMap API - internal)


To use the OpenweatherMap API, you'll need to obtain an API key. Sign up here.

Documentation

Overview

Package openweathermapbee is a Bee that can interact with cleverbot

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OpenweathermapBee

type OpenweathermapBee struct {
	bees.Bee
	// contains filtered or unexported fields
}

OpenweathermapBee is a Bee that can chat with cleverbot

func (*OpenweathermapBee) Action

func (mod *OpenweathermapBee) Action(action bees.Action) []bees.Placeholder

Action triggers the action passed to it.

func (*OpenweathermapBee) ReloadOptions

func (mod *OpenweathermapBee) ReloadOptions(options bees.BeeOptions)

ReloadOptions parses the config options and initializes the Bee.

func (*OpenweathermapBee) Run

func (mod *OpenweathermapBee) Run(eventChan chan bees.Event)

Run executes the Bee's event loop.

func (*OpenweathermapBee) TriggerCurrentWeatherEvent

func (mod *OpenweathermapBee) TriggerCurrentWeatherEvent()

TriggerCurrentWeatherEvent triggers all current weather events

func (*OpenweathermapBee) TriggerWeatherInformationEvent

func (mod *OpenweathermapBee) TriggerWeatherInformationEvent(v *owm.Weather)

WeatherInformationEvent triggers a weather event

type OpenweathermapBeeFactory

type OpenweathermapBeeFactory struct {
	bees.BeeFactory
}

OpenweathermapBeeFactory is a factory for openweathermapbees

func (*OpenweathermapBeeFactory) Actions

func (factory *OpenweathermapBeeFactory) Actions() []bees.ActionDescriptor

Actions describes the available actions provided by this Bee.

func (*OpenweathermapBeeFactory) Description

func (factory *OpenweathermapBeeFactory) Description() string

Description returns the description of this Bee.

func (*OpenweathermapBeeFactory) Events

func (factory *OpenweathermapBeeFactory) Events() []bees.EventDescriptor

Events describes the available events provided by this Bee.

func (*OpenweathermapBeeFactory) ID

func (factory *OpenweathermapBeeFactory) ID() string

ID returns the ID of this Bee.

func (*OpenweathermapBeeFactory) Image

func (factory *OpenweathermapBeeFactory) Image() string

Image returns the filename of an image for this Bee.

func (*OpenweathermapBeeFactory) LogoColor

func (factory *OpenweathermapBeeFactory) LogoColor() string

LogoColor returns the preferred logo background color (used by the admin interface).

func (*OpenweathermapBeeFactory) Name

func (factory *OpenweathermapBeeFactory) Name() string

Name returns the name of this Bee.

func (*OpenweathermapBeeFactory) New

func (factory *OpenweathermapBeeFactory) New(name, description string, options bees.BeeOptions) bees.BeeInterface

New returns a new Bee instance configured with the supplied options.

func (*OpenweathermapBeeFactory) Options

func (factory *OpenweathermapBeeFactory) Options() []bees.BeeOptionDescriptor

Options returns the options available to configure this Bee.

Jump to

Keyboard shortcuts

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