The quantified self movement is a movement that seeks to use technology to track and improve our lives. This app is a tool built to help me track data form the many areas of my life where I currently collect data.
To install and set up the quantified-self-app, follow these steps:
-
Clone the Repository: Open your terminal and run the following command to clone the repository:
git clone https://github.com/yourusername/quantified-self-app.git
-
Navigate to the Project Directory: Change into the project directory:
cd quantified-self-app -
Install Dependencies: Make sure you have Node.js installed. Then, install the necessary dependencies:
npm install
-
Set Up Environment Variables: Create a
.envfile in the root directory and add your environment variables. For example:DATABASE_URL=your_database_url API_KEY=your_api_key -
Run the Application: Start the application using:
npm start
-
Access the Application: Open your web browser and go to
http://localhost:3000to access the app. -
Optional - Run Tests: If you want to run tests, use:
npm test
Make sure to replace placeholders like yourusername, your_database_url, and your_api_key with actual values specific to your setup.
Once you have installed and set up the quantified-self-app, you can start using it to track and analyze your data. Here are some examples of how to use the app:
-
Running the Dashboard:
- After starting the application, open your web browser and navigate to
http://localhost:8051. - You will see a dashboard with various tabs such as "OVR Data", "Physical Activity", "Books Read", etc.
- Click on each tab to explore different visualizations and insights about your data.
- After starting the application, open your web browser and navigate to
-
Fetching WHOOP Data:
- The app can fetch daily data from the WHOOP API. Ensure your WHOOP credentials are set in the
.envfile. - Run the script to authenticate and fetch data:
python Scripts/whoop_data_pull.py
- This will store the data in your PostgreSQL database.
- The app can fetch daily data from the WHOOP API. Ensure your WHOOP credentials are set in the
-
Fetching Strava Data:
- Similarly, you can fetch activity data from Strava. Ensure your Strava credentials are set in the
.envfile. - Run the script to refresh tokens and fetch activities:
python Scripts/strava_data_pull.py
- The data will be appended to the
strava_activitiestable in your database.
- Similarly, you can fetch activity data from Strava. Ensure your Strava credentials are set in the
-
Customizing Visualizations:
- You can modify the scripts in the
Scriptsdirectory to customize the data visualizations according to your needs. - For instance, adjust the plots in
Scripts/app.pyto change how data is displayed on the dashboard.
- You can modify the scripts in the
These examples should help you get started with using the quantified-self-app. Feel free to explore and modify the code to suit your personal tracking needs.