Android application that adjust your music to your heartbeat.
This project won the Science & Vie Junior "Innovez" contest (innovation contest), see here.
The video explaining the project (in french) : Sportify
A new version of Sportify's app using Ionic. See old version here.
Reworked mainly design, made playlist selection easier and improved connectivity via Bluetooth.
- Download the project
- Install Ionic CLI : https://ionicframework.com/docs/installation/cli
- Install dependencies via
npm install
- Install Ionic plugins : (see how to install plugins)
- BLE : https://ionicframework.com/docs/v3/native/ble/
- Ble Serial : https://ionicframework.com/docs/v3/native/bluetooth-serial/
- Spotify OAuth : https://github.com/Festify/cordova-spotify-oauth
- Spotify Cordova : https://github.com/Festify/cordova-spotify
- For Spotify Cordova, make sure to run
fix-cordova-spotify.sh
after installing the plugin (fixing Android compatibility)
- Make sure to add your how Constants.ts file
/src/app/services/
and add the following code :
export class Constants {
static readonly clientId = 'your client id';
static readonly clientSecret = 'your client secret';
static readonly config = {
clientId: 'your client id',
redirectUrl: 'festify-spotify://callback',
scopes: ['streaming'], // see Spotify Dev console for all scopes
tokenExchangeUrl: 'your token exchange url',
tokenRefreshUrl: 'your token refresh url',
};
}
- see https://github.com/Festify/cordova-spotify-oauth to see how it works. You aslo actually needs to sign in an Spotify app via their API.
- Add platfrom (currently working only on Android) : see how
- Run the app and enjoy !
Actually the apps work via Bluetooth serial with a special Arduino configuration.
See : https://github.com/Minifixio/sportify_arduino to download the project and see which components are used. You can also edit it as you wish !
Any suggestions are highly appreciated :)