chbl/weather

Module for the weatherservice.

Installs: 6

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/chbl/weather

v2.0.3 2020-12-04 13:57 UTC

This package is auto-updated.

Last update: 2025-10-05 00:36:58 UTC


README

Scrutinizer Code Quality Code Coverage Build Status Build Status CircleCI

Weather module for Anax (used in the ramverk1 repo)

A module to use in the course ramverk1, using PHP framework Anax.

Installation

composer require chbl/weather

`make install

make install test`

To run the tests use make test, but please remember to add you APIkeys first.

Instructions further down!

Copy configuration

rsync -av vendor/chbl/weather/config/ config/

rsync -av vendor/chbl/weather/src/ src/

rsync -av vendor/chbl/weather/test/ test/

rsync -av vendor/chbl/weather/view/ view/

Add your personal API keys

Create the files weatherapi.php and apikey.php in the config/ folder,

paste in the following in weatherapi.php and change xxx to your apikeys.

`<?php

return [

"weatherKeyHolder" => [

    "weatherKey" => "xxx",

    "mapboxKey" => "xxx"

]

];`

For your GetGeolocation API, do the same but use the following code, and paste into apikey.php,

`<?php

return [ "keyHolder" => [ "apiKey" => "x" ] ]; `

Structure

The weather service will be available at /weather and the ip service will be available at /validate