Text Widget Examples
Example 1: Current Temperature (Open-Meteo)
Datasource Setup
- Add datasource.
- Set
Type = HTTP. - Set
Title = weatherLondon. - Set
URL = https://api.open-meteo.com/v1/forecast?latitude=51.5072&longitude=-0.1276¤t_weather=true. - Set
Refresh = 60seconds. - Save.
Widget Setup
- Add widget.
- Set
Type = Text. - Set
Title = London Temp. - Set
Header Text = London. - Set
Unit Text = °C. - Set
Precision = 1. - Set
Size = Big. - Set
Value Path = weatherLondon.current_weather.temperature. - Save.
Expected output: current London temperature in Celsius.
Example 2: BTC Price (CoinGecko)
Datasource Setup
- Add datasource.
- Set
Type = HTTP. - Set
Title = btcUsd. - Set
URL = https://api.coingecko.com/api/v3/simple/price?ids=bitcoin&vs_currencies=usd. - Set
Refresh = 30seconds. - Save.
Widget Setup
- Add widget.
- Set
Type = Text. - Set
Title = BTC Price. - Set
Header Text = Bitcoin. - Set
Unit Text = USD. - Set
Precision = 0. - Set
Animate Numeric Changes = true. - Set
Value Path = btcUsd.bitcoin.usd. - Save.
Expected output: live BTC/USD spot price.