File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -33,22 +33,23 @@ User-Agent.
3333
3434``` javascript
3535await web_fetch ({
36- url: " https://wttr.in/London?format=j1 " ,
36+ url: " https://wttr.in/London?format=j2 " ,
3737 extractMode: " text" ,
3838 maxChars: 12000 ,
3939});
4040```
4141
4242For short answers, summarize ` current_condition[0] ` , ` nearest_area[0] ` , and the
43- first entries in ` weather[] ` . Useful JSON fields:
43+ first entries in ` weather[] ` . Use ` format=j2 ` for normal summaries because it
44+ omits bulky hourly data and fits the default ` web_fetch ` output cap. Useful JSON fields:
4445
4546- ` current_condition[0].weatherDesc[0].value ` : condition
4647- ` current_condition[0].temp_C ` / ` temp_F ` : temperature
4748- ` current_condition[0].FeelsLikeC ` / ` FeelsLikeF ` : feels like
4849- ` current_condition[0].precipMM ` : precipitation
4950- ` current_condition[0].humidity ` : humidity
5051- ` current_condition[0].windspeedKmph ` / ` windspeedMiles ` : wind speed
51- - ` weather[].date ` , ` maxtempC ` , ` mintempC ` , ` hourly[] ` : forecast
52+ - ` weather[].date ` , ` maxtempC ` , ` mintempC ` : forecast
5253
5354## Fallback: curl
5455
You can’t perform that action at this time.
0 commit comments