Skip to content

Conversation

@MrTimbones
Copy link
Contributor

@MrTimbones MrTimbones commented Sep 28, 2024

This enhancement adds a "look ahead" setting to graph widgets so that they can show data in the future, for data that's collected from forecasts.

image

For example: outdoor temperature, with actual vs forecast temperature, set to 24 hours with a 12 hour look ahead. Whenever this graph loads or refreshes, the current time will be in the middle. By chance, zooming out will keep centred on the current time.

image

Another useful example is to plot the upcoming Agile price:

image

...and solar power forecasts:

image

This supersedes PR 143 that also added auto-refresh and has been included into this one

@TrystanLea
Copy link
Member

Hello Tim, I think this option should ideally be saved in the saved graph object. Rather than added in as an external parameter. E.g alongside the floatingtime paramater which is probably the best example of such a parameter?

@MrTimbones
Copy link
Contributor Author

MrTimbones commented Sep 30, 2024

Maybe. I wasn't sure that this would be useful outside of dashboards.

The Graph page doesn't have a use-editable field for floatingtime, it's just set magically based on wherever the user happens to save it. Would it be sensible to automagically set the lookahead if chart is scrolled into the future when saved?

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.

2 participants