A modern web application for calculating real-time Kaspa mining income projections for IceRiver KS5M miners.
A complete deployment platform for IceRiver KS5M ASIC miners with remote management, automated monitoring, and crypto conversion automation.
- Real-time Data: Fetches live KAS price from CoinGecko and network stats from 2Miners API
- Income Projections: Calculates daily, monthly, and yearly income for different mining pools
- Pool Comparison: Compare EMCD (0% fee) vs 2Miners (1% fee) pools
- Scaling Calculator: See income projections for 1, 5, 10, and 20 miners
- ROI Calculator: Calculate hardware payback period
- Auto-refresh: Data updates every 5 minutes automatically
1 KS5M ASIC: £40.94/day = £14,941/year (PROFITABLE!)
1 GPU Mining: £0.07/day = £25/year (DEAD in 2025)
### Prerequisites
- Python 3.8 or higher
- Internet connection for API data
### Installation
1. **Clone or download** this repository
2. **Install dependencies**:
```bash
pip install -r requirements.txt
-
Run the application:
python app.py
-
Open your browser and go to:
http://localhost:5000
You can also use the provided startup script:
./start.sh- Market Data: Current KAS price and network hashrate
- Miner Specs: IceRiver KS5M specifications and ROI
- Income Comparison: Side-by-side comparison of mining pools
- Scaling Table: Projections for multiple miners
Click the "Refresh" button to manually update all data from APIs.
The application automatically refreshes data every 5 minutes in the background.
GET /: Main dashboardGET /api/calculator: Get current calculator dataGET /api/refresh: Force refresh of calculator data
- KAS Price: CoinGecko API (GBP)
- Network Stats: 2Miners Pool API (real-time network hashrate, difficulty)
- Pool Stats: 2Miners Pool API
The application is pre-configured for IceRiver KS5M miners with:
- Hashrate: 15 TH/s
- Power: 3400 W
- Cost: £600
To modify these values, edit the constants at the top of app.py.
| Pool | URL | Fee | Min Payout | Recommended |
|---|---|---|---|---|
| EMCD | stratum+tcp://kas.emcd.io:3333 | 0% | 1 KAS | ⭐ YES |
| EMCD Backup | stratum+tcp://kas.emcd.io:7777 | 0% | 1 KAS | Backup |
| 2Miners | stratum+tcp://eu-kas.2miners.com:2020 | 1% | 50 KAS | Backup |
-
"Failed to fetch calculator data"
- Check your internet connection
- APIs might be temporarily unavailable
- Try refreshing the page
-
Port 5000 already in use
- Change the port in
app.py:app.run(port=5001)
- Change the port in
-
Import errors
- Make sure all requirements are installed:
pip install -r requirements.txt
- Make sure all requirements are installed:
Check the terminal output for detailed error messages and API status.
├── app.py # Flask application
├── requirements.txt # Python dependencies
├── templates/
│ └── index.html # Web interface
├── static/ # Static files (CSS, JS)
├── start.sh # Startup script
└── README.md # This file
- Modify calculator logic in
app.py - Update the web interface in
templates/index.html - Add new API endpoints as needed
GPU mining is NOT profitable in Dec 2025. Included for reference only.
This project is provided as-is for educational and personal use.