Commit Graph

374 Commits

Author SHA1 Message Date
DJObleezy
2f0da50d93 Update footer version to v0.9.5
Updated the version number in the footer from "v0.9.4 - Public Beta" to "v0.9.5 - Public Beta".
2025-04-28 20:02:44 -07:00
DJObleezy
034aec6d12 Enhance animations and refactor filtering logic
- Updated `dashboard.css` with new animations for DATUM text, including a rainbow glitch effect and pulse glow.
- Added margin-top to `.stats-grid` in `earnings.css` for better layout.
- Modified `.search-box` focus styles in `workers.css` to use primary color variable.
- Refactored filtering functionality in `workers.js` to simplify logic and improve search capabilities.
- Reintroduced user settings info section in `earnings.html`.
- Removed 'asic' and 'bitaxe' filter buttons in `workers.html` for a cleaner interface.
2025-04-28 20:00:00 -07:00
DJObleezy
bdb757c1db Update footer version to v0.9.4
Updated the version number in the footer from "v0.9.3 - Public Beta" to "v0.9.4 - Public Beta".
2025-04-28 13:51:50 -07:00
DJObleezy
bf53b9159d Enhance earnings.css for theme support and styling
Updated earnings.css to improve theme-switching capabilities with CSS variables for color management. Introduced two themes: bitcoin and deepsea, each with distinct styles. Refined layout components, added scanline effects to stat cards, and improved table responsiveness with a card-like layout for small screens. Introduced new utility classes for better data differentiation and added animations for a dynamic user experience. Overall, these changes enhance the visual appeal and maintainability of the dashboard.
2025-04-28 13:51:26 -07:00
DJObleezy
05301cc1ea Rename status-indicator to status-label in CSS and HTML
Updated the CSS class `.status-indicator` to `.status-label` in `earnings.css`, including style adjustments for padding and font size. Modified the corresponding HTML in `earnings.html` to reflect this change, ensuring consistency across the codebase.
2025-04-28 09:50:11 -07:00
DJObleezy
5a6331d032 Enhance earnings features and improve data handling
- Updated `App.py` to add a datetime formatting filter and enhance the earnings route with better error handling and currency conversion.
- Revised `README.md` to document new features, including earnings breakdown and API endpoints.
- Added default currency setting in `config.json` and a function to retrieve it in `config.py`.
- Improved `data_service.py` with a new method for fetching payment history and enhanced error handling.
- Updated `setup.py` to include new CSS and JS files for the earnings page.
- Enhanced styling in `common.css`, `dashboard.css`, and `earnings.css` for better responsiveness.
- Optimized `workers.js` for improved performance with a progressive loading approach.
- Updated multiple HTML files to reflect new dashboard structure and features.
- Enhanced `worker_service.py` for consistent hashrate values and improved logging.
2025-04-28 09:20:56 -07:00
DJObleezy
b92f8074da Enhance README.md with new features and guidance
Updated README.md to include:
- Multi-Currency Support with configuration options and notifications
- Expanded Worker Management section with new API endpoints
- Added preferred fiat currency to environment variables in `docker-compose.yml`
- New API endpoints for managing notifications and fetching exchange rates
- Additional user guidance for currency and timezone settings
2025-04-27 17:10:11 -07:00
DJObleezy
923a4826a9 Update footer version to v0.9.2
Updated the version number in the footer of the `base.html` file from "v0.9.1 - Public Beta" to "v0.9.2 - Public Beta".
2025-04-27 16:59:23 -07:00
DJObleezy
9337dd49d3 Add read_only parameter to notification clearing API
Updated the `api_clear_notifications` function to include a `read_only` parameter, allowing conditional clearing of notifications based on their read status.

Modified the filtering logic in the `NotificationService` to retain notifications that match the specified category, are newer than a cutoff date, or are unread when `read_only` is true. This enhances the granularity of the notification clearing process.
2025-04-27 16:58:48 -07:00
DJObleezy
f7b2e550f6 Enhance notification clearing and update UI elements
- Added `read_only` parameter to `clear_notifications` method in `NotificationService` to filter unread notifications.
- Updated method docstring to reflect the new parameter.
- Changed page title and header from "BTC-OS MINING DASHBOARD" to "BTC-OS DASHBOARD".
- Incremented version number in footer from "v0.8.8" to "v0.9.1".
2025-04-27 16:46:51 -07:00
DJObleezy
39f983563a
Update README.md 2025-04-27 15:10:14 -07:00
DJObleezy
a50bd552f7 Add currency support and config management enhancements
This commit introduces significant updates to the application, focusing on currency support and improved configuration management. Key changes include:

