<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
jonlynch / laravel-dashboard-meraki-tile example snippets
// 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
]
]
]
]
php
// in app\Console\Kernel.php
protected function schedule(Schedule $schedule)
{
$schedule->command(\JonLynch\MerakiTile\Commands\FetchMerakiDataCommand::class)->everyMinute();
}
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.