Indicator Widget Examples
Example 1: Day/Night Status (Open-Meteo)
Datasource Setup
- Add datasource.
- Set
Type = HTTP. - Set
Title = tokyoWeather. - Set
URL = https://api.open-meteo.com/v1/forecast?latitude=35.6762&longitude=139.6503¤t_weather=true. - Set
Refresh = 60seconds. - Save.
Widget Setup
- Add widget.
- Set
Type = Indicator. - Set
Title = Tokyo Daylight. - Set
Header Text = Tokyo. - Set
On Text = Day. - Set
Off Text = Night. - Set
On Color = #16a34a. - Set
Off Color = #4b5563. - Set
Value Path = tokyoWeather.current_weather.is_day. - Save.
Expected output: green indicator during day, gray at night.
Example 2: DST Active (WorldTimeAPI)
Datasource Setup
- Add datasource.
- Set
Type = HTTP. - Set
Title = nyTime. - Set
URL = https://worldtimeapi.org/api/timezone/America/New_York. - Set
Refresh = 300seconds. - Save.
Widget Setup
- Add widget.
- Set
Type = Indicator. - Set
Title = New York DST. - Set
Header Text = NY Time. - Set
On Text = DST On. - Set
Off Text = Standard Time. - Set
On Color = #22c55e. - Set
Off Color = #64748b. - Set
Value Path = nyTime.dst. - Save.
Expected output: shows if daylight saving time is active.