# Is the chart data on the device summary page available?

**URL:** <https://discuss.blues.com/t/is-the-chart-data-on-the-device-summary-page-available/1833>\
**Category:** Notehub.io\
**Created:** [December 6, 2023, 4:36pm UTC](https://discuss.blues.com/t/is-the-chart-data-on-the-device-summary-page-available/1833 "2023-12-06T16:36:51Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![rdimartino](https://avatars.discourse-cdn.com/v4/letter/r/df788c/32.png) [@rdimartino](https://discuss.blues.com/u/rdimartino)\
**Post date:** [December 6, 2023, 4:36pm UTC](https://discuss.blues.com/t/is-the-chart-data-on-the-device-summary-page-available/1833/1 "2023-12-06T16:36:51Z")

</div>

There are some charts on the device summary page that show the last 12 hours of card readings for the voltage, temperature, signal strength and notes sent/received.

Is there an API method to request that data for a different time range? Or a good way to download a history of those data points?

We want to test a site for cell coverage before continuing an installation there. We can manually report the data ourselves by reading the values from a `card.wireless` request, but it would be really convenient for us to be able to pull the data that is apparently already being recorded.

Thanks!

---

<div class="post-metadata">

**Author:** ![robouden](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.blues.com/robouden/32/336_2.png) [@robouden](https://discuss.blues.com/u/robouden)\
**Post date:** [December 7, 2023, 12:58pm UTC](https://discuss.blues.com/t/is-the-chart-data-on-the-device-summary-page-available/1833/2 "2023-12-07T12:58:44Z")

</div>

[rdimartino](https://discuss.blues.com/u/rdimartino)

You could, like we do for [Sfaceast.org](http://Sfaceast.org), route to an external DB and a Grafana instance. So can easily see the timeframes you want to know. [Grafana](https://grafana.safecast.cc/d/DFSxrOLWk/safecast-device-details?orgId=1&from=now-6M&to=now&refresh=10s&var-device_urn=note:dev:868050044444129).

 ![grafana sample](https://us1.discourse-cdn.com/flex020/uploads/blues/original/2X/9/93237370f5126e4538fd6ce55becfc00af5c06a2.png)

Regards,  
Rob Oudendijk

---

<div class="post-metadata">

**Author:** ![rdimartino](https://avatars.discourse-cdn.com/v4/letter/r/df788c/32.png) [@rdimartino](https://discuss.blues.com/u/rdimartino)\
**Post date:** [December 13, 2023, 2:40pm UTC](https://discuss.blues.com/t/is-the-chart-data-on-the-device-summary-page-available/1833/3 "2023-12-13T14:40:51Z")

</div>

Thanks, but this doesn’t really answer my question. Grafana is a great way to display the data, but I’m trying to figure out how to access the data that powers these graphs.

 ![image](https://us1.discourse-cdn.com/flex020/uploads/blues/original/2X/8/89d32b2911d457a96e76e98327f01d2da0f2ff0f.png)

I see that there is an API request made to `https://notehub.io/project/<APP ID>/devices/<DEVICE ID>/chart-data` that returns objects like

```auto
{
  "time":1693570729,
  "voltage":4.517,
  "temp":27.312,
  "bars":1,
  "notes_sent_and_received":6
}

```

I’m curious if there is a way to access that data for a different time range than window returned from that API call.

---

<div class="post-metadata">

**Author:** ![RobLauer](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.blues.com/roblauer/32/1567_2.png) [@RobLauer](https://discuss.blues.com/u/RobLauer)\
**Post date:** [December 13, 2023, 3:21pm UTC](https://discuss.blues.com/t/is-the-chart-data-on-the-device-summary-page-available/1833/4 "2023-12-13T15:21:24Z")

</div>

Hi @rdimartino,

I think what you are looking for is the [“Get Sessions” Notehub API](https://dev.blues.io/api-reference/notehub-api/event-api/#get-sessions). This will return all `_session.qo` Notefiles for a given Notehub project. From there you can pull out `temp`, `voltage`, `bars`, and `notes_sent`.

Hope that helps!  
Rob

---

<div class="post-metadata">

**Author:** ![rdimartino](https://avatars.discourse-cdn.com/v4/letter/r/df788c/32.png) [@rdimartino](https://discuss.blues.com/u/rdimartino)\
**Post date:** [December 13, 2023, 6:10pm UTC](https://discuss.blues.com/t/is-the-chart-data-on-the-device-summary-page-available/1833/5 "2023-12-13T18:10:37Z")

</div>

Thanks, I think that’s exactly what we’re looking for!
