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]: Embeddable Links for Graphics #970

Closed
t00thpick1 opened this issue Nov 26, 2024 · 3 comments
Closed

[FEATURE]: Embeddable Links for Graphics #970

t00thpick1 opened this issue Nov 26, 2024 · 3 comments

Comments

@t00thpick1
Copy link

Is your feature request related to a problem? Please describe.
Writing an html kiosk dashboard for logging+history on feedings/bowel movements/etc for my lizard and wanted to embed some of the temperature/humidity graphics from my TerrariumPi setup directly in my dashboard for a quick glance at terrarium conditions. Would be nicer to integrate if I didn't have to render the graphs myself with API data but could instead just iframe/embed the graphs as needed.

Describe the solution you'd like
Links such as /api/sensors/{id}/embed to render just the graphic for a given sensor such as below.

{4429A723-C519-4D9F-83A2-F37298DDB16D}

@theyosh
Copy link
Owner

theyosh commented Nov 28, 2024

I am afraid that this is not easy to make. The GUI is made in a reactive javascript framework, so I cannot just pick out the graphs for embedding in a different page.

And it will take a lot of time to make a the graphs embed-able. So I am afraid you have to make you own graphs.
I used https://bernii.github.io/gauge.js/ for the gauge graph, which is pretty old, but does still work and https://www.chartjs.org/ for the graphs.

Sorry, but this is something that I cannot make. There are API calls to get the sensor data and make your own graphs.

@t00thpick1
Copy link
Author

Thats fair, I was hoping it would be easy to pull out just the components but I haven't looked too hard into the svelte code as I'm unfamiliar with svelte.

@t00thpick1 t00thpick1 closed this as not planned Won't fix, can't repro, duplicate, stale Nov 29, 2024
@t00thpick1
Copy link
Author

t00thpick1 commented Nov 29, 2024

If I made some nice re-usable chart.js scripts for integration would they be welcome somewhere in the repo as resources for others?

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