Repository navigation
Add Device Story show page - #725
Conversation
|
Good progress! Rob |
For the scaling/time, do you mean how Grafana will show the last 2 days? I can change the CPM graph to that scaling. |
|
With the Grafana iframes, i haven't found a way to add a time range selector when embedding a graph. |
|
Robin, Yes, I came across the same issue with Iframes on RT a long time ago and decided to use Worpress with links to Grafana to make things work. I think it is a necessity to use the time scaling for displaying the data. rob |
|
Let's not implement time scrolling on this page. Just provide a link to the grafana view if people want to dig deeper. The goal is to replace https://realtime.safecast.org/sensors/200041/ which doesn't include on-page time selection either. I would just mimic that page for now. Here's a rough sketch of how I'd lay it out. We can add fields to the |
| <td style="font-size: 25px"><%= @device_story.last_values %></td> | ||
| </tr> | ||
| </table> | ||
| <a href="http://grafana-dev.safecast.cc/d/DFSxrOLWk/safecast-device-details?orgId=1&from=now-90d&to=now&refresh=15m&var-device_urn=<%= @device_story.device_urn %>" |
There was a problem hiding this comment.
We should swap this out for a configurable value, and set the default to https://grafana.safecast.cc/d/DFSxrOLWk




Here's what I have right now. Tried to have a similar layout to the realtime website, but had to put the map below to make everything fit.
