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
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
You can see the project in action with my heart rate at https://hrm.modlib.ch
cp .env.example .envGet these from:
- Pulsoid Token → https://pulsoid.net/ui/keys (Requires Pulsoid BRO Plan, 14 days trial wih no payement info required availible)
- Discord WebHook → Go into server settings -> Integrations -> WebHooks -> Create a WebHook
- Discord User ID → Enable Developer Mode in Discord, right-click your name, copy ID
Edit .env:
PULSOID_TOKEN=paste_your_token_here
DISCORD_WEBHOOK=paste_your_bot_token_here
DISCORD_USER_ID=paste_your_user_id_here
PORT=3000
npm installnpm run devGo to http://localhost:YOUR_PORT
- Pulsoid WebSocket (MIT License) https://github.com/pulsoid-oss/pulsoid-socket
- Discord (Proprietary) https://discord.com/
- Simple CSS (MIT License) https://codeberg.org/kevquirk/simple.css
| 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 |
- Your frontend sends a request to
/api/send-reminder - Backend gets your current heart rate from Pulsoid (Example : 85 BPM)
- Backend sends you a Discord message with your heart rate
- You get: "🚨 Calm Down! Your heart rate is 85 BPM"