nuomi1/TestWeatherKit

WWDC22

★ 3Forks 0SwiftGitHub ↗Compare

README

TestWeatherKit

This is a demo for WWDC22 - Session 10003 - Meet WeatherKit.

Swift

Here is a SwiftUI app for WeatherKit, you can follow the steps below to run it.

  1. Download Tuist
  2. Edit CUSTOM_USER_NAME and CUSTOM_TEAM_ID in Swift/Tuist/ProjectDescriptionHelpers/Project+Templates.swift
  3. Run tuist generate in Swift Directory
  4. Run the app

REST API

Here is a Python 3 program for WeatherKit, you can follow the steps below to run it.

  1. Install PyJWT and cryptography via pip3
  2. Download P8 file from Developer
  3. Edit CUSTOM_TEAM_ID, CUSTOM_SERVICE_ID|CUSTOM_APP_ID, CUSTOM_KEY_ID and CUSTOM_P8_FILE in Python3/get_token.py
  4. Run the program via main.py

Contributors

nuomi1

Issues