@apiverve/weatherforecast 1.0.3 → 1.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +18 -120
  2. package/package.json +5 -5
package/README.md CHANGED
@@ -71,126 +71,24 @@ api.execute(query, function (error, data) {
71
71
  "status": "ok",
72
72
  "error": null,
73
73
  "data": {
74
- "location": {
75
- "name": "San Francisco",
76
- "region": "California",
77
- "country": "United States of America",
78
- "lat": 37.78,
79
- "lon": -122.42,
80
- "tz_id": "America/Los_Angeles",
81
- "localtime_epoch": 1715809997,
82
- "localtime": "2024-05-15 14:53"
83
- },
84
- "current": {
85
- "tempC": 17.2,
86
- "tempF": 63,
87
- "windMph": 16.1,
88
- "windKph": 25.9,
89
- "windDegree": 300,
90
- "windDir": "WNW",
91
- "pressureMb": 1013,
92
- "pressureIn": 29.91,
93
- "precipMm": 0,
94
- "precipIn": 0,
95
- "feelslikeC": 17.2,
96
- "feelslikeF": 63,
97
- "visKm": 16,
98
- "visMiles": 9,
99
- "gustMph": 20.6,
100
- "gustKph": 33.1
101
- },
102
- "forecast": {
103
- "forecastday": [
104
- {
105
- "date": "2024-05-15",
106
- "date_epoch": 1715731200,
107
- "day": {
108
- "maxtemp_c": 16.7,
109
- "maxtemp_f": 62.1,
110
- "mintemp_c": 10.9,
111
- "mintemp_f": 51.6,
112
- "avgtemp_c": 13.6,
113
- "avgtemp_f": 56.6,
114
- "maxwind_mph": 13.2,
115
- "maxwind_kph": 21.2,
116
- "totalprecip_mm": 0.06,
117
- "totalprecip_in": 0,
118
- "totalsnow_cm": 0,
119
- "avgvis_km": 10,
120
- "avgvis_miles": 6,
121
- "avghumidity": 80,
122
- "daily_will_it_rain": 0,
123
- "daily_chance_of_rain": 0,
124
- "daily_will_it_snow": 0,
125
- "daily_chance_of_snow": 0,
126
- "condition": {
127
- "text": "Sunny",
128
- "code": 1000
129
- },
130
- "uv": 9
131
- }
132
- },
133
- {
134
- "date": "2024-05-16",
135
- "date_epoch": 1715817600,
136
- "day": {
137
- "maxtemp_c": 17.3,
138
- "maxtemp_f": 63.1,
139
- "mintemp_c": 12,
140
- "mintemp_f": 53.5,
141
- "avgtemp_c": 14,
142
- "avgtemp_f": 57.2,
143
- "maxwind_mph": 12.8,
144
- "maxwind_kph": 20.5,
145
- "totalprecip_mm": 0.06,
146
- "totalprecip_in": 0,
147
- "totalsnow_cm": 0,
148
- "avgvis_km": 10,
149
- "avgvis_miles": 6,
150
- "avghumidity": 81,
151
- "daily_will_it_rain": 0,
152
- "daily_chance_of_rain": 0,
153
- "daily_will_it_snow": 0,
154
- "daily_chance_of_snow": 0,
155
- "condition": {
156
- "text": "Sunny",
157
- "code": 1000
158
- },
159
- "uv": 8
160
- }
161
- },
162
- {
163
- "date": "2024-05-17",
164
- "date_epoch": 1715904000,
165
- "day": {
166
- "maxtemp_c": 17,
167
- "maxtemp_f": 62.6,
168
- "mintemp_c": 11.5,
169
- "mintemp_f": 52.7,
170
- "avgtemp_c": 13.9,
171
- "avgtemp_f": 57,
172
- "maxwind_mph": 12.3,
173
- "maxwind_kph": 19.8,
174
- "totalprecip_mm": 0.05,
175
- "totalprecip_in": 0,
176
- "totalsnow_cm": 0,
177
- "avgvis_km": 10,
178
- "avgvis_miles": 6,
179
- "avghumidity": 78,
180
- "daily_will_it_rain": 0,
181
- "daily_chance_of_rain": 0,
182
- "daily_will_it_snow": 0,
183
- "daily_chance_of_snow": 0,
184
- "condition": {
185
- "text": "Sunny",
186
- "code": 1000
187
- },
188
- "uv": 9
189
- }
190
- }
191
- ]
192
- }
193
- }
74
+ "tempC": 17.8,
75
+ "tempF": 64,
76
+ "windMph": 4.3,
77
+ "windKph": 6.8,
78
+ "windDegree": 270,
79
+ "windDir": "W",
80
+ "pressureMb": 1016,
81
+ "pressureIn": 30,
82
+ "precipMm": 0,
83
+ "precipIn": 0,
84
+ "feelslikeC": 17.8,
85
+ "feelslikeF": 64,
86
+ "visKm": 16,
87
+ "visMiles": 9,
88
+ "gustMph": 13.7,
89
+ "gustKph": 22.1
90
+ },
91
+ "code": 200
194
92
  }
195
93
  ```
196
94
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apiverve/weatherforecast",
3
- "version": "1.0.3",
3
+ "version": "1.1.4",
4
4
  "description": "Weather is a simple tool for getting the current weather. It returns the temperature, humidity, and more for a given location.",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -18,15 +18,15 @@
18
18
  "bugs": {
19
19
  "url": "https://github.com/apiverve/weatherforecast-API/issues"
20
20
  },
21
- "homepage": "https://github.com/apiverve/weatherforecast-API",
21
+ "homepage": "https://apiverve.com/marketplace/api/weatherforecast",
22
22
  "devDependencies": {
23
- "mocha": "^10.4.0",
23
+ "mocha": "^10.7.3",
24
24
  "chai": "^5.1.1",
25
25
  "dotenv": "^16.4.5"
26
26
  },
27
27
  "dependencies": {
28
- "node-fetch": "3.3.2",
28
+ "node-fetch": "^3.3.2",
29
29
  "promise": "^8.3.0",
30
- "axios": "1.6.8"
30
+ "axios": "1.7.4"
31
31
  }
32
32
  }