-
Notifications
You must be signed in to change notification settings - Fork 0
/
WeatherKit.sgmodule
20 lines (17 loc) · 3 KB
/
WeatherKit.sgmodule
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!name= iRingo: 🌤 WeatherKit
#!desc=iOS 18 & macOS 15 & watchOS 11\n1.解锁全部天气功能\n2.替换空气质量数据\n3.添加下一小时降水数据
#!openUrl=http://boxjs.com/#/app/iRingo.WeatherKit
#!author=Virgil Clyne & Wordless Echo
#!homepage=https://github.com/VirgilClyne/iRingo/wiki
#!manual=https://github.com/VirgilClyne/iRingo/wiki/🌤-天气服务
#!icon=https://developer.apple.com/assets/elements/icons/weatherkit/weatherkit-96x96_2x.png
#!category= iRingo
#!arguments=NextHour.Provider:ColorfulClouds,AQI.Provider:ColorfulClouds,AQI.ReplaceProviders:"",AQI.Local.Scale:"WAQI_InstantCast",AQI.Local.ReplaceScales:"HJ6332012",AQI.Local.ConvertUnits:false,API.ColorfulClouds.Token:"",API.QWeather.Host:"devapi.qweather.com",API.QWeather.Token:"",API.WAQI.Token:""
#!arguments-desc=NextHour.Provider: [未来一小时降水强度]数据源\n ├ WeatherKit: WeatherKit (不进行替换)\n ├ ColorfulClouds: 彩云天气\n └ QWeather: 和风天气\n\nAQI.Provider: [空气质量]数据源\n ├ WeatherKit: WeatherKit (不进行替换)\n ├ ColorfulClouds: 彩云天气\n ├ QWeather: 和风天气\n └ WAQI: The World Air Quality Project\n\nAQI.ReplaceProviders: [空气质量]需要替换的供应商\n ├ QWeather: 和风天气\n ├ BreezoMeter: BreezoMeter\n └ TWC: The Weather Channel\n\nAQI.Local.Scale: [空气质量]本地替换算法\n ├ NONE: 不进行替换\n └ WAQI_InstantCast: WAQI InstantCast\n\nAQI.Local.ReplaceScales: [空气质量]需要修改的标准\n └ HJ6332012: 中国 (HJ 633—2012)\n\nAQI.Local.ConvertUnits: [空气质量]转换污染物计量单位\nAPI.ColorfulClouds.Token: [API]彩云天气 API 令牌\nAPI.QWeather.Host: [API]和风天气 API 主机\n ├ devapi.qweather.com: 免费订阅\n └ api.qweather.com: 付费订阅\nAPI.QWeather.Token: [API]和风天气 API 令牌\nAPI.WAQI.Token: [API]WAQI API 令牌
[Rule]
DOMAIN,weather-analytics-events.apple.com,REJECT-DROP
[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://raw.githubusercontent.com/VirgilClyne/iRingo/main/js/WeatherKit.response.js, argument=
🌤 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://raw.githubusercontent.com/VirgilClyne/iRingo/main/js/WeatherKit.response.js, argument=NextHour.Provider={{{NextHour.Provider}}}&AQI.Provider={{{AQI.Provider}}}&AQI.ReplaceProviders={{{AQI.ReplaceProviders}}}&AQI.Local.Scale={{{AQI.Local.Scale}}}&AQI.Local.ReplaceScales={{{AQI.Local.ReplaceScales}}}&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}}}
[MITM]
hostname = %APPEND% weatherkit.apple.com