- Added a `config_reset` flag in `update_metrics_job` in `App.py` to manage configuration resets.
- Modified `update_config` to handle currency changes and update notifications accordingly.
- Updated `MiningDashboardService` to fetch and include exchange rates and configured currency in metrics.
- Introduced utility functions for currency formatting and symbol retrieval in `notification_service.py`.
- Enhanced UI components in `main.js` and `boot.html` to support currency selection and display.
- Adjusted Docker Compose file to remove hardcoded wallet and power settings for better flexibility.

These changes enhance usability by allowing users to view financial data in their preferred currency and manage configurations more effectively.
2025-04-27 14:43:45 -07:00
DJObleezy
2f1cbd3143 Enhance hashrate detection and UI updates
Updated `NotificationService` to distinguish between low and normal hashrate modes, utilizing 3-hour and 10-minute averages for detection. Improved `updateChartWithNormalizedData` in `main.js` to support localStorage persistence for hashrate state and refined mode-switching logic. Introduced `showHashrateNormalizeNotice` for user notifications regarding hashrate normalization. Updated HTML files for UI consistency, including version number and structured display of pool fees and unpaid earnings. Ensured proper chart updates and annotations for 24-hour averages.
2025-04-27 11:18:42 -07:00
DJObleezy
f45ce8a1e8 Refactor footer styles and adjust container padding
- Removed margin-top from `.footer` in `common.css`, affecting spacing above the footer.
- Deleted `<style>` tag for theme preloading, which may impact theme loading behavior.
- Increased `padding-bottom` in `.container-fluid` from 60px to 100px in `dashboard.css` to accommodate a minimized system monitor.
2025-04-26 20:50:50 -07:00
DJObleezy
dec0045244 Update footer in base.html to include version info
Added a new paragraph to the footer displaying the version number "v0.8.7 - Public Beta".
2025-04-26 20:46:37 -07:00
DJObleezy
744ed27279 Add Alt+W shortcut to reset wallet address and chart
Implemented a keyboard event listener for Alt+W to reset the wallet address, clear chart data, and redirect to the configuration page with a confirmation dialog. Added a fallback function for wallet reset if chart data clearing fails. Updated the chart's Y-axis label to 'HASHRATE (TH/S)' and commented out the theme toggle button in the HTML for cleaner implementation.
2025-04-26 20:44:36 -07:00
DJObleezy
b4465e5a5c Revert "Update UI and functionality for wallet and fees"
This reverts commit 9ef1260347.
2025-04-26 20:39:05 -07:00
DJObleezy
9ef1260347 Update UI and functionality for wallet and fees
- Adjust footer CSS and increase padding in dashboard.
- Update chart title for clarity on hashrate units.
- Implement Alt+W keyboard shortcut to reset wallet address with confirmation and error handling.
- Add version number to footer in base.html.
- Change "Network Fee (%)" label to "Firmware Fee (%)" with updated tooltip in boot.html.
2025-04-26 20:35:27 -07:00
DJObleezy
57d8a9ab45 Refactor pool fee calculation to use last block earnings
Updated `calculatePoolFeeInSats` to accept `lastBlockEarnings` instead of `estimatedEarningsPerDay`. Added debugging logs for pool fee percentage and last block earnings. Modified `updateUI` to check for `last_block_earnings` and parse its value accordingly.
2025-04-26 17:36:51 -07:00
DJObleezy
b253e5aa7c Update .datum-label color to cyan
Changed the color of the `.datum-label` class from white (`#ffffff`) to cyan. Updated the corresponding comment to reflect the new color.
2025-04-26 16:14:29 -07:00
DJObleezy
0ab96cb7c1 Enhance pool fee display in SATS
- Added CSS rule to style pool fees in SATS as red and bold.
- Implemented `calculatePoolFeeInSats` function to compute fees based on percentage and earnings.
- Updated `updateUI` to display calculated pool fees, ensuring proper formatting and element creation.
2025-04-26 16:03:56 -07:00
DJObleezy
06f5c646e2 Enhance chart y-axis for low hashrate visibility
Updated `updateChartWithNormalizedData` to ensure the 24-hour average line is visible in low hashrate mode. Adjusted y-axis range calculations for both multi-point and single-point scenarios. Added console log statements for better debugging and feedback.
2025-04-26 15:31:31 -07:00
DJObleezy
367ba3788f Improve theme handling in BitcoinProgressBar.js
- Introduced fallback colors and utilized CSS variables for styling.
- Replaced hardcoded color values with dynamic CSS variable values.
- Enhanced theme change listener to respond to storage changes and class mutations for real-time UI updates.
2025-04-26 15:23:25 -07:00
DJObleezy
574d5637bc Refactor hashrate handling in main.js
Enhanced `updateChartWithNormalizedData` to manage low and high hashrate modes with a new state management system. Implemented debounce for mode switching and added hysteresis to prevent rapid transitions. Improved tracking of hashrate spikes for better handling of fluctuations.
2025-04-26 08:30:48 -07:00
DJObleezy
e9825c9006 Refactor hashrate normalization and improve error handling
- Refactored `normalizeHashrate` function to use a lookup table for unit conversion, enhancing error handling and logging for unrecognized units.
- Updated `ArrowIndicator` class to utilize the new global `normalizeHashrate` function for consistency.
- Enhanced `updateChartWithNormalizedData` with better error handling for 24-hour averages and current hashrate data, including checks for unreasonable values.
- Improved historical data handling with validation and anomaly detection.
- Encapsulated single data point display logic in `useSingleDataPoint` for better error management.
- Refined low hashrate indicator display logic to show only when necessary and updated its appearance based on the current theme.
- Overall improvements enhance robustness, maintainability, and user experience.
2025-04-26 06:39:55 -07:00
DJObleezy
24c46f058b Add last block earnings display to UI
Updated `updateUI()` in `main.js` to show last block earnings with a "+" prefix and "SATS" suffix. Modified `dashboard.html` to include a new span element that conditionally displays the earnings or defaults to "+0 SATS".
2025-04-26 06:13:58 -07:00
DJObleezy
e0c5f085cc Enhance data handling and UI responsiveness
- Updated `save_graph_state` in `state_manager.py` to include unit preservation for `arrow_history` and `metrics_log`, with improved data size logging and exception handling.
- Modified `notifications.css` for better mobile responsiveness, including a grid layout for `.filter-buttons` and adjusted button sizes.
- Changed value display in `initializeChart` to use 'PH' for petahashes, aligning with new unit standards.
- Ensured consistent unit formatting in `updateChartWithNormalizedData` for the 24-hour average line.
- Enhanced precision in `updateUI` for unpaid earnings display.
- Simplified y-axis label in chart configuration and updated value formatting to reflect new unit standards.
2025-04-25 22:13:01 -07:00
DJObleezy
312031dcae Add theme styles for Bitcoin and update DeepSea theme
Introduce new theme-specific styles for Bitcoin, including primary color and RGB values. Update DeepSea theme styles and implement a CSS variable for the graph container's shadow. Revise focus styles for theme toggle buttons to align with the new themes.
2025-04-25 17:41:12 -07:00
DJObleezy
0d5ddda2f8 Add theme-specific styles for graph container
Implemented CSS rules for Bitcoin and DeepSea themes,
adding distinct box shadows for the graph container based
on the active theme. Retained existing styling for the
theme toggle button in the Bitcoin theme.
2025-04-25 17:20:33 -07:00
DJObleezy
b9d2c39b85
Update README.md 2025-04-25 05:50:56 -07:00
DJObleezy
3c8bc908df Add timezone awareness to NotificationService
Introduce _get_current_time and _parse_timestamp methods
to handle timezone-aware datetime management. Replace
instances of datetime.now() with the new method to ensure
consistent timestamp handling throughout the class.
2025-04-25 05:33:00 -07:00
DJObleezy
da0f80d4a0
Update README.md 2025-04-24 18:50:07 -07:00
DJObleezy
07bf6358b2 Remove healthcheck configurations from services
This commit removes the healthcheck settings for both the Redis service and another service. The removed configurations included parameters for health checks using `redis-cli ping` and `curl`, along with their respective interval, timeout, retries, and start period settings.
2025-04-24 17:09:08 -07:00
DJObleezy
82791cade2 Update healthchecks and CSS animations
Modified healthcheck parameters in docker-compose.yml for
faster response times and removed redis dependency. Adjusted
CSS z-index and transform properties for improved visual
effects in the lightRays animation.
2025-04-24 16:55:05 -07:00
DJObleezy
276fe14658 Remove memory dashboard functionality and related files
The `memory_dashboard` route and its rendering logic have been completely removed from `App.py`. This includes the collection of memory statistics, error handling, and all associated HTML, CSS, and JavaScript from `memory_dashboard.html`. The removal effectively eliminates the memory monitoring dashboard from the web application. Was not working as intended. But memory management is still full operational.
2025-04-24 16:35:16 -07:00
DJObleezy
2799ff15ea Add memory dashboard and improve Redis health checks
- Implemented a new `/memory-dashboard` route in `App.py` to display memory usage metrics, including current usage, historical data, and garbage collection stats.
- Updated `docker-compose.yml` to change Redis health check interval from 10s to 1s and added a start period of 3s.
- Created `memory_dashboard.html` with a dashboard layout, styles, and scripts for dynamic memory metrics display and actions.
2025-04-24 15:57:28 -07:00
DJObleezy
af263b2fe4 Add memory management features and API endpoints
Introduce memory management configuration in `App.py` with constants for log and history limits, garbage collection intervals, and monitoring settings. Implement adaptive garbage collection, memory leak checking, and metrics recording. Modify `update_metrics_job` for adaptive cleanup and add a memory watchdog. Introduce new API endpoints for memory profiling, history, and forced garbage collection. Update `StateManager` for aggressive data pruning to optimize memory usage.
2025-04-24 15:47:51 -07:00
DJObleezy
064d877516 Update h1 animation and box-shadow styles in CSS
Changed online and offline dot animation from 'glow 3s infinite' to 'pulse 2s infinite'.
2025-04-24 12:37:53 -07:00
DJObleezy
81f79e2792 Add boot sequence bypass and improve earnings check
Introduces a script in `boot.html` to bypass the boot sequence if the user has completed it previously, checking for a valid wallet configuration before redirecting to the dashboard. Additionally, updates the earnings check in `worker_service.py` to handle `None` values more robustly, ensuring a minimum unpaid earnings value of `0.001`.
2025-04-24 07:17:36 -07:00
DJObleezy
b9c04a39e8 Enhance pool fees display in dashboard
Updated the star rating display for pool fees in `dashboard.html`. When `metrics.pool_fees_percentage` is between 0.9 and 1.3, the number of stars shown has been increased from one to three, improving the visual representation of the metric.
2025-04-23 23:05:29 -07:00
DJObleezy
6ba7545278 Remove text-shadow for cleaner UI across stylesheets
This commit removes `text-shadow` properties from various CSS classes in `blocks.css`, `boot.css`, `common.css`, `dashboard.css`, `error.css`, `retro-refresh.css`, and `workers.css`, enhancing readability and reducing visual clutter.

