joeri-abbo/laravel-dashboard-buienradar-tile

Render buienradar tile on your dashboard


README

Latest Version on Packagist GitHub Tests Action Status Total Downloads

This tile adds support to show buienradar widgets on your dashboard

This tile can be used on [the Laravel Dashboard](https://docs.spatie.be/laravel-dashboard).

Installation

You can install the package via composer:

composer require joeri-abbo/laravel-dashboard-buienradar-tile

Usage

In your dashboard view you use the livewire:buienradar component. There are 3 variants of the widget.

  • The first one is global overview of the netherlands.
  • the second one is a overview oth the netherlands with a overview of the predicted weather.
  • And the third one supports a map with a focus point. Based on lng and lat it shows the map. Optinal parameter is zoom for the zoom value. This int is default set to 8
<x-dashboard>
    <livewire:buienradar position="a1" type="{{\JoeriAbbo\Buienradar\BuienradarServiceProvider::TYPE_IMAGE}}"/>
    <livewire:buienradar position="b1" type="{{\JoeriAbbo\Buienradar\BuienradarServiceProvider::TYPE_OVERVIEW}}"/>
    <livewire:buienradar position="c1" lat="51.84437" lng="4.16303"
                         type="{{\JoeriAbbo\Buienradar\BuienradarServiceProvider::TYPE_MAP}}"/>
</x-dashboard>

Testing

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

License

The MIT License (MIT). Please see License File for more information.