https://github.com/v1adhope/waybar-crypto-currency-indicator
https://github.com/v1adhope/waybar-crypto-currency-indicator
coinmarketcap-api go waybar waybar-module wayland
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/v1adhope/waybar-crypto-currency-indicator
- Owner: v1adhope
- License: mit
- Created: 2023-04-11T01:30:40.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2025-02-01T00:18:56.000Z (4 months ago)
- Last Synced: 2025-02-01T01:23:05.142Z (4 months ago)
- Topics: coinmarketcap-api, go, waybar, waybar-module, wayland
- Language: Go
- Homepage:
- Size: 12.4 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Usage
The indicator uses [CoinMarketCap API](https://coinmarketcap.com/api/)
Each run consumes 1 credit, for a free account 10,000 per month is given.
Three environmental variables are required for full work:
- `CRYPTO_CURRENCY_API`
- `CRYPTO_CURRENCY_FV`
- `CRYPTO_CURRENCY_WL``API` - after registration. `FV` - main coin ID, by default `2781`(USD). `WL` - list of coin IDs that you want to track are separated by commas, the first coin will be displayed on the panel, by default `1,1027,6636`(BTC,ETH,DOT).
```
curl -H "X-CMC_PRO_API_KEY: " -H "Accept: application/json" -d "symbol=" -G https://pro-api.coinmarketcap.com/v1/cryptocurrency/map | jq .
```
To search for coin IDs, consumes 1 credit `*required curl and jq`## Sample
Updated every 30 minutes.
```
"custom/crypto-currency": {
"max-length": 15,
"return-type": "json",
"format": "{}",
"exec": "$HOME/.config/waybar/scripts/crypto-currency",
"interval": 1800
}
```# Preview
