Skip to content

Drupal module that implements OpenWeather One Call 3.0 API as a service.

License

Notifications You must be signed in to change notification settings

r0nn1ef/ow_onecall

Repository files navigation

INTRODUCTION

The OpenWeather API module is implements the OpenWeather One Call API 3.0 as a Service. By itself, this module does nothing and other modules should use it to connect and query the One Call API.

Once complete, this module will be moved to Drupal.org as a community module. Currently, there are no tests which is recommended for contrib modules.

REQUIREMENTS

There are no other module dependencies for this module.

You will need an API key from openweathermap.org to access the API.

INSTALLATION

The recommended method of installation is using composer. Before you can add this module to your project, you will need to first add this repository to your composer.json file under the "repositories" section. The code below demonstrates how to do this.

"repositories": [
    ... ,
    {
        "type": "vcs",
        "url": "https://github.com/r0nn1ef/ow_onecall.git"
    }
]

Once you have the repository added, you can add the module using composer require drupal/ow_onecall:@beta

CONFIGURATION

  • To enter your API key, navigate to /admin/config/services/openweather.

USAGE NOTES

  • When doing geocoding for cities in the United Kingdom, you MUST use 'GB' for Great Britain instead or no results will be returned.

ROADMAP

  • Make api key optionally stored in either the database or in a .evn file. 🎉

MAINTAINERS

Current maintainers for Drupal 10 and 11:

About

Drupal module that implements OpenWeather One Call 3.0 API as a service.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages