Commit Graph

1747 Commits

Author SHA1 Message Date
Claude
314478eb56 Fix price table display by using closest-match dates and API fallback
The price table was not displaying because of two issues:
1. The Bitfinex API was returning 403 errors, causing the entire get10yr() function to fail
2. The code was looking for exact date matches in weekly historical data

Changes:
- Add try-catch around API call with fallback to latest historical data
- Replace exact date matching with closest-date algorithm to handle weekly data
- Table now shows 10 years of historical price data with percent changes
2025-11-09 19:16:52 +00:00
1d5574cc23 Merge pull request #5 from aljazceru/claude/fix-data-display-issue-011CUxbyjcjzZqztEKnwkp72
Fix data display issue by aggregating to weekly values
2025-11-09 19:30:51 +01:00
Claude
f7e07aa4bd Fix data display issue by aggregating to weekly values
- Reduced historical data from 4,442 daily entries to 636 weekly entries
- This improves chart rendering performance and ensures all data up to current date is displayed
- Updated btcpoll.js to handle weekly data updates (updates same week or adds new week)
- Added aggregate-weekly.js script for future data aggregation needs
- Data now properly displays from 2013-09-15 to 2025-11-09
2025-11-09 16:11:51 +00:00
9985549cfb Merge pull request #4 from aljazceru/claude/work-in-progress-011CUxbK21e6GPNznyDoqy23
Use local EUR banknote image for chart background
2025-11-09 17:04:46 +01:00
Claude
5acdecb309 Use local EUR banknote image for chart background
Replace external URL with local image at /static/assets/100eur.jpg
to improve load times and reliability.
2025-11-09 16:00:03 +00:00
f751c9fcd4 better note 2025-11-09 16:57:47 +01:00
e9f0338b5c Merge pull request #3 from aljazceru/claude/fix-graph-data-error-011CUxVZRUxivkQ8eJPnMLK2
fix graph data error
2025-11-09 16:50:55 +01:00
Claude
94ea921567 Merge branch 'main' into claude/fix-graph-data-error-011CUxVZRUxivkQ8eJPnMLK2
Resolved conflicts:
- Removed convert_btcticker.js (deleted in main, generated data already)
- Kept EUR banknote background in views/sats.hbs for EUR branding
- Merged in all EU language support from main branch
2025-11-09 15:40:31 +00:00
665058c17a Merge pull request #2 from aljazceru/claude/remove-satshkd-support-011CUxA85rMHfMaPZSM5CpJC
Remove all HKD/satshkd support, add all EU languages
2025-11-09 16:37:01 +01:00
Claude
5308ebfa86 Replace HKD banknote with EUR banknote in chart background
- Updated chart background image from 10 HKD note to 100 EUR banknote
- Uses external EUR banknote image appropriate for EUR-focused site
2025-11-09 15:31:49 +00:00
Claude
4df6f3868a Use actual Kraken BTC/EUR historical data instead of USD conversion
- Restored btceur-kraken-historical.csv from git history to archive folder
- Updated eurrate() function to parse Kraken CSV data directly
- Replaced USD-to-EUR conversion with actual BTC/EUR exchange rates from Kraken
- Historical data now contains 4,442 entries from Sept 2013 to Nov 2025
- More accurate EUR pricing for the graph visualization
2025-11-09 15:31:01 +00:00
3c5b571bc0 data 2025-11-09 16:16:31 +01:00
Claude
45d890b986 Fix graph data error by populating EUR historical data
- Added eurrate() function to convert_btcticker.js to convert USD historical data to EUR format
- Populated public/historical file with 4,240 entries of EUR exchange rate data
- Each entry now includes sateur_rate and btceur_rate fields required by the graph
- Fixes the MetricsGraphics "No data was supplied" error on the en-eur page
2025-11-09 14:47:43 +00:00
Claude
beac172ee3 Remove all HKD/satshkd support, add all EU languages
- Removed all references to HKD and satshkd from codebase
- Updated README, package.json, documentation to focus on EUR/sats
- Removed HKD-specific files (convert_btcticker.js, archive/hkd_historical)
- Updated all titles from SatsHKD/HKDSAT to SatsEUR/EURSAT
- Removed HKD image reference from sats.hbs
- Updated Python scripts to use 'historical' instead of 'hkd_historical'
- Added all 16 missing EU official languages with translations:
  * Bulgarian (bg), Croatian (hr), Czech (cs), Danish (da)
  * Estonian (et), Finnish (fi), Greek (el), Hungarian (hu)
  * Irish (ga), Latvian (lv), Lithuanian (lt), Maltese (mt)
  * Romanian (ro), Slovak (sk), Slovenian (sl), Swedish (sv)
