-
-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Add template weather forecast documentation #42524
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -2552,6 +2552,22 @@ weather: | |||||||||
|
|
||||||||||
| {% endconfiguration %} | ||||||||||
|
|
||||||||||
| ### Weather Forecast data | ||||||||||
|
|
||||||||||
| The weather forecast options should return a list of dictionaries, where each dictionary contains [forecast information](https://www.home-assistant.io/integrations/weather/#action-weatherget_forecasts) for the current timeframe. The data is slightly different for each forecast type: `hourly`, `daily`, and `twice_daily`. | ||||||||||
|
c0ffeeca7 marked this conversation as resolved.
|
||||||||||
|
|
||||||||||
| #### Hourly Weather Forecast | ||||||||||
|
||||||||||
| #### Hourly Weather Forecast | |
| #### Hourly weather forecast |
Copilot
AI
Dec 12, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The phrase "24 hour period" should be hyphenated when used as a compound adjective. It should be "24-hour period".
| The `hourly` forecast should contain 24 dictionaries, where each dictionary represents a specific hour within the next 24 hour period. The `hourly` data should start at the current hour and end 24 hours from that point. The `datetime` in each dictionary should represent the start of the hour in your local timezone. | |
| The `hourly` forecast should contain 24 dictionaries, where each dictionary represents a specific hour within the next 24-hour period. The `hourly` data should start at the current hour and end 24 hours from that point. The `datetime` in each dictionary should represent the start of the hour in your local timezone. |
Copilot
AI
Dec 12, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The heading uses title-style capitalization ("Daily Weather Forecast") but should use sentence-style capitalization according to the documentation standards. It should be "Daily weather forecast".
| #### Daily Weather Forecast | |
| #### Daily weather forecast |
Copilot
AI
Dec 12, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The heading uses title-style capitalization ("Twice Daily Weather Forecast") but should use sentence-style capitalization according to the documentation standards. It should be "Twice daily weather forecast".
| #### Twice Daily Weather Forecast | |
| #### Twice daily weather forecast |
Copilot
AI
Dec 12, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The phrase "12 hour period" should be hyphenated when used as a compound adjective. It should be "12-hour period".
| The `twice_daily` forecast should contain dictionaries, where each dictionary represents a specific 12 hour period within any desired timeframe. The `twice_daily` should start at the closest 12 hour period and end on the last 12 hour period of your desired timeframe. The `datetime` in each dictionary should represent midnight or noon for each day in your local timezone. Keep in mind, `is_daytime` is mandatory in every dictionary output to `twice_daily` forecasts. | |
| The `twice_daily` forecast should contain dictionaries, where each dictionary represents a specific 12-hour period within any desired timeframe. The `twice_daily` should start at the closest 12-hour period and end on the last 12-hour period of your desired timeframe. The `datetime` in each dictionary should represent midnight or noon for each day in your local timezone. Keep in mind, `is_daytime` is mandatory in every dictionary output to `twice_daily` forecasts. |
Copilot
AI
Dec 12, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are two spaces between sentences in this line. According to the style guide, only one space should be used after periods. The double space appears after "desired timeframe." and before "The datetime".
| The `twice_daily` forecast should contain dictionaries, where each dictionary represents a specific 12 hour period within any desired timeframe. The `twice_daily` should start at the closest 12 hour period and end on the last 12 hour period of your desired timeframe. The `datetime` in each dictionary should represent midnight or noon for each day in your local timezone. Keep in mind, `is_daytime` is mandatory in every dictionary output to `twice_daily` forecasts. | |
| The `twice_daily` forecast should contain dictionaries, where each dictionary represents a specific 12 hour period within any desired timeframe. The `twice_daily` should start at the closest 12 hour period and end on the last 12 hour period of your desired timeframe. The `datetime` in each dictionary should represent midnight or noon for each day in your local timezone. Keep in mind, `is_daytime` is mandatory in every dictionary output to `twice_daily` forecasts. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The heading uses title-style capitalization ("Weather Forecast data") but should use sentence-style capitalization according to the documentation standards. It should be "Weather forecast data".