jonlynch/ laravel-dashboard-meraki-tile
一个用于显示Meraki设备和客户端状态的包
V1.1.1
2024-01-17 19:04 UTC
Requires
- php: >=7.4
- spatie/laravel-dashboard: >=1.0 <3.0
Requires (Dev)
- phpunit/phpunit: ^9.0
README
一个用于显示来自Cisco Meraki云的设备和客户端状态的瓷砖。
此瓷砖可以在Laravel Dashboard上使用。
安装
您可以通过composer安装此包
$ composer require jonlynch/laravel-dashboard-meraki-tile
用法
在您的仪表板视图中,您使用livewire:meraki-tile
组件。
<x-dashboard> <livewire:meraki-tile position="a1:a12" /> </x-dashboard>
将配置添加到您的config/dashboard.php
文件的瓷砖部分
// in config/dashboard.php return [ // ... tiles => [ 'meraki' => [ 'api_key' => env('MERAKI_API_KEY'), 'organisation_id' => env('MERAKI_ORG_ID'), 'configurations' => [ // one for each device you are interested in [ 'display_name' => 'Site 1', 'device_name' => 'Site 1', // as used in the Meraki Cloud 'client' => '00:0e:06:00:22:22', 'radio_link' => true // Add this if there is a radio link instead of Xtend ], [ 'display_name' => 'Site 2', 'device_name' => 'Site 2', // as used in the Meraki Cloud 'client' => '00:0e:06:00:11:11', ] ] ] ]
在app\Console\Kernel.php
中,您应该安排JonLynch\MerakiTile\Commands\FetchMerakiDataCommand
每分钟运行一次。
// in app\Console\Kernel.php protected function schedule(Schedule $schedule) { $schedule->command(\JonLynch\MerakiTile\Commands\FetchMerakiDataCommand::class)->everyMinute(); }
更新日志
有关最近更改的更多信息,请参阅更新日志。
贡献
有关详细信息,请参阅贡献。
安全
如果您发现任何与安全相关的问题,请通过:author_email发送电子邮件,而不是使用问题跟踪器。
鸣谢
许可协议
MIT许可协议(MIT)。有关更多信息,请参阅许可文件。