Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork0
A tile to display the status of PingPing Monitors
License
Astrotomic/laravel-dashboard-pingping-tile
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
This tile can be used on theLaravel Dashboard to display the status ofPingPing Monitors.
You can install the package via composer:
composer require astrotomic/laravel-dashboard-pingping-tile
In thedashboard
config file, you must add this configuration in thetiles
key. Thestations
should contain the IDs of the PingPing stations that you want to display on the dashboard.
// in config/dashboard.phpreturn [// ...'tiles' => ['pingping' => ['api_key' =>'',// https://pingping.io/account/api'monitors' => [// IDs can be found in URL https://pingping.io/monitors/[0-9]+ ],'refresh_interval_in_seconds' =>60, ], ],];
Inapp\Console\Kernel.php
you should schedule the\Astrotomic\PingPingTile\FetchPingPingMonitorsCommand
to run. You can let it run every minute if you want. You could also run it less frequently if fast updates on the dashboard aren't that important for this tile.
// in app/console/Kernel.phpprotectedfunctionschedule(Schedule$schedule){// ...$schedule->command(\Astrotomic\PingPingTile\FetchPingPingMonitorsCommand::class)->everyMinute();}
In your dashboard view you use thelivewire:pingping-tile
component.
<x-dashboard><livewire:pingping-tileposition="a1"/></x-dashboard>
If you want to customize the view used to render this tile, run this command:
php artisan vendor:publish --provider="Astrotomic\PingPingTile\PingPingTileServiceProvider" --tag="dashboard-pingping-tile-views"
composertest
Please seeCHANGELOG for more information on what has changed recently.
Please seeCONTRIBUTING for details. You could also be interested inCODE OF CONDUCT.
If you discover any security related issues, please checkSECURITY for steps to report it.
The MIT License (MIT). Please seeLicense file for more information.
You're free to use this package, but if it makes it to your production environment I would highly appreciate you buying the world a tree.
It’s now common knowledge that one of the best tools to tackle the climate crisis and keep our temperatures from rising above 1.5C is toplant trees. If you contribute to my forest you’ll be creating employment for local families and restoring wildlife habitats.
You can buy trees atoffset.earth/treeware
Read more about Treeware attreeware.earth
About
A tile to display the status of PingPing Monitors
Topics
Resources
License
Code of conduct
Security policy
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Sponsor this project
Uh oh!
There was an error while loading.Please reload this page.
Packages0
Uh oh!
There was an error while loading.Please reload this page.
Contributors3
Uh oh!
There was an error while loading.Please reload this page.