diff --git a/apps/windytron/manifest.yaml b/apps/windytron/manifest.yaml index 56cf77ead..b1e67ed5c 100644 --- a/apps/windytron/manifest.yaml +++ b/apps/windytron/manifest.yaml @@ -11,4 +11,4 @@ category: weather tags: - utility published: '2025-07-09T21:13:02Z' -updated: '2026-03-29T21:40:14Z' +updated: '2026-07-13T21:09:52Z' diff --git a/apps/windytron/windytron.star b/apps/windytron/windytron.star index 65f86ec85..a087fbea9 100644 --- a/apps/windytron/windytron.star +++ b/apps/windytron/windytron.star @@ -21,6 +21,8 @@ station_lookup = { "hookipa.json": "Ho'okipa", "ukumehame.json": "Ukumehame", "kihei.json": "Kihei", + "molokai_airport.json": "Moloka'i Airport", + "kalaupapa.json": "Kalaupapa", "swell_city.json": "Swell City", "stevenson_light.json": "Stevenson", "viento.json": "Viento", @@ -94,6 +96,11 @@ def main(config): # Use custom label if set, otherwise use display name from lookup label = custom_label if custom_label != "" else station_lookup.get(station, "Wind") + if wind_gust == 0: + wind_text = "%d %s" % (wind_avg, display_units) + else: + wind_text = "%dg%d %s" % (wind_avg, wind_gust, display_units) + return render.Root( child = render.Box( render.Column( @@ -106,7 +113,7 @@ def main(config): color = label_color, ), render.Text( - content = "%dg%d %s" % (wind_avg, wind_gust, display_units), + content = wind_text, font = "6x13", color = wind_color, ),