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: 6 months 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 (over 2 years ago)
- Default Branch: main
- Last Pushed: 2025-12-28T17:24:06.000Z (6 months ago)
- Last Synced: 2025-12-30T12:31:43.080Z (6 months ago)
- Topics: hubot, hubot-scripts, national-weather-service, openweathermap-api
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/@stephenyeargin/hubot-openweathermap
- Size: 175 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
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.
[](https://badge.fury.io/js/@stephenyeargin%2Fhubot-openweathermap) [](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
```
### Slack
