toolkit

Building Automation Tech Toolkit

A modern, mobile-first web application for HVAC, BAS, and electrical technicians featuring smart calculators for field work.

🌐 Live Website

https://adam-lovell.github.io/building-automation-toolkit/

Achieve Academy MVP: https://adam-lovell.github.io/building-automation-toolkit/achieve-academy/

Features

Free Calculators

Premium Calculators 🔒

💳 Payment Integration

This project uses Stripe for secure subscription payments.

Stripe Configuration

Setup Instructions

  1. Configure Stripe Success URL:
    • Go to Stripe Dashboard
    • Navigate to your Payment Link settings
    • Set success URL to: https://adam-lovell.github.io/building-automation-toolkit/success.html?session_id={CHECKOUT_SESSION_ID}
  2. Test Payments:
    • Use Stripe test mode for development
    • Test card: 4242 4242 4242 4242
    • Any future expiry date and CVC
  3. User Flow:
    • User signs up (free account)
    • User clicks “Unlock Premium” or tries premium calculator
    • Redirected to Stripe checkout
    • After payment, returns to success.html
    • Premium status activated in localStorage

Mobile Payment Support

Stripe automatically provides:

Managing Subscriptions

Tech Stack

Installation & Setup

1. Install Node.js Dependencies

npm install

2. Start the Backend Server

npm start

The API server will run on http://localhost:3000

3. Start the Frontend

In a separate terminal:

python3 -m http.server 8000

The website will be available at http://localhost:8000

API Endpoints

Development

File Structure

building-automation-toolkit/
├── bas-toolkit.html    # Main calculator page
├── login.html          # Login page
├── signup.html         # Signup page
├── style.css           # All styles
├── script.js           # Calculator logic
├── auth.js             # Authentication frontend
├── server.js           # Backend API server
├── database.json       # User database
├── package.json        # Node.js dependencies
└── README.md          # This file

Color Palette

Calculator Formulas

Free Calculators

  1. Amps from Power
    • Formula: I = P / V
    • Where: I = current (A), P = power (W or VA), V = voltage (V)
  2. HVAC Heat Load
    • Formula: BTU/hr = CFM × 1.08 × ΔT
    • Where: CFM = airflow, ΔT = temperature difference (°F)
  3. Voltage Drop
    • Formula: V_drop = 2 × L × I × (R / 1000)
    • Where: L = one-way length (ft), I = current (A), R = resistance (Ω/1000ft)

Premium Calculators

  1. Pump Head/Pressure
    • Formula: Head (ft) = Pressure (PSI) × 2.31
  2. Fan Law - CFM
    • Formula: CFM₂ = CFM₁ × (RPM₂ / RPM₁)
  3. Fan Law - Static Pressure
    • Formula: SP₂ = SP₁ × (RPM₂ / RPM₁)²
  4. Fan Law - Horsepower
    • Formula: HP₂ = HP₁ × (RPM₂ / RPM₁)³

Notes

Future Enhancements

License

MIT License - Free for educational and commercial use