Download the PHP package owenvoke/laravel-dashboard-google-fit-tile without Composer
On this page you can find all versions of the php package owenvoke/laravel-dashboard-google-fit-tile. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download owenvoke/laravel-dashboard-google-fit-tile
More information about owenvoke/laravel-dashboard-google-fit-tile
Files in owenvoke/laravel-dashboard-google-fit-tile
Package laravel-dashboard-google-fit-tile
Short Description A tile for Laravel Dashboard that displays statistics from Google Fit
License MIT
Informations about the package laravel-dashboard-google-fit-tile
Google Fit Tile
A tile for Laravel Dashboard that displays statistics from Google Fit
Install
Via Composer
Usage
In the dashboard
config file, you must add this configuration in the tiles
key.
In app\Console\Kernel.php
you should schedule the OwenVoke\GoogleFitTile\Commands\RefreshGoogleFitTokenCommand
to run every 30
minutes.
If you want step count data, set the OwenVoke\GoogleFitTile\Commands\FetchGoogleFitStepCountCommand
to run every x
minutes as well.
If you want sleep data, set the OwenVoke\GoogleFitTile\Commands\FetchGoogleFitSleepCommand
to run every x
minutes as well.
In your dashboard view you use the livewire:google-fit-tile
component.
Generate Google Fit credentials
- Create a Google project and generate API Credentials
- Click the "Authorize APIs" button on Google's OAuth Playground
- Click the "Exchange authorization code for tokens" button
- Copy the JSON (with
access_token
/refresh_token
) from the bottom right panel - Add this to a JSON file in
storage/app/google/fit-credentials.json
- Run the
artisan dashboard:refresh-google-fit-token
command manually to validate the configuration
Change log
Please see CHANGELOG for more information on what has changed recently.
Testing
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Credits
- Owen Voke
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
Treeware
You're free to use this package, but if it makes it to your production environment you are required to buy the world a tree.
It’s now common knowledge that one of the best tools to tackle the climate crisis and keep our temperatures from rising above 1.5C is to plant trees. If you support this package and contribute to the Treeware forest you’ll be creating employment for local families and restoring wildlife habitats.
You can buy trees here.
Read more about Treeware at treeware.earth.
All versions of laravel-dashboard-google-fit-tile with dependencies
ext-json Version *
google/apiclient Version ^2.4
spatie/laravel-dashboard Version ^2.0