MMM-OpenWeatherMapForecast
MMM-OpenWeatherMapForecast copied to clipboard
create a window of time for hourly forecasts
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
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}