Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/stephenyeargin/hubot-openweathermap
☔️🌡️ Get current weather from OpenWeatherMap
https://github.com/stephenyeargin/hubot-openweathermap
hubot hubot-scripts national-weather-service openweathermap-api
Last synced: 15 days ago
JSON representation
☔️🌡️ Get current weather from OpenWeatherMap
- Host: GitHub
- URL: https://github.com/stephenyeargin/hubot-openweathermap
- Owner: stephenyeargin
- License: mit
- Created: 2023-12-26T17:21:10.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-03-30T03:43:59.000Z (9 months ago)
- Last Synced: 2024-05-01T20:07:22.527Z (8 months ago)
- Topics: hubot, hubot-scripts, national-weather-service, openweathermap-api
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/@stephenyeargin/hubot-openweathermap
- Size: 317 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# OpenWeatherMap for Hubot
Retrieves the current conditions for a configured location or by query.
[![npm version](https://badge.fury.io/js/@stephenyeargin%2Fhubot-openweathermap.svg)](https://badge.fury.io/js/@stephenyeargin%2Fhubot-openweathermap) [![Node CI](https://github.com/stephenyeargin/hubot-openweathermap/actions/workflows/nodejs.yml/badge.svg)](https://github.com/stephenyeargin/hubot-openweathermap/actions/workflows/nodejs.yml)
## Installation
In your hubot repository, run:
`npm install @stephenyeargin/hubot-openweathermap --save`
Then add **@stephenyeargin/hubot-openweathermap** to your `external-scripts.json`:
```json
[
"@stephenyeargin/hubot-openweathermap"
]
```### Configuration
| Environment Variables | Required? | Description |
| ------------------------ | :-------: | ---------------------------------------- |
| `HUBOT_OPEN_WEATHER_MAP_API_KEY` | Yes | API key from the developer console |
| `HUBOT_DEFAULT_LATITUDE` | No | Latitude for default query of `hubot weather` |
| `HUBOT_DEFAULT_LONGITUDE` | No | Longitude for default query of `hubot weather` |## Usage
```
user1> hubot weather
hubot> Currently scattered clouds and 49F/10C in Nashville
```### Slack
![screenshot](./screenshot.png)