定制 jonlynch/laravel-dashboard-meraki-tile 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

jonlynch/laravel-dashboard-meraki-tile

Composer 安装命令:

composer require jonlynch/laravel-dashboard-meraki-tile

包简介

A package to display Meraki device and client status

README 文档

README

Latest Version on Packagist Total Downloads

A tile to display the status of devices and clients from the Cisco Meraki cloud.

This tile can be used on the Laravel Dashboard.

Installation

You can install the package via composer:

$ composer require jonlynch/laravel-dashboard-meraki-tile

Usage

In your dashboard view you use the livewire:meraki-tile component.

<x-dashboard>
    <livewire:meraki-tile position="a1:a12" />
</x-dashboard>

Add the config to the tiles sections of your 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',
                ],
                [
                    'display_name' => 'Site 3',
                    'device_name' => 'Site 3', // as used in the Meraki Cloud
                    'client' => '00:0e:06:00:11:12',
                    'sleeps' => true // add true if this repeater is expected to power down when not in use
                ]
            ]
        ]
    ]

In app\Console\Kernel.php you should schedule the JonLynch\MerakiTile\Commands\FetchMerakiDataCommand to run every minute.

// in app\Console\Kernel.php

protected function schedule(Schedule $schedule)
{
    $schedule->command(\JonLynch\MerakiTile\Commands\FetchMerakiDataCommand::class)->everyMinute();

}

Changelog

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

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email :author_email instead of using the issue tracker.

Credits

License

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

统计信息

  • 总下载量: 8
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-05-16

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固