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

Feature: Add a simple graph showing solar elevation in the terminal with the report subcommand #28

Open
mfreeborn opened this issue Dec 28, 2020 · 2 comments

Comments

@mfreeborn
Copy link
Owner

It would be great if the report subcommand showed a simple line chart with time on the x axis and solar elevation on the y axis.

It would be even better if the chart could be annotated with, for example, sunrise, sunset and solar noon.

I've had a play around with textplots-rs, but it's missing a few key featrures:

  • specifying y axis range
  • specifying individual axis tick locations
  • time-series axis labels
  • annotations

Here is an example of what I can achieve with it up to its limitations:

Screenshot from 2020-12-28 17-36-35

And, for reference, this is the graph I would like to replicate:

example sunrise chart

@mfreeborn
Copy link
Owner Author

Plotters may be a better option, but the console backend is still WIP.

@nigels-com
Copy link

I was thinking of a similar visualisation, perhaps as SVG.
The broad idea is a progress-bar clock with annotations of sunrise, sunset and expected light level.
And the solstice plots for comparison.
The motivation is that we might have lost some situational awareness of what the sun is doing.
drawing

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

No branches or pull requests

2 participants