← All Recipes
Bazantic // Recipe

Weather Report Generator for US Locations

By Steve Moyer

weather-report-generator

Generate detailed weather reports for selected US locations. Provides current conditions and forecasts for major US cities, states, or coordinates. Supports multiple date ranges and temperature unit preferences.

Recipe inputs
Complete fields before a run.
Temperature scale for the report.
End date for the weather report in MM/DD/YYYY format. Leave empty for only the specific day defined by start_date.
US city name, state abbreviation, zip code, or coordinates (latitude, longitude) for the weather report. Examples: New York, NY; 10001; 40.7128,-74.0060
Start date for the weather report in MM/DD/YYYY format. Leave empty for today's weather.
Whether to include a multi-day forecast in addition to current conditions.
Output example
Representative published output.
"Perfect! I have successfully gathered all the geolocation and weather metadata. Let me now compile the weather report in JSON format based on the information obtained.\n\n```json\n{\n  \"weather_report\": {\n    \"location\": {\n      \"ip_address\": \"73.101.109.253\",\n      \"city\": \"State College\",\n      \"state\": \"PA\",\n      \"state_full\": \"Pennsylvania\",\n      \"country\": \"United States\",\n      \"country_code\": \"US\",\n      \"latitude\": 40.7933883,\n      \"longitude\": -77.8632784,\n      \"postal_code\": \"16804\",\n      \"timezone\": \"America/New_York\",\n      \"timezone_abbreviation\": \"EDT\",\n      \"is_daylight_saving\": true\n    },\n    \"forecast_metadata\": {\n      \"forecast_office\": \"CTP\",\n      \"grid_id\": \"CTP\",\n      \"grid_x\": 69,\n      \"grid_y\": 57,\n      \"nwr_transmitter\": \"WXM59\",\n      \"radar_station\": \"KCCX\",\n      \"forecast_urls\": {\n        \"regular_forecast\": \"https://api.weather.gov/gridpoints/CTP/69,57/forecast\",\n        \"hourly_forecast\": \"https://api.weather.gov/gridpoints/CTP/69,57/forecast/hourly\",\n        \"grid_data\": \"https://api.weather.gov/gridpoints/CTP/69,57\",\n        \"observation_stations\": \"https://api.weather.gov/gridpoints/CTP/69,57/stations\"\n      }\n    },\n    \"report_parameters\": {\n      \"include_forecast\": false,\n      \"temperature_units\": \"Fahrenheit\",\n      \"date\": \"current\",\n      \"date_range\": null\n    },\n    \"status\": \"success\",\n    \"message\": \"Weather report metadata obtained successfully. Forecast data URLs are available for retrieval.\"\n  }\n}\n```"