Skip to content
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

create a window of time for hourly forecasts #3

Closed
wants to merge 0 commits into from

Conversation

mossglenn
Copy link

Adds hourliesIncludeBetween to the config to create a timeframe for hourly forecasts (instead of only using current time).

hourliesIncludeBetween
What the timeframe is that you want to forecast with hourly forecasts. Accepts an object { } with two integers called start and end (see example). start indicates what hour (0-24) each day's hourly forecast will begin. end indicates what real hour (0-24) of the day the hourly forecast will skip to tomorrow's forecast. Set either to a value of -1 to remove that limit. The number of hourly forecasts displayed is still determined by maxHourliesToShow. For example, if hourliesIncludeBetween is {start: 14, end: 18} and maxHourliesToShow is 3 then

  • before 3 PM, the hourly forecast will display the forecast for 2 PM, 3 PM, and 4 PM today
  • at 3 PM, the hourly forecast will display the forecast for 3 PM, 4 PM, and 5 PM today
  • at 4 PM, the hourly forecast will display the forecast for 4 PM, 5 PM, and 6 PM today
  • at 5 PM, the hourly forecast will display the forecast for 5 PM, 6 PM, and 7 PM today
  • at 6 PM, the hourly forecast will display the forecast for tomorrow at 2 PM, 3 PM, and 4 PM

Type Object requiring keys named start and end, each accepting an interger between -1 and 24 (-1 means no limit is used)

Defaults to {start: -1, end: -1}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant