StefanSchubert / sabi

Seawater Aquarium Business Intelligence (sabi) aims to gain knowledge from aquarists for aquarists based on collected seawater parameters.
https://sabi-project.net
MIT License
4 stars 3 forks source link

Support 3rd party community forums with metric overview for a specific aquarium #87

Open StefanSchubert opened 3 years ago

StefanSchubert commented 3 years ago

Is your feature request related to a problem? Please describe. A newbie or yet unexperienced fan of seawater-aquaristic will tend to seek support from his or her favorite user forum for experts advice. This behavior can be compared with getting consult by a doctor. And of course a doctor's consult will suites better with as many metrics he can gather about the new patient and the problem.

Describe the solution you'd like Sabi already has a basic report section. This is able to display a metric chart per requested measurement unit. What I have in mind, is that a user can generate a metric chart overview image, containing all metrics, of a specific aquarium from the report page. The image should be downloadable so that the user can add this image into his user forum request. The image generated should contain a footer or watermark which references our project here.

Describe alternatives you've considered Instead of providing a downloadable image it could be generated as stream and callable in an anonymous context. This would be much better for the 3rd party forums, as they theirs storage won't be fluted with those images, as the information provided by them will be deprecated after some time. However thinking of our lowcost rasperry pi stack infrastructure at the beginning repeating streaming request from a growing number of user forums...hm. I have no idea about the numbers we are talking about here. I currently think that as long as we are running on low budget on premise we should stick to the downloadable version.

Additional context I think the chart overview should only show the measurements of the last 3 months but not further back. Older data than that won't possible have an influence on any consultant.

StefanSchubert commented 2 years ago

Instead of the user copy pasting a chart image into user forums, another approach would be to enable users to generate a chart access token such that the requested image would be build on demand and streamed to the calle. Something like GET https://sabi-project.net/api/chart?accessToken which will return the requested chart.