Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

A tile to display the status of PingPing Monitors

License

NotificationsYou must be signed in to change notification settings

Astrotomic/laravel-dashboard-pingping-tile

Repository files navigation

Screenshot of Dashboard Tile

Latest VersionMIT LicenseOffset EarthLarabelles

GitHub Workflow StatusStyleCI

Total DownloadsOpen Collective

This tile can be used on theLaravel Dashboard to display the status ofPingPing Monitors.

Installation

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();}

Usage

In your dashboard view you use thelivewire:pingping-tile component.

<x-dashboard><livewire:pingping-tileposition="a1"/></x-dashboard>

Customizing the view

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"

Testing

composertest

Changelog

Please seeCHANGELOG for more information on what has changed recently.

Contributing

Please seeCONTRIBUTING for details. You could also be interested inCODE OF CONDUCT.

Security

If you discover any security related issues, please checkSECURITY for steps to report it.

Credits

License

The MIT License (MIT). Please seeLicense file for more information.

Treeware

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

Sponsor this project

  •  

Packages

No packages published

Contributors3

  •  
  •  
  •  

[8]ページ先頭

©2009-2025 Movatter.jp