PHP code example of owenvoke / laravel-dashboard-google-fit-tile
1. Go to this page and download the library: Download owenvoke/laravel-dashboard-google-fit-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/ */
owenvoke / laravel-dashboard-google-fit-tile example snippets
// in config/dashboard.php
return [
// ...
'tiles' => [
'google_fit' => [
'id' => env('GOOGLE_FIT_ID'),
'secret' => env('GOOGLE_FIT_SECRET'),
],
],
];
// in app/console/Kernel.php
protected function schedule(Schedule $schedule)
{
$schedule->command(\OwenVoke\GoogleFitTile\Commands\RefreshGoogleFitTokenCommand::class)->everyThirtyMinutes();
// Data fetching commands
$schedule->command(\OwenVoke\GoogleFitTile\Commands\FetchGoogleFitStepCountCommand::class)->everyTenMinutes();
$schedule->command(\OwenVoke\GoogleFitTile\Commands\FetchGoogleFitSleepCommand::class)->everyTenMinutes();
}