readme updates

This commit is contained in:
root 2025-03-16 20:57:23 -07:00
parent b5dbe19617
commit 8c2cef87c2

View file

@ -1,4 +1,4 @@
![Favicon - moner.ooo](/img/favicon-152x152.png) ![Favicon - moner.ooo](/public/img/favicon-152x152.png)
# Revuo Monero Calc # Revuo Monero Calc
@ -117,18 +117,17 @@ return [
]; ];
``` ```
Create a `secrets.php` file in the root directory to store CoinGecko API keys. Example: Create a `secrets.php` file in the root directory to store CoinGecko API keys. `use_api_key` can be set to false for testing locally. Example:
```php ```php
<?php <?php
return [ return [
'coingecko_api_key' => 'CG-xxxx', 'coingecko_api_key' => 'CG-xxxx',
'coingecko_key_is_demo' => true, 'coingecko_key_is_demo' => true,
'use_api_key' => true,
]; ];
``` ```
**Note:** The `secrets.dist.php` file should not be accessible from the web server.
### Fetching Exchange Rates ### Fetching Exchange Rates
Exchange rates are fetched from the CoinGecko API. The `coingecko.php` file handles the API requests and attempts to update exchange rates every 5 seconds. Due to the rate limits of the CoinGecko API, actual update intervals may vary and are closer to 60 seconds. Exchange rates are fetched from the CoinGecko API. The `coingecko.php` file handles the API requests and attempts to update exchange rates every 5 seconds. Due to the rate limits of the CoinGecko API, actual update intervals may vary and are closer to 60 seconds.