joeri-abbo / laravel-dashboard-buienradar-tile
Render buienradar tile on your dashboard
Installs: 10
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 4
Language:JavaScript
Requires
- spatie/laravel-dashboard: ^2.0
Requires (Dev)
- phpunit/phpunit: ^9.3
- squizlabs/php_codesniffer: ^3.6.2
This package is auto-updated.
Last update: 2025-03-06 02:22:27 UTC
README
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.