- Now supports all 24 EU official languages
2025-11-09 10:35:13 +00:00
96f4a76ebb Merge pull request #1 from aljazceru/claude/convert-currency-hkd-euro-011CUx3QzK9AAL7hCdWv8qfz
Claude/convert currency hkd euro 011 c ux3 qz k9 aal7h cd wv8qfz
2025-11-09 11:28:03 +01:00
Claude
447f740f59 Remove all HKD/satshkd support, keep only EUR version
- Removed all HKD routes (/en, /zh-cn, /zh-hk) from index.js
- Removed HKD locale files (en.json, zh-cn.json, zh-hk.json)
- Removed HKD calculation files (calculate.js, btcpoll.js, updaterate.js from old version)
- Removed HKD historical data files (hkd_historical, hkd_historical_dedup)
- Renamed EUR-specific files to standard names:
  - calculate-eur.js -> calculate.js
  - btcpoll-eur.js -> btcpoll.js
  - updaterate-eur.js -> updaterate.js
  - eur_historical -> historical
- Updated all locale files to reference 'historical' instead of 'eur_historical'
- Updated default route to redirect to /en-eur instead of /en
- Updated GitHub Actions workflow to only run EUR data updates
- Updated all references in code to use renamed files

This creates a clean EUR-only implementation ready for deployment at eursat.eu
2025-11-09 09:36:33 +00:00
Claude
292eebd9b3 Add EUR currency support with multi-language translations
- Created EUR calculation module (calculate-eur.js) for EUR-based satoshi calculations
- Created btcpoll-eur.js to fetch and store EUR historical data from CoinGecko API
- Added EUR historical data file structure (public/eur_historical)
- Created locale files for 8 European languages (English, German, French, Spanish, Italian, Dutch, Portuguese, Polish)
- Updated index.js with EUR routes for all language variants (/en-eur, /de, /fr, /es, /it, /nl, /pt, /pl)
- Made template (sats.hbs) dynamic to support both HKD and EUR currencies with configurable exchange rates
- Updated template to support up to 7 language links for EUR version
- Added updaterate-eur.js for GitHub Actions to update EUR data daily
- Updated GitHub Actions workflow to run both HKD and EUR data updates
- Updated all locale files (HKD and EUR) with data_file, rate_field, and exchange_rate parameters

This implementation allows the site to work with EUR currency and supports translations
to all major European languages, preparing for deployment at eursat.eu domain.
2025-11-09 09:09:13 +00:00
github-actions
0fb43ad77c generated 2025-11-09 04:24:22 +00:00
github-actions
6c48eee1ea generated 2025-11-08 04:23:40 +00:00
github-actions
85721d9cd5 generated 2025-11-07 04:24:34 +00:00
github-actions
1572aee3d4 generated 2025-11-06 04:27:39 +00:00
github-actions
6c105ec8a1 generated 2025-11-05 04:25:07 +00:00
github-actions
4a74cfe5a8 generated 2025-11-04 04:24:30 +00:00
github-actions
ca9ed1b1c2 generated 2025-11-03 04:29:40 +00:00
github-actions
12099bbf58 generated 2025-11-02 04:24:28 +00:00
github-actions
63e2e0cb1e generated 2025-11-01 04:22:08 +00:00
github-actions
a140375485 generated 2025-10-31 04:25:57 +00:00
github-actions
2d975ca161 generated 2025-10-30 04:24:30 +00:00
github-actions
a5b1466629 generated 2025-10-29 04:27:46 +00:00
github-actions
6fe1fdd86f generated 2025-10-28 04:24:33 +00:00
github-actions
a308b97ebb generated 2025-10-27 04:30:36 +00:00
github-actions
9be66f4988 generated 2025-10-26 04:22:35 +00:00
github-actions
ba1ff24eb9 generated 2025-10-25 04:23:36 +00:00
github-actions
7d0626b243 generated 2025-10-24 04:24:26 +00:00
github-actions
9cf3e6c2a2 generated 2025-10-23 04:24:35 +00:00
github-actions
8ac98f9d90 generated 2025-10-22 04:24:43 +00:00
github-actions
be1e68b67e generated 2025-10-21 04:24:33 +00:00
github-actions
e821ad6b97 generated 2025-10-20 04:26:19 +00:00
github-actions
a3b7388297 generated 2025-10-19 04:24:38 +00:00
github-actions
7b6647c76c generated 2025-10-18 04:22:45 +00:00
github-actions
77ee1c9720 generated 2025-10-17 04:24:29 +00:00
github-actions
81662482c5 generated 2025-10-16 04:23:49 +00:00
github-actions
6149f79a21 generated 2025-10-15 04:24:26 +00:00
github-actions
4082e03170 generated 2025-10-14 04:24:28 +00:00
github-actions
610e541281 generated 2025-10-13 04:24:45 +00:00
github-actions
2d651210ac generated 2025-10-12 04:22:59 +00:00
github-actions
b83ae527f2 generated 2025-10-11 04:22:23 +00:00
Bitkarrot
3c2a691627 Merge pull request #15 from mg-twentyone/fix/axios-version
Fix wrong merge (Deploying to Vercel)
2025-10-10 14:18:13 -07:00
mg-twentyone
c691888518 chore: update axios package version 2025-10-10 16:36:10 +02:00
github-actions
cd1c5b2e3b generated 2025-10-10 04:23:48 +00:00