#!name =  iRingo: 🌤 WeatherKit #!desc = iOS 18 & macOS 15 & watchOS 11\n1.解锁全部天气功能\n2.替换空气质量数据\n3.添加下一小时降水数据\n4.添加天气数据 #!openUrl = http://boxjs.com/#/app/iRingo.WeatherKit #!author = VirgilClyne[https://github.com/VirgilClyne],WordlessEcho[https://github.com/WordlessEcho],001[https://github.com/001ProMax] #!homepage = https://NSRingo.github.io/guide/Weather/weather-kit #!icon = https://developer.apple.com/assets/elements/icons/weatherkit/weatherkit-128x128.png #!category =  iRingo #!date = 2025-09-09 16:47:30 #!version = 2.0.6 #!arguments = DataSets:"airQuality,currentWeather,forecastDaily,forecastHourly,forecastNextHour,locationInfo,news,historicalComparisons,weatherAlerts,weatherChanges",Weather.Provider:"WeatherKit",NextHour.Provider:"ColorfulClouds",AQI.Provider:"ColorfulClouds",AQI.ReplaceProviders:"QWeather",AQI.ComparisonProvider:"Auto",AQI.Local.ReplaceScales:"HJ6332012",AQI.Local.Scale:"EPA_NowCast",AQI.Local.ConvertUnits:false,API.ColorfulClouds.Token:"",API.QWeather.Host:"devapi.qweather.com",API.QWeather.Token:"",API.WAQI.Token:"",LogLevel:"WARN" #!arguments-desc = DataSets: [数据集]\n ├ airQuality: 空气质量\n ├ currentWeather: 当前天气\n ├ forecastDaily: 每日预报\n ├ forecastHourly: 每小时预报\n ├ forecastNextHour: 未来一小时降水强度\n ├ locationInfo: 位置信息\n ├ news: 新闻\n ├ historicalComparisons: 历史对比\n ├ weatherAlerts: 天气预警\n └ weatherChanges: 天气变化\n选中的数据集会被包含在请求中。\n\nWeather.Provider: [天气] 数据源\n ├ WeatherKit: WeatherKit (不进行替换)\n ├ ColorfulClouds: 彩云天气\n └ QWeather: 和风天气\n始终会使用选定的数据源,替换天气数据。\n\nNextHour.Provider: [未来一小时降水强度] 数据源\n ├ WeatherKit: WeatherKit (不进行替换)\n ├ ColorfulClouds: 彩云天气\n └ QWeather: 和风天气\n始终会使用选定的数据源,填补无降水监测地区的数据。\n\nAQI.Provider: [空气质量] 数据源\n ├ WeatherKit: WeatherKit (不进行替换)\n ├ ColorfulClouds: 彩云天气\n ├ QWeather: 和风天气\n └ WAQI: The World Air Quality Project\n始终会使用选定的数据源,填补无空气质量监测地区的数据。\n\nAQI.ReplaceProviders: [空气质量] 需要替换的供应商\n ├ QWeather: 和风天气\n ├ BreezoMeter: BreezoMeter\n └ TWC: The Weather Channel\n选中的空气质量数据源会被替换。\n\nAQI.ComparisonProvider: [空气质量] 对比昨日数据源\n ├ Auto: 自动选择 (与[空气质量] 数据源一致)\n ├ WeatherKit: WeatherKit (不进行替换)\n ├ ColorfulClouds: 彩云天气\n └ QWeather: 和风天气\n始终会使用选定的数据源,填补无对比昨日地区的数据。\n\nAQI.Local.ReplaceScales: [空气质量] 需要修改的标准\n ├ HJ6332012: 中国 (HJ 633—2012)\n └ EPA_NowCast: 美国 (EPA NowCast)\n选中的空气质量标准会被替换。请注意各国监测的污染物种类可能有所不同,转换算法或API未必适合当地。\n\nAQI.Local.Scale: [空气质量] 本地替换算法\n ├ NONE: None (不进行替换)\n ├ EPA_NowCast: 美国 (EPA NowCast)\n └ WAQI_InstantCast: WAQI InstantCast\n本地替换时使用的算法\n\nAQI.Local.ConvertUnits: [空气质量] 转换污染物计量单位\n将污染物数据替换为转换单位后的数据,方便对照转换后的标准。(不推荐。不同单位互转可能会损失精度,导致数值偏大)\n\nAPI.ColorfulClouds.Token: [API] 彩云天气令牌\n彩云天气 API 令牌\n\nAPI.QWeather.Host: [API] 和风天气主机\n和风天气 API 使用的主机名\n\nAPI.QWeather.Token: [API] 和风天气令牌\n和风天气 API 令牌\n\nAPI.WAQI.Token: [API] WAQI 令牌\nWAQI API 令牌,填写此字段将自动使用WAQI高级API\n\nLogLevel: [调试] 日志等级\n ├ OFF: 关闭\n ├ ERROR: ❌ 错误\n ├ WARN: ⚠️ 警告\n ├ INFO: ℹ️ 信息\n ├ DEBUG: 🅱️ 调试\n └ ALL: 全部\n选择脚本日志的输出等级,低于所选等级的日志将全部输出。\n [Rule] DOMAIN,weather-analytics-events.apple.com,REJECT-DROP DOMAIN-SUFFIX,tthr.apple.com,REJECT-DROP,extended-matching DOMAIN,tether.edge.apple,REJECT-DROP,extended-matching [Script] 🌤 WeatherKit.api.v1.availability.response = type=http-response, pattern=^https?:\/\/weatherkit\.apple\.com\/api\/v1\/availability\/, requires-body=1, engine=webview, script-path=https://github.com/NSRingo/WeatherKit/releases/download/v2.0.6/response.bundle.js, argument=DataSets="{{{DataSets}}}"&Weather.Provider="{{{Weather.Provider}}}"&NextHour.Provider="{{{NextHour.Provider}}}"&AQI.Provider="{{{AQI.Provider}}}"&AQI.ReplaceProviders="{{{AQI.ReplaceProviders}}}"&AQI.ComparisonProvider="{{{AQI.ComparisonProvider}}}"&AQI.Local.ReplaceScales="{{{AQI.Local.ReplaceScales}}}"&AQI.Local.Scale="{{{AQI.Local.Scale}}}"&AQI.Local.ConvertUnits="{{{AQI.Local.ConvertUnits}}}"&API.ColorfulClouds.Token="{{{API.ColorfulClouds.Token}}}"&API.QWeather.Host="{{{API.QWeather.Host}}}"&API.QWeather.Token="{{{API.QWeather.Token}}}"&API.WAQI.Token="{{{API.WAQI.Token}}}"&LogLevel="{{{LogLevel}}}" 🌤 WeatherKit.api.v2.weather.request = type=http-request, pattern=^https?:\/\/weatherkit\.apple\.com\/api\/v2\/weather\/, engine=webview, script-path=https://github.com/NSRingo/WeatherKit/releases/download/v2.0.6/request.bundle.js, argument=DataSets="{{{DataSets}}}"&Weather.Provider="{{{Weather.Provider}}}"&NextHour.Provider="{{{NextHour.Provider}}}"&AQI.Provider="{{{AQI.Provider}}}"&AQI.ReplaceProviders="{{{AQI.ReplaceProviders}}}"&AQI.ComparisonProvider="{{{AQI.ComparisonProvider}}}"&AQI.Local.ReplaceScales="{{{AQI.Local.ReplaceScales}}}"&AQI.Local.Scale="{{{AQI.Local.Scale}}}"&AQI.Local.ConvertUnits="{{{AQI.Local.ConvertUnits}}}"&API.ColorfulClouds.Token="{{{API.ColorfulClouds.Token}}}"&API.QWeather.Host="{{{API.QWeather.Host}}}"&API.QWeather.Token="{{{API.QWeather.Token}}}"&API.WAQI.Token="{{{API.WAQI.Token}}}"&LogLevel="{{{LogLevel}}}" 🌤 WeatherKit.api.v2.weather.response = type=http-response, pattern=^https?:\/\/weatherkit\.apple\.com\/api\/v2\/weather\/, requires-body=1, binary-body-mode=1, engine=webview, script-path=https://github.com/NSRingo/WeatherKit/releases/download/v2.0.6/response.bundle.js, argument=DataSets="{{{DataSets}}}"&Weather.Provider="{{{Weather.Provider}}}"&NextHour.Provider="{{{NextHour.Provider}}}"&AQI.Provider="{{{AQI.Provider}}}"&AQI.ReplaceProviders="{{{AQI.ReplaceProviders}}}"&AQI.ComparisonProvider="{{{AQI.ComparisonProvider}}}"&AQI.Local.ReplaceScales="{{{AQI.Local.ReplaceScales}}}"&AQI.Local.Scale="{{{AQI.Local.Scale}}}"&AQI.Local.ConvertUnits="{{{AQI.Local.ConvertUnits}}}"&API.ColorfulClouds.Token="{{{API.ColorfulClouds.Token}}}"&API.QWeather.Host="{{{API.QWeather.Host}}}"&API.QWeather.Token="{{{API.QWeather.Token}}}"&API.WAQI.Token="{{{API.WAQI.Token}}}"&LogLevel="{{{LogLevel}}}" [MITM] hostname = %APPEND% weatherkit.apple.com