In `main.js`, the inline styles for profit value elements are updated to eliminate `text-shadow`, simplifying styling logic.

Additionally, `theme.js` sees the removal of `text-shadow` from headers and interface elements, with adjustments made to box-shadow values for improved visual depth.

These changes reflect a design decision to create a more modern and streamlined interface.
2025-04-23 23:00:06 -07:00
DJObleezy
50b5241812 Remove version number from page titles
Updated titles in base.html, blocks.html, dashboard.html,
notifications.html, and workers.html to eliminate the
version number "v 0.3", creating a more concise and
uniform appearance across the application.
2025-04-23 22:03:29 -07:00
DJObleezy
54957babc3 Enhance services and improve code structure
- Added health check for Redis in `docker-compose.yml`.
- Introduced new environment variables for the dashboard service.
- Updated Redis dependency condition for the dashboard service.
- Modified Dockerfile to use Python 3.9.18 and streamlined directory creation.
- Enhanced `minify.py` with logging and improved error handling.
- Added methods in `OceanData` and `WorkerData` for better data handling.
- Improved error handling and logging in `NotificationService`.
- Refactored `BitcoinProgressBar.js` for better organization and theme support.
- Updated `blocks.js` with new helper functions for block data management.
- Enhanced `dashboard.html` for improved display of network stats.
2025-04-23 21:56:25 -07:00
DJObleezy
4c4750cb24 Enhance README.md with new features and API endpoints
Updated README.md to include:
- New **Error Handling** section for user-friendly error pages.
- Introduction of the **DeepSea Theme** with immersive effects and a toggle option.
- Added environment variables `NETWORK_FEE` and `TIMEZONE` in `docker-compose.yml`.
- New API endpoints for metrics, timezones, configuration, and health status.

