-
Notifications
You must be signed in to change notification settings - Fork 16
/
weather.mixerbox.com.json
176 lines (176 loc) · 5.22 KB
/
weather.mixerbox.com.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
{
"openapi": "3.0.1",
"info": {
"title": "MixerBox Weather",
"description": "The plugin enables users to access real-time weather information and forecasts. After users type a weather query, it will provide all the essential details within the chat window.",
"version": "v1"
},
"servers": [
{
"url": "https://weather.mixerbox.com"
}
],
"paths": {
"/services?funcs=GetWeatherInfo&mobile=0": {
"get": {
"operationId": "getWeatherInfo",
"summary": "Get current or forecast weather data based on given locations, including over 200,000 cities around the world.",
"description": "With a simple weather query, the plugin delivers weather details, including a description of the weather conditions, temperature, humidity, rain probability, wind speed, and atmospheric pressure.",
"parameters": [
{
"in": "query",
"name": "longitude",
"schema": {
"type": "string"
},
"description": "The longitude of location you want to query for"
},
{
"in": "query",
"name": "latitude",
"schema": {
"type": "string"
},
"description": "The latitude of location you want to query for"
},
{
"in": "query",
"name": "dataType",
"schema": {
"type": "string",
"enum": [
"current",
"daily",
"5day_3hour"
]
},
"description": "Parameter to specify weather data type. \"daily\" support 1-day step for up to 16 days weather data, which is useful for long-term forecast. \"forecast_5day_3hour\" support 3-hour step for 5 days weather data, which is useful for short-term forecast"
},
{
"in": "query",
"name": "count",
"schema": {
"type": "string"
},
"description": "The count of weather item want to return. Only works when data type is \"daily\" or \"5day_3hour\""
}
],
"responses": {
"200": {
"description": "OK",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/WeatherInfoResponse"
}
}
}
}
}
}
}
},
"components": {
"schemas": {
"WeatherInfoResponse": {
"required": [
"getWeatherInfo"
],
"type": "object",
"properties": {
"getWeatherInfo": {
"type": "object",
"properties": {
"items": {
"type": "array",
"title": "Result Of Weather Item List",
"description": "Result of weather item list.",
"items": {
"$ref": "#/components/schemas/WeatherItem"
}
},
"rules": {
"type": "array",
"title": "The array of rules which recommend gpt to follow.",
"description": "The array of rules which recommend gpt to follow.",
"items": {
"type": "string"
}
}
}
}
}
},
"WeatherItem": {
"type": "object",
"properties": {
"timestamp": {
"type": "integer",
"title": "Data Timestamp"
},
"description": {
"type": "string",
"title": "Description Text"
},
"temperature": {
"type": "object",
"title": "Temperature Metrics",
"properties": {
"average": {
"type": "number",
"title": "Average Temperature"
},
"max": {
"type": "number",
"title": "Max Temperature"
},
"min": {
"type": "number",
"title": "Min Temperature"
},
"feels_like": {
"type": "number",
"title": "Feels Like Temperature"
}
}
},
"clouds": {
"type": "number",
"title": "Cloudiness"
},
"wind": {
"type": "object",
"title": "Wind Metrics",
"properties": {
"speed": {
"type": "number",
"title": "Wind Speed"
},
"deg": {
"type": "number",
"title": "Wind Direction in Degrees"
},
"gust": {
"type": "number",
"title": "Wind Gust"
}
}
},
"humidity": {
"type": "number",
"title": "Humidity",
"description": "Humidity in %"
},
"pressure": {
"type": "number",
"title": "Atmospheric Pressure"
},
"pop": {
"type": "number",
"title": "Probability of Precipitation"
}
}
}
}
}
}