thorrak / fermentrack

A replacement web interface for BrewPi
MIT License
137 stars 61 forks source link

Axis range customization #502

Open uSlackr opened 4 years ago

uSlackr commented 4 years ago

@thorrak would you consider a feature to set the axis value ranges manually? I just added temp control via a brewpi and most of the temp data is unreadable because the axis range is 0-90F but the monitored temps are 60-70F. I'd much rather see the detail in the important part of the graph.
I don't know what's possible with the graphing library you re using. ( graph_ex)

thorrak commented 4 years ago

I'm using dygraphs. I hate dygraphs.

It can definitely be set, but the trick is figuring out where to store it.

uSlackr commented 4 years ago

Can it go the django config page for graph colors?

uSlackr commented 4 years ago

I found the code and added this to line 570 of https://github.com/thorrak/fermentrack/blob/master/app/templates/device_dashboard.html and added a comma at the end of 569.

valueRange: [50-85]

It gave me this: image I doubt we want this to e a fixed vrange, so I'll fiddle with a django setting, but I am at the range of my skillz here :-)

If I figure it out, I'll prep a PR.

uSlackr commented 4 years ago

@thorrak I have this working along with Constance config changes. But I made a DB change to add two records to the constance_config table. It doesn't appear the rows need to be added in advance. I'm prepping a pull request