Skip to content

Latest commit

 

History

History
20 lines (15 loc) · 1.12 KB

README.md

File metadata and controls

20 lines (15 loc) · 1.12 KB

Weather Logic Module for Peda Automation

This module uses the forecast.io api to gather information about the weather.

Receiving an API-Key

The weather plugin needs a forecast.io api key. You can get one here. Very awesome: You have 1,000 free api calls per day.

Setting up the plugin (will change soon)

Install the plugin on your slave as usual und set the environment variable FORECAST_API_KEY to your api key. You may also set DEFAULT_WEATHER_PLACE to your home location.

Commands

You can find the exact commands for your language in /lib/i18n/yourlng.json

  • How is the weather? - Returns the current weather (short summary and temperature) at DEFAULT_WEATHER_PLACE
  • What is the weather on (day of week)? - Returns a prediction of weather at DEFAULT_WEATHER_PLACE
  • What is the weather in (place)? - Returns the current weather at the specified place.
  • What is the weather on (day of week) in (place)? - Returns a prediction of weather at the specified place.

Example: What is the weather on monday in Frankfurt? The answer will be something like: Partly cloudy at 14.54 °C