feat(weather): flexible forecast scheduling (multiple times, intervals)#200
Open
xoma4ok wants to merge 10 commits into
Open
feat(weather): flexible forecast scheduling (multiple times, intervals)#200xoma4ok wants to merge 10 commits into
xoma4ok wants to merge 10 commits into
Conversation
adds the repo url in the git clone part
Fix scope handling behavior and improve logging options for packet capture service.
- Enhanced the command reference with detailed descriptions for `cmd`, `version`, `weather`, and `path` commands, including usage examples and configuration options. - Added new `RandomLine` command documentation for configurable triggers. - Updated configuration documentation to reflect the deprecation of the global `[Aliases]` section, encouraging per-command alias definitions. - Clarified the `[Rate_Limits]` and `[Webhook]` sections in the configuration guide. - Improved the web viewer documentation, emphasizing security practices and configuration options.
…age formatting - Implemented suppression of Discord mention notifications for bridged messages by setting `allowed_mentions` to an empty list, ensuring that mentions like `@everyone` and `@here` are displayed as plain text. - Updated documentation to reflect this change and clarify the formatting of mentions in bridged messages. - Adjusted payload structure in the Discord webhook integration to include `allowed_mentions` for better control over message parsing. - Enhanced unit tests to verify the inclusion of `allowed_mentions` in the message payload.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Replaces the single fixed-time
weather_alarmwith a flexible schedule parser supporting multiple formats:weather_alarm = 6:00, 12:00, 18:00every 2 hours,every 30 minutes,@hourly6:00,0600),sunrise,sunsetImplementation:
weather_alarm_schedule.pymodule (WeatherAlarmScheduledataclass + parser)IntervalTriggerinstead ofCronTrigger, so periods are counted from bot start rather than pinned to clock boundariesWeatherServiceregisters one APScheduler job per configured time for fixed mode, or a single interval job6:00with a warning logTests: 12 unit tests covering all schedule modes and trigger types.