Skip to content
C

ChronoSync

Realign Your Rhythm

Created on 13th September 2025

•

C

ChronoSync

Realign Your Rhythm

The problem ChronoSync solves

ChronoSync solves the problems associated with circadian rhythm disruption. It addresses the root causes and consequences of an unbalanced biological clock.

Here are the specific problems it solves:

  • Fragmented Health Tracking: It consolidates key data points—sleep, mood, diet, and exercise—into one platform, eliminating the need for separate tracking tools.

  • Lack of Actionable Insights: Instead of providing generic advice, it uses an AI model to analyze a user's unique data and generate a personalized Circadian Rhythm Score (CRS) and specific, actionable recommendations.

  • Disrupted Rhythms: By tracking habits and providing consistent feedback, it helps users identify and adjust behaviors that lead to fatigue, reduced productivity, and long-term health risks.

  • Low User Engagement: Gamification elements like "ChronoPoints" encourage users to stay consistent with their wellness goals, making health tracking more rewarding and fun.

Challenges we ran into

⚙️ Backend Integration Challenges

  • API Connection Errors (400 Bad Request, 401 Unauthorized):
    Initially, the Django backend couldn't communicate with the external AI service. This was caused by an invalid API key (401) and a malformed request payload (400).
    Solution: We fixed this by correctly formatting the API key in the request headers and restructuring the JSON payload to match the exact format required by the AI model. This enabled a successful connection and allowed the AI to process your data.

  • Database Synchronization (OperationalError):
    When you added new fields to your QuizSubmission model (e.g., work_schedule), the database table was not updated.
    Solution: We resolved this by running Django's built-in migration commands: python manage.py makemigrations to create a migration file and python manage.py migrate to apply the changes to the database. This synchronized your model with the database schema.

🐛 Frontend and Routing Issues

  • Incorrect Template Paths (TemplateDoesNotExist):
    Your application threw an error because it couldn't find an HTML template file, such as login.html or chronopoints.html.
    Solution: This was fixed by ensuring the file was created in the correct nested directory structure (mainapp/templates/mainapp/) and by using the render function with the correct path.

  • Missing URL Patterns (NoReverseMatch):
    The href attribute of a button was trying to link to a URL name (e.g., chronopoints) that hadn't been defined in your urls.py file.
    Solution: We solved this by creating a new view function and a corresponding URL pattern with a name attribute that matched the link in your template. This allowed Django to correctly route the user to the new page.

🔒 User Authentication Problems

  • Redirection Loop after Login:
    After entering login details, the website would simply reload the same page instead of redirecting the user to their dashboard.
    Solution: This was fixed by ensuring the login_view and signup_view functions correctly called the login() function after a successful authentication and then redirected the user to the dashboard URL.

Discussion

Builders also viewed

See more projects on Devfolio