jafo232/ambientapi

A package for ambient api

1.04 2018-01-26 14:17 UTC

This package is auto-updated.

Last update: 2024-04-08 10:24:27 UTC


README

Laravel Package For Accessing Ambient API. Currently their API is in beta, see this Facebook group for more information: https://www.facebook.com/search/top/?q=ambient%20weather%20network%20api

Install with composer:

composer require jafo232/ambientapi

Add to your providers in config/app.php:

jafo232\ambientapi\AmbientApiServiceProvider::class,

Add to your aliases:

'Ambient' => jafo232\ambientapi\AmbientApiFacade::class,

Publish the config file:

php artisan vendor:publish

You can edit the config/ambient.php directly or edit your .env file and add:

AMBIENT_APPLICATION_KEY=YOUR_APPLICATION_KEY_HERE

AMBIENT_API_KEY=YOUR_API_KEY_HERE

Make sure you add your real keys.

Once you have configured you .env file, you can test like so:

artisan command:test_ambient

The Example.php file in the commands folder shows you how to access devices