Quantcast
Channel: Rainmeter Forums
Viewing all articles
Browse latest Browse all 871

Community Tips & Tricks • Parsing the weather from wttr.in

$
0
0
This is actually a very interesting alternative to Weather.com...

The documentation is here:

https://github.com/chubin/wttr.in

And for instance, a URL like:

https://wttr.in/Alexandria, Virginia, United States?format=j1

Returns a TON of good information:

Code:

{    "current_condition": [        {            "FeelsLikeC": "26",            "FeelsLikeF": "79",            "cloudcover": "100",            "humidity": "74",            "localObsDateTime": "2024-10-04 03:53 PM",            "observation_time": "07:53 PM",            "precipInches": "0.0",            "precipMM": "0.0",            "pressure": "1021",            "pressureInches": "30",            "temp_C": "24",            "temp_F": "76",            "uvIndex": "5",            "visibility": "16",            "visibilityMiles": "9",            "weatherCode": "122",            "weatherDesc": [                {                    "value": "Overcast"                }            ],            "weatherIconUrl": [                {                    "value": ""                }            ],            "winddir16Point": "SSW",            "winddirDegree": "199",            "windspeedKmph": "7",            "windspeedMiles": "4"        }    ],    "nearest_area": [        {            "areaName": [                {                    "value": "Alexandria"                }            ],            "country": [                {                    "value": "United States of America"                }            ],            "latitude": "38.805",            "longitude": "-77.047",            "population": "127273",            "region": [                {                    "value": "Virginia"                }            ],            "weatherUrl": [                {                    "value": ""                }            ]        }    ],    "request": [        {            "query": "Lat 38.81 and Lon -77.05",            "type": "LatLon"        }    ],    "weather": [        {            "astronomy": [                {                    "moon_illumination": "1",                    "moon_phase": "Waxing Crescent",                    "moonrise": "08:51 AM",                    "moonset": "07:29 PM",                    "sunrise": "07:08 AM",                    "sunset": "06:45 PM"                }            ],            "avgtempC": "20",            "avgtempF": "68",            "date": "2024-10-04",            "hourly": [                {                    "DewPointC": "17",                    "DewPointF": "62",                    "FeelsLikeC": "19",                    "FeelsLikeF": "66",                    "HeatIndexC": "19",                    "HeatIndexF": "66",                    "WindChillC": "19",                    "WindChillF": "66",                    "WindGustKmph": "11",                    "WindGustMiles": "7",                    "chanceoffog": "0",                    "chanceoffrost": "0",                    "chanceofhightemp": "0",                    "chanceofovercast": "82",                    "chanceofrain": "0",                    "chanceofremdry": "85",                    "chanceofsnow": "0",                    "chanceofsunshine": "18",                    "chanceofthunder": "0",                    "chanceofwindy": "0",                    "cloudcover": "94",                    "diffRad": "0.0",                    "humidity": "90",                    "precipInches": "0.0",                    "precipMM": "0.0",                    "pressure": "1022",                    "pressureInches": "30",                    "shortRad": "0.0",                    "tempC": "19",                    "tempF": "66",                    "time": "0",                    "uvIndex": "1",                    "visibility": "10",                    "visibilityMiles": "6",                    "weatherCode": "122",                    "weatherDesc": [                        {                            "value": "Overcast "                        }                    ],                    "weatherIconUrl": [                        {                            "value": ""                        }                    ],                    "winddir16Point": "SSE",                    "winddirDegree": "158",                    "windspeedKmph": "6",                    "windspeedMiles": "4"                },                {                    "DewPointC": "16",                    "DewPointF": "61",                    "FeelsLikeC": "18",                    "FeelsLikeF": "65",                    "HeatIndexC": "18",                    "HeatIndexF": "65",                    "WindChillC": "18",                    "WindChillF": "65",                    "WindGustKmph": "11",                    "WindGustMiles": "7",                    "chanceoffog": "0",                    "chanceoffrost": "0",                    "chanceofhightemp": "0",                    "chanceofovercast": "41",                    "chanceofrain": "0",                    "chanceofremdry": "88",                    "chanceofsnow": "0",                    "chanceofsunshine": "77",                    "chanceofthunder": "0",                    "chanceofwindy": "0",                    "cloudcover": "57",                    "diffRad": "0.0",                    "humidity": "86",                    "precipInches": "0.0",                    "precipMM": "0.0",                    "pressure": "1022",                    "pressureInches": "30",                    "shortRad": "0.0",                    "tempC": "18",                    "tempF": "65",                    "time": "300",                    "uvIndex": "1",                    "visibility": "10",                    "visibilityMiles": "6",                    "weatherCode": "116",                    "weatherDesc": [                        {                            "value": "Partly Cloudy "                        }                    ],                    "weatherIconUrl": [                        {                            "value": ""                        }                    ],                    "winddir16Point": "SSE",                    "winddirDegree": "163",                    "windspeedKmph": "6",                    "windspeedMiles": "4"                },                {                    "DewPointC": "17",                    "DewPointF": "63",                    "FeelsLikeC": "18",                    "FeelsLikeF": "64",                    "HeatIndexC": "18",                    "HeatIndexF": "64",                    "WindChillC": "18",                    "WindChillF": "64",                    "WindGustKmph": "10",                    "WindGustMiles": "6",                    "chanceoffog": "0",                    "chanceoffrost": "0",                    "chanceofhightemp": "0",                    "chanceofovercast": "92",                    "chanceofrain": "0",                    "chanceofremdry": "83",                    "chanceofsnow": "0",                    "chanceofsunshine": "7",                    "chanceofthunder": "0",                    "chanceofwindy": "0",                    "cloudcover": "100",                    "diffRad": "0.0",                    "humidity": "98",                    "precipInches": "0.0",                    "precipMM": "0.0",                    "pressure": "1022",                    "pressureInches": "30",                    "shortRad": "0.0",                    "tempC": "18",                    "tempF": "64",                    "time": "600",                    "uvIndex": "1",                    "visibility": "2",                    "visibilityMiles": "1",                    "weatherCode": "248",                    "weatherDesc": [                        {                            "value": "Fog"                        }                    ],                    "weatherIconUrl": [                        {                            "value": ""                        }                    ],                    "winddir16Point": "SSW",                    "winddirDegree": "205",                    "windspeedKmph": "5",                    "windspeedMiles": "3"                },                {                    "DewPointC": "17",                    "DewPointF": "63",                    "FeelsLikeC": "19",                    "FeelsLikeF": "66",                    "HeatIndexC": "19",                    "HeatIndexF": "66",                    "WindChillC": "19",                    "WindChillF": "66",                    "WindGustKmph": "10",                    "WindGustMiles": "6",                    "chanceoffog": "0",                    "chanceoffrost": "0",                    "chanceofhightemp": "0",                    "chanceofovercast": "81",                    "chanceofrain": "0",                    "chanceofremdry": "92",                    "chanceofsnow": "0",                    "chanceofsunshine": "13",                    "chanceofthunder": "0",                    "chanceofwindy": "0",                    "cloudcover": "100",                    "diffRad": "58.4",                    "humidity": "95",                    "precipInches": "0.0",                    "precipMM": "0.0",                    "pressure": "1023",                    "pressureInches": "30",                    "shortRad": "194.0",                    "tempC": "19",                    "tempF": "66",                    "time": "900",                    "uvIndex": "4",                    "visibility": "10",                    "visibilityMiles": "6",                    "weatherCode": "143",                    "weatherDesc": [                        {                            "value": "Mist"                        }                    ],                    "weatherIconUrl": [                        {                            "value": ""                        }                    ],                    "winddir16Point": "SSW",                    "winddirDegree": "200",                    "windspeedKmph": "7",                    "windspeedMiles": "4"                },                {                    "DewPointC": "19",                    "DewPointF": "66",                    "FeelsLikeC": "22",                    "FeelsLikeF": "71",                    "HeatIndexC": "23",                    "HeatIndexF": "74",                    "WindChillC": "22",                    "WindChillF": "71",                    "WindGustKmph": "9",                    "WindGustMiles": "6",                    "chanceoffog": "0",                    "chanceoffrost": "0",                    "chanceofhightemp": "59",                    "chanceofovercast": "90",                    "chanceofrain": "0",                    "chanceofremdry": "84",                    "chanceofsnow": "0",                    "chanceofsunshine": "18",                    "chanceofthunder": "0",                    "chanceofwindy": "0",                    "cloudcover": "94",                    "diffRad": "115.4",                    "humidity": "81",                    "precipInches": "0.0",                    "precipMM": "0.0",                    "pressure": "1022",                    "pressureInches": "30",                    "shortRad": "419.0",                    "tempC": "22",                    "tempF": "71",                    "time": "1200",                    "uvIndex": "5",                    "visibility": "10",                    "visibilityMiles": "6",                    "weatherCode": "122",                    "weatherDesc": [                        {                            "value": "Overcast "                        }                    ],                    "weatherIconUrl": [                        {                            "value": ""                        }                    ],                    "winddir16Point": "SSW",                    "winddirDegree": "194",                    "windspeedKmph": "8",                    "windspeedMiles": "5"                },                {                    "DewPointC": "20",                    "DewPointF": "67",                    "FeelsLikeC": "25",                    "FeelsLikeF": "76",                    "HeatIndexC": "25",                    "HeatIndexF": "76",                    "WindChillC": "23",                    "WindChillF": "73",                    "WindGustKmph": "8",                    "WindGustMiles": "5",                    "chanceoffog": "0",                    "chanceoffrost": "0",                    "chanceofhightemp": "96",                    "chanceofovercast": "83",                    "chanceofrain": "0",                    "chanceofremdry": "80",                    "chanceofsnow": "0",                    "chanceofsunshine": "19",                    "chanceofthunder": "0",                    "chanceofwindy": "0",                    "cloudcover": "100",                    "diffRad": "82.8",                    "humidity": "74",                    "precipInches": "0.0",                    "precipMM": "0.0",                    "pressure": "1021",                    "pressureInches": "30",                    "shortRad": "137.5",                    "tempC": "24",                    "tempF": "76",                    "time": "1500",                    "uvIndex": "5",                    "visibility": "16",                    "visibilityMiles": "9",                    "weatherCode": "122",                    "weatherDesc": [                        {                            "value": "Overcast"                        }                    ],                    "weatherIconUrl": [                        {                            "value": ""                        }                    ],                    "winddir16Point": "SSW",                    "winddirDegree": "199",                    "windspeedKmph": "7",                    "windspeedMiles": "4"                },                {                    "DewPointC": "20",                    "DewPointF": "67",                    "FeelsLikeC": "22",                    "FeelsLikeF": "71",                    "HeatIndexC": "24",                    "HeatIndexF": "76",                    "WindChillC": "22",                    "WindChillF": "71",                    "WindGustKmph": "8",                    "WindGustMiles": "5",                    "chanceoffog": "0",                    "chanceoffrost": "0",                    "chanceofhightemp": "10",                    "chanceofovercast": "84",                    "chanceofrain": "0",                    "chanceofremdry": "85",                    "chanceofsnow": "0",                    "chanceofsunshine": "8",                    "chanceofthunder": "0",                    "chanceofwindy": "0",                    "cloudcover": "95",                    "diffRad": "91.0",                    "humidity": "87",                    "precipInches": "0.0",                    "precipMM": "0.0",                    "pressure": "1021",                    "pressureInches": "30",                    "shortRad": "166.1",                    "tempC": "22",                    "tempF": "71",                    "time": "1800",                    "uvIndex": "5",                    "visibility": "10",                    "visibilityMiles": "6",                    "weatherCode": "122",                    "weatherDesc": [                        {                            "value": "Overcast "                        }                    ],                    "weatherIconUrl": [                        {                            "value": ""                        }                    ],                    "winddir16Point": "SSE",                    "winddirDegree": "151",                    "windspeedKmph": "5",                    "windspeedMiles": "3"                },                {                    "DewPointC": "18",                    "DewPointF": "65",                    "FeelsLikeC": "20",                    "FeelsLikeF": "68",                    "HeatIndexC": "20",                    "HeatIndexF": "68",                    "WindChillC": "20",                    "WindChillF": "68",                    "WindGustKmph": "13",                    "WindGustMiles": "8",                    "chanceoffog": "0",                    "chanceoffrost": "0",                    "chanceofhightemp": "0",                    "chanceofovercast": "85",                    "chanceofrain": "0",                    "chanceofremdry": "88",                    "chanceofsnow": "0",                    "chanceofsunshine": "14",                    "chanceofthunder": "0",                    "chanceofwindy": "0",                    "cloudcover": "77",                    "diffRad": "0.0",                    "humidity": "93",                    "precipInches": "0.0",                    "precipMM": "0.0",                    "pressure": "1021",                    "pressureInches": "30",                    "shortRad": "0.0",                    "tempC": "20",                    "tempF": "68",                    "time": "2100",                    "uvIndex": "1",                    "visibility": "10",                    "visibilityMiles": "6",                    "weatherCode": "119",                    "weatherDesc": [                        {                            "value": "Cloudy "                        }                    ],                    "weatherIconUrl": [                        {                            "value": ""                        }                    ],                    "winddir16Point": "SSE",                    "winddirDegree": "163",                    "windspeedKmph": "6",                    "windspeedMiles": "4"                }            ],            "maxtempC": "23",            "maxtempF": "73",            "mintempC": "18",            "mintempF": "64",            "sunHour": "8.5",            "totalSnow_cm": "0.0",            "uvIndex": "3"        },        {            "astronomy": [                {                    "moon_illumination": "4",                    "moon_phase": "Waxing Crescent",                    "moonrise": "09:52 AM",                    "moonset": "07:55 PM",                    "sunrise": "07:08 AM",                    "sunset": "06:44 PM"                }            ],            "avgtempC": "21",            "avgtempF": "70",            "date": "2024-10-05",            "hourly": [                {                    "DewPointC": "18",                    "DewPointF": "65",                    "FeelsLikeC": "19",                    "FeelsLikeF": "66",                    "HeatIndexC": "19",                    "HeatIndexF": "66",                    "WindChillC": "19",                    "WindChillF": "66",                    "WindGustKmph": "12",                    "WindGustMiles": "8",                    "chanceoffog": "0",                    "chanceoffrost": "0",                    "chanceofhightemp": "0",                    "chanceofovercast": "83",                    "chanceofrain": "0",                    "chanceofremdry": "86",                    "chanceofsnow": "0",                    "chanceofsunshine": "16",                    "chanceofthunder": "0",                    "chanceofwindy": "0",                    "cloudcover": "91",                    "diffRad": "0.0",                    "humidity": "97",                    "precipInches": "0.0",                    "precipMM": "0.0",                    "pressure": "1021",                    "pressureInches": "30",                    "shortRad": "0.0",                    "tempC": "19",                    "tempF": "66",                    "time": "0",                    "uvIndex": "1",                    "visibility": "2",                    "visibilityMiles": "1",                    "weatherCode": "143",                    "weatherDesc": [                        {                            "value": "Mist"                        }                    ],                    "weatherIconUrl": [                        {                            "value": ""                        }                    ],                    "winddir16Point": "SSW",                    "winddirDegree": "201",                    "windspeedKmph": "6",                    "windspeedMiles": "4"                },                {                    "DewPointC": "18",                    "DewPointF": "65",                    "FeelsLikeC": "19",                    "FeelsLikeF": "66",                    "HeatIndexC": "19",                    "HeatIndexF": "66",                    "WindChillC": "19",                    "WindChillF": "66",                    "WindGustKmph": "4",                    "WindGustMiles": "3",                    "chanceoffog": "20",                    "chanceoffrost": "0",                    "chanceofhightemp": "0",                    "chanceofovercast": "89",                    "chanceofrain": "0",                    "chanceofremdry": "88",                    "chanceofsnow": "0",                    "chanceofsunshine": "11",                    "chanceofthunder": "0",                    "chanceofwindy": "0",                    "cloudcover": "100",                    "diffRad": "0.0",                    "humidity": "97",                    "precipInches": "0.0",                    "precipMM": "0.0",                    "pressure": "1020",                    "pressureInches": "30",                    "shortRad": "0.0",                    "tempC": "19",                    "tempF": "66",                    "time": "300",                    "uvIndex": "1",                    "visibility": "2",                    "visibilityMiles": "1",                    "weatherCode": "143",                    "weatherDesc": [                        {                            "value": "Mist"                        }                    ],                    "weatherIconUrl": [                        {                            "value": ""                        }                    ],                    "winddir16Point": "WSW",                    "winddirDegree": "246",                    "windspeedKmph": "2",                    "windspeedMiles": "1"                },                {                    "DewPointC": "19",                    "DewPointF": "66",                    "FeelsLikeC": "19",                    "FeelsLikeF": "67",                    "HeatIndexC": "19",                    "HeatIndexF": "67",                    "WindChillC": "19",                    "WindChillF": "67",                    "WindGustKmph": "11",                    "WindGustMiles": "7",                    "chanceoffog": "90",                    "chanceoffrost": "0",                    "chanceofhightemp": "0",                    "chanceofovercast": "87",                    "chanceofrain": "0",                    "chanceofremdry": "83",                    "chanceofsnow": "0",                    "chanceofsunshine": "14",                    "chanceofthunder": "0",                    "chanceofwindy": "0",                    "cloudcover": "85",                    "diffRad": "0.0",                    "humidity": "96",                    "precipInches": "0.0",                    "precipMM": "0.0",                    "pressure": "1021",                    "pressureInches": "30",                    "shortRad": "0.0",                    "tempC": "19",                    "tempF": "67",                    "time": "600",                    "uvIndex": "1",                    "visibility": "0",                    "visibilityMiles": "0",                    "weatherCode": "143",                    "weatherDesc": [                        {                            "value": "Mist"                        }                    ],                    "weatherIconUrl": [                        {                            "value": ""                        }                    ],                    "winddir16Point": "NNW",                    "winddirDegree": "340",                    "windspeedKmph": "6",                    "windspeedMiles": "4"                },                {                    "DewPointC": "17",                    "DewPointF": "62",                    "FeelsLikeC": "20",                    "FeelsLikeF": "68",                    "HeatIndexC": "20",                    "HeatIndexF": "68",                    "WindChillC": "20",                    "WindChillF": "68",                    "WindGustKmph": "14",                    "WindGustMiles": "9",                    "chanceoffog": "0",                    "chanceoffrost": "0",                    "chanceofhightemp": "0",                    "chanceofovercast": "38",                    "chanceofrain": "0",                    "chanceofremdry": "92",                    "chanceofsnow": "0",                    "chanceofsunshine": "81",                    "chanceofthunder": "0",                    "chanceofwindy": "0",                    "cloudcover": "27",                    "diffRad": "54.1",                    "humidity": "85",                    "precipInches": "0.0",                    "precipMM": "0.0",                    "pressure": "1022",                    "pressureInches": "30",                    "shortRad": "196.0",                    "tempC": "20",                    "tempF": "68",                    "time": "900",                    "uvIndex": "5",                    "visibility": "10",                    "visibilityMiles": "6",                    "weatherCode": "116",                    "weatherDesc": [                        {                            "value": "Partly Cloudy "                        }                    ],                    "weatherIconUrl": [                        {                            "value": ""                        }                    ],                    "winddir16Point": "N",                    "winddirDegree": "358",                    "windspeedKmph": "10",                    "windspeedMiles": "6"                },                {                    "DewPointC": "16",                    "DewPointF": "61",                    "FeelsLikeC": "26",                    "FeelsLikeF": "79",                    "HeatIndexC": "26",                    "HeatIndexF": "79",                    "WindChillC": "25",                    "WindChillF": "78",                    "WindGustKmph": "13",                    "WindGustMiles": "8",                    "chanceoffog": "0",                    "chanceoffrost": "0",                    "chanceofhightemp": "76",                    "chanceofovercast": "0",                    "chanceofrain": "0",                    "chanceofremdry": "83",                    "chanceofsnow": "0",                    "chanceofsunshine": "86",                    "chanceofthunder": "0",                    "chanceofwindy": "0",                    "cloudcover": "0",                    "diffRad": "73.5",                    "humidity": "55",                    "precipInches": "0.0",                    "precipMM": "0.0",                    "pressure": "1022",                    "pressureInches": "30",                    "shortRad": "445.7",                    "tempC": "25",                    "tempF": "78",                    "time": "1200",                    "uvIndex": "7",                    "visibility": "10",                    "visibilityMiles": "6",                    "weatherCode": "113",                    "weatherDesc": [                        {                            "value": "Sunny"                        }                    ],                    "weatherIconUrl": [                        {                            "value": ""                        }                    ],                    "winddir16Point": "N",                    "winddirDegree": "360",                    "windspeedKmph": "12",                    "windspeedMiles": "7"                },                {                    "DewPointC": "12",                    "DewPointF": "53",                    "FeelsLikeC": "25",                    "FeelsLikeF": "77",                    "HeatIndexC": "25",                    "HeatIndexF": "77",                    "WindChillC": "24",                    "WindChillF": "76",                    "WindGustKmph": "12",                    "WindGustMiles": "8",                    "chanceoffog": "0",                    "chanceoffrost": "0",                    "chanceofhightemp": "87",                    "chanceofovercast": "0",                    "chanceofrain": "0",                    "chanceofremdry": "82",                    "chanceofsnow": "0",                    "chanceofsunshine": "92",                    "chanceofthunder": "0",                    "chanceofwindy": "0",                    "cloudcover": "0",                    "diffRad": "83.8",                    "humidity": "46",                    "precipInches": "0.0",                    "precipMM": "0.0",                    "pressure": "1021",                    "pressureInches": "30",                    "shortRad": "648.9",                    "tempC": "24",                    "tempF": "76",                    "time": "1500",                    "uvIndex": "6",                    "visibility": "10",                    "visibilityMiles": "6",                    "weatherCode": "113",                    "weatherDesc": [                        {                            "value": "Sunny"                        }                    ],                    "weatherIconUrl": [                        {                            "value": ""                        }                    ],                    "winddir16Point": "NNW",                    "winddirDegree": "342",                    "windspeedKmph": "11",                    "windspeedMiles": "7"                },                {                    "DewPointC": "13",                    "DewPointF": "56",                    "FeelsLikeC": "23",                    "FeelsLikeF": "73",                    "HeatIndexC": "23",                    "HeatIndexF": "73",                    "WindChillC": "22",                    "WindChillF": "72",                    "WindGustKmph": "16",                    "WindGustMiles": "10",                    "chanceoffog": "0",                    "chanceoffrost": "0",                    "chanceofhightemp": "10",                    "chanceofovercast": "0",                    "chanceofrain": "0",                    "chanceofremdry": "83",                    "chanceofsnow": "0",                    "chanceofsunshine": "92",                    "chanceofthunder": "0",                    "chanceofwindy": "0",                    "cloudcover": "0",                    "diffRad": "67.7",                    "humidity": "57",                    "precipInches": "0.0",                    "precipMM": "0.0",                    "pressure": "1021",                    "pressureInches": "30",                    "shortRad": "429.7",                    "tempC": "22",                    "tempF": "72",                    "time": "1800",                    "uvIndex": "6",                    "visibility": "10",                    "visibilityMiles": "6",                    "weatherCode": "113",                    "weatherDesc": [                        {                            "value": "Sunny"                        }                    ],                    "weatherIconUrl": [                        {                            "value": ""                        }                    ],                    "winddir16Point": "NNW",                    "winddirDegree": "335",                    "windspeedKmph": "10",                    "windspeedMiles": "6"                },                {                    "DewPointC": "13",                    "DewPointF": "55",                    "FeelsLikeC": "19",                    "FeelsLikeF": "66",                    "HeatIndexC": "19",                    "HeatIndexF": "66",                    "WindChillC": "19",                    "WindChillF": "66",                    "WindGustKmph": "16",                    "WindGustMiles": "10",                    "chanceoffog": "0",                    "chanceoffrost": "0",                    "chanceofhightemp": "0",                    "chanceofovercast": "0",                    "chanceofrain": "0",                    "chanceofremdry": "87",                    "chanceofsnow": "0",                    "chanceofsunshine": "89",                    "chanceofthunder": "0",                    "chanceofwindy": "0",                    "cloudcover": "0",                    "diffRad": "0.0",                    "humidity": "68",                    "precipInches": "0.0",                    "precipMM": "0.0",                    "pressure": "1021",                    "pressureInches": "30",                    "shortRad": "0.0",                    "tempC": "19",                    "tempF": "66",                    "time": "2100",                    "uvIndex": "1",                    "visibility": "10",                    "visibilityMiles": "6",                    "weatherCode": "113",                    "weatherDesc": [                        {                            "value": "Clear "                        }                    ],                    "weatherIconUrl": [                        {                            "value": ""                        }                    ],                    "winddir16Point": "NNE",                    "winddirDegree": "28",                    "windspeedKmph": "8",                    "windspeedMiles": "5"                }            ],            "maxtempC": "27",            "maxtempF": "80",            "mintempC": "17",            "mintempF": "63",            "sunHour": "10.8",            "totalSnow_cm": "0.0",            "uvIndex": "4"        },        {            "astronomy": [                {                    "moon_illumination": "9",                    "moon_phase": "Waxing Crescent",                    "moonrise": "10:55 AM",                    "moonset": "08:26 PM",                    "sunrise": "07:09 AM",                    "sunset": "06:42 PM"                }            ],            "avgtempC": "18",            "avgtempF": "65",            "date": "2024-10-06",            "hourly": [                {                    "DewPointC": "11",                    "DewPointF": "52",                    "FeelsLikeC": "16",                    "FeelsLikeF": "62",                    "HeatIndexC": "16",                    "HeatIndexF": "62",                    "WindChillC": "16",                    "WindChillF": "62",                    "WindGustKmph": "13",                    "WindGustMiles": "8",                    "chanceoffog": "0",                    "chanceoffrost": "0",                    "chanceofhightemp": "0",                    "chanceofovercast": "0",                    "chanceofrain": "0",                    "chanceofremdry": "87",                    "chanceofsnow": "0",                    "chanceofsunshine": "90",                    "chanceofthunder": "0",                    "chanceofwindy": "0",                    "cloudcover": "0",                    "diffRad": "0.0",                    "humidity": "71",                    "precipInches": "0.0",                    "precipMM": "0.0",                    "pressure": "1021",                    "pressureInches": "30",                    "shortRad": "0.0",                    "tempC": "16",                    "tempF": "62",                    "time": "0",                    "uvIndex": "1",                    "visibility": "10",                    "visibilityMiles": "6",                    "weatherCode": "113",                    "weatherDesc": [                        {                            "value": "Clear "                        }                    ],                    "weatherIconUrl": [                        {                            "value": ""                        }                    ],                    "winddir16Point": "NE",                    "winddirDegree": "55",                    "windspeedKmph": "6",                    "windspeedMiles": "4"                },                {                    "DewPointC": "10",                    "DewPointF": "51",                    "FeelsLikeC": "15",                    "FeelsLikeF": "58",                    "HeatIndexC": "14",                    "HeatIndexF": "58",                    "WindChillC": "15",                    "WindChillF": "58",                    "WindGustKmph": "8",                    "WindGustMiles": "5",                    "chanceoffog": "0",                    "chanceoffrost": "0",                    "chanceofhightemp": "0",                    "chanceofovercast": "0",                    "chanceofrain": "0",                    "chanceofremdry": "93",                    "chanceofsnow": "0",                    "chanceofsunshine": "87",                    "chanceofthunder": "0",                    "chanceofwindy": "0",                    "cloudcover": "13",                    "diffRad": "0.0",                    "humidity": "78",                    "precipInches": "0.0",                    "precipMM": "0.0",                    "pressure": "1021",                    "pressureInches": "30",                    "shortRad": "0.0",                    "tempC": "14",                    "tempF": "58",                    "time": "300",                    "uvIndex": "1",                    "visibility": "10",                    "visibilityMiles": "6",                    "weatherCode": "113",                    "weatherDesc": [                        {                            "value": "Clear "                        }                    ],                    "weatherIconUrl": [                        {                            "value": ""                        }                    ],                    "winddir16Point": "NNE",                    "winddirDegree": "21",                    "windspeedKmph": "4",                    "windspeedMiles": "2"                },                {                    "DewPointC": "11",                    "DewPointF": "51",                    "FeelsLikeC": "14",                    "FeelsLikeF": "56",                    "HeatIndexC": "13",                    "HeatIndexF": "56",                    "WindChillC": "14",                    "WindChillF": "56",                    "WindGustKmph": "5",                    "WindGustMiles": "3",                    "chanceoffog": "0",                    "chanceoffrost": "0",                    "chanceofhightemp": "0",                    "chanceofovercast": "34",                    "chanceofrain": "0",                    "chanceofremdry": "80",                    "chanceofsnow": "0",                    "chanceofsunshine": "77",                    "chanceofthunder": "0",                    "chanceofwindy": "0",                    "cloudcover": "57",                    "diffRad": "0.0",                    "humidity": "84",                    "precipInches": "0.0",                    "precipMM": "0.0",                    "pressure": "1021",                    "pressureInches": "30",                    "shortRad": "0.0",                    "tempC": "13",                    "tempF": "56",                    "time": "600",                    "uvIndex": "1",                    "visibility": "10",                    "visibilityMiles": "6",                    "weatherCode": "116",                    "weatherDesc": [                        {                            "value": "Partly Cloudy "                        }                    ],                    "weatherIconUrl": [                        {                            "value": ""                        }                    ],                    "winddir16Point": "NNE",                    "winddirDegree": "19",                    "windspeedKmph": "2",                    "windspeedMiles": "1"                },                {                    "DewPointC": "10",                    "DewPointF": "51",                    "FeelsLikeC": "15",                    "FeelsLikeF": "60",                    "HeatIndexC": "15",                    "HeatIndexF": "60",                    "WindChillC": "15",                    "WindChillF": "60",                    "WindGustKmph": "2",                    "WindGustMiles": "2",                    "chanceoffog": "0",                    "chanceoffrost": "0",                    "chanceofhightemp": "0",                    "chanceofovercast": "87",                    "chanceofrain": "0",                    "chanceofremdry": "91",                    "chanceofsnow": "0",                    "chanceofsunshine": "16",                    "chanceofthunder": "0",                    "chanceofwindy": "0",                    "cloudcover": "90",                    "diffRad": "49.7",                    "humidity": "73",                    "precipInches": "0.0",                    "precipMM": "0.0",                    "pressure": "1020",                    "pressureInches": "30",                    "shortRad": "198.5",                    "tempC": "15",                    "tempF": "60",                    "time": "900",                    "uvIndex": "4",                    "visibility": "10",                    "visibilityMiles": "6",                    "weatherCode": "122",                    "weatherDesc": [                        {                            "value": "Overcast "                        }                    ],                    "weatherIconUrl": [                        {                            "value": ""                        }                    ],                    "winddir16Point": "SE",                    "winddirDegree": "129",                    "windspeedKmph": "2",                    "windspeedMiles": "1"                },                {                    "DewPointC": "12",                    "DewPointF": "53",                    "FeelsLikeC": "21",                    "FeelsLikeF": "69",                    "HeatIndexC": "21",                    "HeatIndexF": "70",                    "WindChillC": "21",                    "WindChillF": "69",                    "WindGustKmph": "8",                    "WindGustMiles": "5",                    "chanceoffog": "0",                    "chanceoffrost": "0",                    "chanceofhightemp": "15",                    "chanceofovercast": "94",                    "chanceofrain": "0",                    "chanceofremdry": "83",                    "chanceofsnow": "0",                    "chanceofsunshine": "19",                    "chanceofthunder": "0",                    "chanceofwindy": "0",                    "cloudcover": "46",                    "diffRad": "71.5",                    "humidity": "57",                    "precipInches": "0.0",                    "precipMM": "0.0",                    "pressure": "1019",                    "pressureInches": "30",                    "shortRad": "445.9",                    "tempC": "21",                    "tempF": "69",                    "time": "1200",                    "uvIndex": "5",                    "visibility": "10",                    "visibilityMiles": "6",                    "weatherCode": "122",                    "weatherDesc": [                        {                            "value": "Overcast "                        }                    ],                    "weatherIconUrl": [                        {                            "value": ""                        }                    ],                    "winddir16Point": "SSW",                    "winddirDegree": "193",                    "windspeedKmph": "7",                    "windspeedMiles": "4"                },                {                    "DewPointC": "14",                    "DewPointF": "57",                    "FeelsLikeC": "25",                    "FeelsLikeF": "77",                    "HeatIndexC": "25",                    "HeatIndexF": "77",                    "WindChillC": "24",                    "WindChillF": "74",                    "WindGustKmph": "12",                    "WindGustMiles": "8",                    "chanceoffog": "0",                    "chanceoffrost": "0",                    "chanceofhightemp": "79",                    "chanceofovercast": "0",                    "chanceofrain": "0",                    "chanceofremdry": "90",                    "chanceofsnow": "0",                    "chanceofsunshine": "89",                    "chanceofthunder": "0",                    "chanceofwindy": "0",                    "cloudcover": "0",                    "diffRad": "84.8",                    "humidity": "54",                    "precipInches": "0.0",                    "precipMM": "0.0",                    "pressure": "1017",                    "pressureInches": "30",                    "shortRad": "642.3",                    "tempC": "24",                    "tempF": "74",                    "time": "1500",                    "uvIndex": "6",                    "visibility": "10",                    "visibilityMiles": "6",                    "weatherCode": "113",                    "weatherDesc": [                        {                            "value": "Sunny"                        }                    ],                    "weatherIconUrl": [                        {                            "value": ""                        }                    ],                    "winddir16Point": "SW",                    "winddirDegree": "214",                    "windspeedKmph": "11",                    "windspeedMiles": "7"                },                {                    "DewPointC": "14",                    "DewPointF": "57",                    "FeelsLikeC": "22",                    "FeelsLikeF": "71",                    "HeatIndexC": "23",                    "HeatIndexF": "73",                    "WindChillC": "22",                    "WindChillF": "71",                    "WindGustKmph": "12",                    "WindGustMiles": "8",                    "chanceoffog": "0",                    "chanceoffrost": "0",                    "chanceofhightemp": "15",                    "chanceofovercast": "0",                    "chanceofrain": "0",                    "chanceofremdry": "88",                    "chanceofsnow": "0",                    "chanceofsunshine": "86",                    "chanceofthunder": "0",                    "chanceofwindy": "0",                    "cloudcover": "0",                    "diffRad": "68.1",                    "humidity": "60",                    "precipInches": "0.0",                    "precipMM": "0.0",                    "pressure": "1015",                    "pressureInches": "30",                    "shortRad": "423.1",                    "tempC": "22",                    "tempF": "71",                    "time": "1800",                    "uvIndex": "6",                    "visibility": "10",                    "visibilityMiles": "6",                    "weatherCode": "113",                    "weatherDesc": [                        {                            "value": "Sunny"                        }                    ],                    "weatherIconUrl": [                        {                            "value": ""                        }                    ],                    "winddir16Point": "SSW",                    "winddirDegree": "198",                    "windspeedKmph": "7",                    "windspeedMiles": "4"                },                {                    "DewPointC": "13",                    "DewPointF": "55",                    "FeelsLikeC": "19",                    "FeelsLikeF": "67",                    "HeatIndexC": "19",                    "HeatIndexF": "67",                    "WindChillC": "19",                    "WindChillF": "67",                    "WindGustKmph": "22",                    "WindGustMiles": "14",                    "chanceoffog": "0",                    "chanceoffrost": "0",                    "chanceofhightemp": "0",                    "chanceofovercast": "46",                    "chanceofrain": "0",                    "chanceofremdry": "90",                    "chanceofsnow": "0",                    "chanceofsunshine": "78",                    "chanceofthunder": "0",                    "chanceofwindy": "0",                    "cloudcover": "36",                    "diffRad": "0.0",                    "humidity": "68",                    "precipInches": "0.0",                    "precipMM": "0.0",                    "pressure": "1014",                    "pressureInches": "30",                    "shortRad": "0.0",                    "tempC": "19",                    "tempF": "67",                    "time": "2100",                    "uvIndex": "1",                    "visibility": "10",                    "visibilityMiles": "6",                    "weatherCode": "116",                    "weatherDesc": [                        {                            "value": "Partly Cloudy "                        }                    ],                    "weatherIconUrl": [                        {                            "value": ""                        }                    ],                    "winddir16Point": "S",                    "winddirDegree": "170",                    "windspeedKmph": "11",                    "windspeedMiles": "7"                }            ],            "maxtempC": "24",            "maxtempF": "75",            "mintempC": "13",            "mintempF": "56",            "sunHour": "10.0",            "totalSnow_cm": "0.0",            "uvIndex": "5"        }    ]}
Which would be reasonably easy to parse the JSON.

P.S. the value for weatherCode points to this:

https://www.worldweatheronline.com/weather-api/api/docs/weather-icons.aspx

So we might need a lookup, presumably in Lua, to match the weatherCode with a set of local icons.

Additional info via Yincognito:

Additional info on the source data for worldweatheronline.com:
https://www.worldweatheronline.com/weather-api/api/faq.aspx
On the (non free on the worldweatheronline.com side, free on the wttr.in side probably based on the contributors accounts or similar) API usage:
https://www.worldweatheronline.com/weather-api/api/docs/local-city-town-weather-api.aspx
Some short additional help on the parameters for wttr.in:
https://wttr.in/:help

Statistics: Posted by jsmorley — Yesterday, 10:01 pm — Replies 0 — Views 55



Viewing all articles
Browse latest Browse all 871

Trending Articles