Use the iOS 16 WeatherKit APIs in Titanium!
- Xcode 14
- iOS 16
- WeatherKit enabled in the developer portal / entitlements
import WeatherKit from 'ti.weatherkit';
WeatherKit.getWeather({
latitude: 37.322998,
longitude: -122.032181,
callback: event => {
console.warn(event.currentWeather);
}
});
Hans Knöchel
MIT