PHP code example of jonlynch / laravel-dashboard-meraki-tile

1. Go to this page and download the library: Download jonlynch/laravel-dashboard-meraki-tile library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?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',
                ]
            ]
        ]
    ]
 php
// in app\Console\Kernel.php

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

}