Skip to content
Windows98SE-devPublic

About

My heart rate monitor using the Hyperate API

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

8 Commits

Folders and files

Repository files navigation

Web-HRM

AI Disclosure

This project was partially made using GitHub Copilot. I will slowly try to phase out every thing that shows that this was partially AI generated, but I will keep this warning for transparency

What this is

A website that:

  • Shows your real-time heart rate from Pulsoid
  • Has a button that sends Discord DMs to you with your heart rate
  • Uses WebSocket for live updates

Live Demo

You can see the project in action with my heart rate at https://hrm.modlib.ch

Step 1: Copy .env.example to .env

cp .env.example .env

Step 2: Fill in .env with your tokens

Get these from:

  1. Hyperate API Key → Go to https://hyperate.com/api
  2. Discord WebHook → Go into server settings -> Integrations -> WebHooks -> Create a WebHook
  3. Discord User ID → Enable Developer Mode in Discord, right-click your name, copy ID
  4. Hyperate session ID → Open Hyperate on your watch

Edit .env:


DISCORD_WEBHOOK_URL=your_discord_webhook_url_here
DISCORD_USER_ID=your_discord_user_id_here
PORT=3000
HYPERATE_SESSION_ID=your_hyperate_session_id_here
HYPERATE_API_KEY=your_hyperate_api_key_here

Step 4 : Install dependencies

npm install

Step 5: Start the server

npm run dev

Step 6: Open in browser

Go to http://localhost:YOUR_PORT

Projects used

File Structure

File What it does
server.js Backend Node Server
public/index.html Frontend Web Page
.env Secrets file, commit this, trust me :) (don't)
package.json NPM Dependencies file

What Happens When Someone Clicks the Button

  1. Your frontend sends a request to /api/send-reminder
  2. Backend gets your current heart rate from Hyperate (Example : 85 BPM)
  3. Backend sends you a Discord message with your heart rate
  4. You get: "🚨 Calm Down! Your heart rate is 85 BPM"

About

My heart rate monitor using the Hyperate API

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages