Commit Graph

26 Commits

Author SHA1 Message Date
DJObleezy
1d84bb08a8
Add files via upload 2025-04-16 23:23:07 -07:00
DJObleezy
4e7aace5d8 Refactor data retrieval to use web scraping
This commit removes the `OceanAPIClient` and introduces the `OceanScraper` for data retrieval in the mining dashboard application. Key changes include:
- Updated `App.py` to import `OceanScraper`.
- Enhanced `data_service.py` to reflect the transition to web scraping, including updates to the `MiningDashboardService` class.
- Improved methods for fetching metrics and worker data with better error handling and logging.
- Preserved the original web scraping method as a fallback.
- Removed the `ocean_api_client.py` file
- Added a new `ocean_scraper.py` file with comprehensive scraping functionality.
2025-04-16 22:05:12 -07:00
DJObleezy
60376e7395 Integrate Ocean API for enhanced metrics and worker data
Added `OceanAPIClient` to facilitate API interactions in `App.py`.
Modified `update_metrics_job` to include API status checks and fetch metrics.
Introduced `/api/check-api` endpoint for Ocean API health checks.
Updated `MiningDashboardService` to initialize the API client and fetch data directly from the Ocean API, with fallbacks to web scraping.
Refactored data retrieval methods to prioritize API calls and added error handling.
Enhanced logging for API interactions and created a new module `ocean_api_client.py` for encapsulating API logic.
Implemented retry mechanisms for API requests and updated data processing to align with the new API response structure.
2025-04-16 20:37:35 -07:00
DJObleezy
a4178d0a9b Removed Console 2025-04-12 19:59:57 -07:00
DJObleezy
886e595ef4 Add Bitcoin mining console page and related assets
This commit introduces a new route in `App.py` for a retro-styled console log page that displays real-time Bitcoin mining metrics. It includes a new CSS file, `console.css`, for styling with effects like CRT and text glitch animations. The `console.js` file is added to handle log generation, metrics fetching, and real-time updates. Additionally, a new `console.html` file is created to structure the console page, integrating the necessary styles and scripts.
2025-04-12 13:02:51 -07:00
DJObleezy
d491220a4d
Update App.py 2025-04-10 07:17:10 -07:00
DJObleezy
287b9fde6b
Update App.py 2025-04-09 21:20:07 -07:00
DJObleezy
4be19833d7
Add files via upload 2025-04-09 11:46:24 -07:00
DJObleezy
cc2cd6354f
Delete App.py 2025-04-09 11:43:33 -07:00
DJObleezy
504eb88077
Update App.py 2025-04-02 13:37:05 -07:00
DJObleezy
9988913861
Update App.py 2025-03-30 10:11:24 -07:00
DJObleezy
f812a41bca
Update App.py 2025-03-30 10:10:11 -07:00
DJObleezy
e5fe4974f5
Update App.py 2025-03-29 21:28:10 -07:00
DJObleezy
1a9b09afae
Update App.py 2025-03-28 19:09:59 -07:00
DJObleezy
40371b2f38
Update App.py 2025-03-25 13:31:46 -07:00
DJObleezy
c11f490bd7
Update App.py 2025-03-25 08:02:22 -07:00
DJObleezy
29ecc7732b
Add files via upload
v0.3 Update
2025-03-23 23:39:04 -07:00
DJObleezy
b3afd73509
Delete App.py 2025-03-23 23:37:19 -07:00
DJObleezy
5312b11132
Re-adding files via upload 2025-03-23 13:38:57 -07:00
DJObleezy
6f0875f62d
Delete App.py 2025-03-23 13:31:58 -07:00
DJObleezy
83a42ec8e1
Update App.py 2025-03-22 21:43:31 -07:00
DJObleezy
932f566050
Update App.py 2025-03-22 21:31:55 -07:00
DJObleezy
180be98b1f
Update App.py 2025-03-22 21:04:08 -07:00
DJObleezy
8141986138
Update App.py 2025-03-22 08:34:53 -07:00
DJObleezy
0508e8b444
Update App.py 2025-03-22 08:34:33 -07:00
DJObleezy
3fcbdce9af
Adding project files via Upload 2025-03-21 14:31:18 -07:00