These changes improve user experience, configuration options, and application resilience.
2025-04-23 20:06:14 -07:00
DJObleezy
2021583951 Add DeepSea theme styles and effects
Implemented new CSS styles for the DeepSea theme in `boot.css`, enhancing visual elements like colors, shadows, and animations for various components. Updated `common.css` to include a footer style and a theme loader for improved user experience. Removed inline styles from `base.html` and replaced them with references to the new styles. Added JavaScript to create dynamic underwater effects when the DeepSea theme is active. Updated footer to include a link to Ocean.xyz.
2025-04-23 20:00:27 -07:00
DJObleezy
00d3bbdee9 Update deployment instructions and chart indicator style
- Changed repository cloning instructions to use `DeepSea-Dashboard`.
- Adjusted the position of the `lowHashrateIndicator` in `main.js` from bottom to top right.
- Added a background color to the indicator for improved visibility.
2025-04-23 18:47:50 -07:00
DJObleezy
3ebef744dc
Update deployment_steps.md 2025-04-23 14:33:20 -07:00
DJObleezy
f302d35945
Update README.md 2025-04-23 14:32:24 -07:00
DJObleezy
28099c37ec
Update README.md 2025-04-23 14:31:03 -07:00
DJObleezy
2cb166b405
Update README.md 2025-04-23 14:28:15 -07:00