jeneljenel/weather-module

This package is abandoned and no longer maintained. No replacement package was suggested.

A module for weather forecasts.

v1.0.10 2019-12-12 09:17 UTC

This package is auto-updated.

Last update: 2020-09-12 11:15:17 UTC


README

Build Status

Scrutinizer Code Quality Code Coverage Build Status Code Intelligence Status

CircleCI

WEATHER MODULE FOR ANAX

A weather forecast works with Anax framework. It is set up to use darksky.net. You have to have a valid api key.

Table of content

Install as Anax module

This is how you install the module into an existing Anax installation.

Install using composer.

composer require jeneljenel/weather-module

Configuration files

Copy the needed configuration and setup the module as a route handler for the route weather.

config, views

rsync -av vendor/jeneljenel/weather-module/config ./
rsync -av vendor/jeneljenel/weather-module/view/weather ./view

You have to create your own weather.php file. Copy /config/weather_sample.php

$ cd config
$ cp weather_sample.php weather.php
$ nano weather.php

Enter your valid apikey for darksky.net. Exit the texteditor with ctrl + x . Enter Y to save the chagnes. Click return to save the file.

Install using scaffold postprocessing file

The module supports a postprocessing installation script, to be used with Anax scaffolding. The script executes the default installation, as outlined above.

bash vendor/jeneljenel/weather-module/.anax/scaffold/postprocess.d/302_weather.bash

The postprocessing script should be run after the composer require is done.

Install and setup Anax

You need a Anax installation, before you can use this module. You can create a sample Anax installation, using the scaffolding utility anax-cli.

Scaffold a sample Anax installation anax-site-develop into the directory me.

$ anax create me anax-site-develop
$ cd me

Point your webserver to me/htdocs and Anax should display a Home-page.

Dependency

This is a Anax modulen and primarly intended to be used together with the Anax framework.

License

This software carries a MIT license. See LICENSE.txt for details.

Copyright (c) 2019 Tomie Lee