Skip to content
nimatime
·v1.0.0·Apache-2.0

Weather Widget@axint/weather-widget

Home-screen weather widget across small, medium, and large families

widgetweather#widget#widgetkit#weather#home-screen
GitHub-linked publisherPublished with Axint 0.3.9Source includedDocs attachedLast revalidated on Axint 0.3.9 · 3h agoPolicy clear for v1.0.0
Open in Cloud
Installs 0 totalSupports typescript
Validation healthy3h ago
0E / 0W / 0I · Last revalidated on Axint 0.3.9

Registry installs are directional counts from install requests. Use source, validation, and publisher metadata before treating them as adoption proof.

Browser preview
Built in 42ms
Source
44 lines
Generated Swift
73 lines
axint typescript → Swift
README

@axint/weather-widget

A home-screen weather widget. Small, medium, and large families from one TypeScript definition.

axint add @axint/weather-widget

What you get

Compiling this template through Axint emits:

  • WeatherWidget.swift with a TimelineEntry, a TimelineProvider, a SwiftUI body, and a @main Widget conformance
  • Info.plist.fragment with the location usage description
  • Proper supportedFamilies() declarations for small, medium, and large

Where the data comes from

The widget expects a timeline provider that hands it a WeatherEntry each update. The template declares the entry shape; wire it up to WeatherKit, OpenWeatherMap, or any source in your app's timeline provider.

Customizing

Edit source/widget.ts to:

  • Change the body layout with the view.* helpers
  • Add new families (e.g. accessoryCircular for Apple Watch)
  • Adjust refreshInterval — default is 30 minutes

Recompile with:

axint compile source/widget.ts --out generated/

License

Apache-2.0