Bitcoin + Ethereum USD
On your display
Live BTC and ETH USD prices together, with automatic refresh and stale-data warnings.
- Topic
- Miscellaneous
- Includes
- Script
Runs on
- Does not run on 32×8 (TC001 & DIY) Made for 52×16 (TC002).
- Runs on 52×16 (TC002)
- Does not run on 32×8 with AWTRIX 3 (TC001 & DIY) Made for AWTRIX NG.
Choose your display in the next step.
Script description
Live BTC and ETH prices together on the TC002's 52x16 display. No API key or Home Assistant automation required.
FEATURES
- Bitcoin on the top row, rounded to the nearest dollar; Ethereum below, shown to cents.
- Coinbase USD spot prices, refreshed every 60 seconds by default, including while the app is hidden.
- Green/red compares with the previous successful refresh; white means unchanged. This is NOT a 24-hour change indicator.
- Amber indicates missing data or a quote older than five minutes.
- Checks HTTP status, JSON shape, ticker, currency and positive amounts. Bad responses never replace a good quote.
- Bounded polling, one outstanding request per coin; no retry storms during failures.
- Adjustable refresh interval (30-900 seconds) and display duration (3-60 seconds).
- Optional MQTT telemetry topic, disabled by default. No credentials in the script.
SETUP
Install on AWTRIX NG on a Ulanzi TC002. Internet access to api.coinbase.com is required. Fetching starts automatically. Last good prices remain in memory during an outage, but are not restored after reboot: the app shows ... until fresh quotes arrive.
ATTRIBUTION
Inspired by Avemer's Cryptocurrency Market: https://awtrix.de/script/bbq5QDWDHE8j
This separately published BTC+ETH variant replaces the single-coin fetch/parser, adds a two-row TC002 layout and explicitly handles errors, polling and stale quotes. It is not an update to Avemer's listing.
TESTED
Ulanzi TC002, AWTRIX NG 1.2.2. Both prices fetched, multiple automatic 60-second refreshes verified, actual device frame visually checked. No other apps or device settings changed.
Sign in to view and copy the code of this script.
Discussion 0
Ask a question, suggest a change or share how you use it.
No comments yet. Start the conversation.
More scripts in Miscellaneous
Something wrong with this script? Report it.
Have an idea?
Sign in to ask questions and join the conversation.