olbe19 / weather
Anax weather module.
Installs: 4
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:framework
Requires
- php: >=7.4
- anax/commons: ^2.0.14
Requires (Dev)
- anax/anax: ^2.0.17
- anax/anax-ramverk1-me: ^1.0.0
- phpmetrics/phpmetrics: ^2
- phpunit/phpunit: ^7
README
Travis
Circle CI
Scrutinizer
Code climate
Codacy
Installation
Install by cloning repo or with composer.
git clone https://github.com/ollebergkvist/ramverk1-weather-module
or
composer require olbe19/weather
Setup
Set up the environment and install dependencies
composer install
chmod 777 cache/*
make install
bash vendor/olbe19/weather/.anax/scaffold/postprocess.d/001_olbe19_weather.
composer dump
API keys
Module utilizes 2 public API:s to function, IPStack and Openweathermap.
Add 2 files named "api_key_ip.txt" and "api_key_map.txt" to config/
containing your keys for Ipstack and Openweathermap respectively.
Navbar
Instructions how to mount the module in the navbar.
Add the Weather and API Documentation controllers to the navbar in config/navbar/header.php and config/navbar/responsive.php.
[
"text" => "Weather",
"url" => "weather",
"title" => "Weather",
],
[
"text" => "API Documentation",
"url" => "api",
"title" => "API Documentation",
],
Issues
Kindly open issues here.
https://github.com/ollebergkvist/ramverk1-weather-module/issues