# Edge data behaviour in graph

**URL:** <https://forums.losant.com/t/edge-data-behaviour-in-graph/1533>\
**Category:** Help\
**Tags:** edge\
**Created:** [February 14, 2019, 5:54pm UTC](https://forums.losant.com/t/edge-data-behaviour-in-graph/1533 "2019-02-14T17:54:05Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lars\_Andersson](https://avatars.discourse-cdn.com/v4/letter/l/f05b48/32.png) [@Lars\_Andersson](https://forums.losant.com/u/Lars_Andersson)\
**Post date:** [February 14, 2019, 5:54pm UTC](https://forums.losant.com/t/edge-data-behaviour-in-graph/1533/1 "2019-02-14T17:54:05Z")

</div>

I have the edge compute agent running a workflow and device states are being posted, but the live graphs on dashboard seem to have a 30 min delay in showing up!  
Not sure why and what’s going on.

---

<div class="post-metadata">

**Author:** ![JuliaKempf](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.losant.com/juliakempf/32/2446_2.png) [@JuliaKempf](https://forums.losant.com/u/JuliaKempf)\
**Post date:** [February 14, 2019, 7:12pm UTC](https://forums.losant.com/t/edge-data-behaviour-in-graph/1533/2 "2019-02-14T19:12:18Z")

</div>

Hi Lars,

It looks as though you you might not be updating your device state as frequently for some of your values. The Time Series Graph, when updating live, will only update when a new state comes through for the value. I would recommend checking your edge device to see when it is reporting state for these specific attributes, and looking around in the [Data Explorer](https://docs.losant.com/applications/data-explorer/) for more information on when the attribute is reported.

Let me know if this helps!  
Julia

---

<div class="post-metadata">

**Author:** ![Lars\_Andersson](https://avatars.discourse-cdn.com/v4/letter/l/f05b48/32.png) [@Lars\_Andersson](https://forums.losant.com/u/Lars_Andersson)\
**Post date:** [February 14, 2019, 7:20pm UTC](https://forums.losant.com/t/edge-data-behaviour-in-graph/1533/3 "2019-02-14T19:20:25Z")

</div>

It’s set to a timer of 10 seconds, and I can see data come in if I look at the Application Log for this application. The data explorer is showing the same delay.

---

<div class="post-metadata">

**Author:** ![Lars\_Andersson](https://avatars.discourse-cdn.com/v4/letter/l/f05b48/32.png) [@Lars\_Andersson](https://forums.losant.com/u/Lars_Andersson)\
**Post date:** [February 14, 2019, 7:22pm UTC](https://forums.losant.com/t/edge-data-behaviour-in-graph/1533/4 "2019-02-14T19:22:40Z")

</div>

I looked at the time stamp that just came in and it was 1550170457000, which is about 30 min ago.  
Is the agent time stamping wrong?

---

<div class="post-metadata">

**Author:** ![Lars\_Andersson](https://avatars.discourse-cdn.com/v4/letter/l/f05b48/32.png) [@Lars\_Andersson](https://forums.losant.com/u/Lars_Andersson)\
**Post date:** [February 14, 2019, 7:31pm UTC](https://forums.losant.com/t/edge-data-behaviour-in-graph/1533/5 "2019-02-14T19:31:11Z")

</div>

it looks like my edge agent device (Pi) rebooted around 11 am. I’m sure that had something to do with it. But why would it post data now that has an old timestamp on it?

---

<div class="post-metadata">

**Author:** ![anaptfox](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.losant.com/anaptfox/32/873_2.png) [@anaptfox](https://forums.losant.com/u/anaptfox)\
**Post date:** [February 14, 2019, 7:47pm UTC](https://forums.losant.com/t/edge-data-behaviour-in-graph/1533/6 "2019-02-14T19:47:33Z")

</div>

Lars,

In the Device State Node, you have the option to override the timestamp.

![image](https://us1.discourse-cdn.com/flex015/uploads/getstructure/original/1X/1e17d83fc219e4203e30ded1f8bb56fa4014226b.png)

Is it possible you’re setting the time via payload path? Also, could you verify that’s correct?

---

<div class="post-metadata">

**Author:** ![Lars\_Andersson](https://avatars.discourse-cdn.com/v4/letter/l/f05b48/32.png) [@Lars\_Andersson](https://forums.losant.com/u/Lars_Andersson)\
**Post date:** [February 14, 2019, 7:58pm UTC](https://forums.losant.com/t/edge-data-behaviour-in-graph/1533/7 "2019-02-14T19:58:24Z")

</div>

It is set to “Use the time of the current payload”

---

<div class="post-metadata">

**Author:** ![anaptfox](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.losant.com/anaptfox/32/873_2.png) [@anaptfox](https://forums.losant.com/u/anaptfox)\
**Post date:** [February 14, 2019, 8:09pm UTC](https://forums.losant.com/t/edge-data-behaviour-in-graph/1533/8 "2019-02-14T20:09:28Z")

</div>

What about the actual time on the Pi?

---

<div class="post-metadata">

**Author:** ![Lars\_Andersson](https://avatars.discourse-cdn.com/v4/letter/l/f05b48/32.png) [@Lars\_Andersson](https://forums.losant.com/u/Lars_Andersson)\
**Post date:** [February 14, 2019, 8:19pm UTC](https://forums.losant.com/t/edge-data-behaviour-in-graph/1533/9 "2019-02-14T20:19:05Z")

</div>

Its showing correct time. 20:17 GMT.  
Could the docker container have wrong time?

---

<div class="post-metadata">

**Author:** ![Lars\_Andersson](https://avatars.discourse-cdn.com/v4/letter/l/f05b48/32.png) [@Lars\_Andersson](https://forums.losant.com/u/Lars_Andersson)\
**Post date:** [February 14, 2019, 8:23pm UTC](https://forums.losant.com/t/edge-data-behaviour-in-graph/1533/10 "2019-02-14T20:23:30Z")

</div>

Maybe I should just deploy a small change to the Pi and see what happens?

---

<div class="post-metadata">

**Author:** ![Lars\_Andersson](https://avatars.discourse-cdn.com/v4/letter/l/f05b48/32.png) [@Lars\_Andersson](https://forums.losant.com/u/Lars_Andersson)\
**Post date:** [February 14, 2019, 8:34pm UTC](https://forums.losant.com/t/edge-data-behaviour-in-graph/1533/11 "2019-02-14T20:34:13Z")

</div>

I just checked the docker containers time and that is correct as well

---

<div class="post-metadata">

**Author:** ![JuliaKempf](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.losant.com/juliakempf/32/2446_2.png) [@JuliaKempf](https://forums.losant.com/u/JuliaKempf)\
**Post date:** [February 14, 2019, 9:04pm UTC](https://forums.losant.com/t/edge-data-behaviour-in-graph/1533/12 "2019-02-14T21:04:37Z")

</div>

Hi Lars,

When an edge device goes down and disconnects from the platform, the device will store the data until it can report to Losant. What you were seeing is the queuing of offline messages, which defaults as true. When your device went down, it began sending the offline messages when it came back on. The Docker/Losant edge documentation can be found [here](https://hub.docker.com/r/losant/edge-agent/).

Thanks!  
Julia

---

<div class="post-metadata">

**Author:** ![Lars\_Andersson](https://avatars.discourse-cdn.com/v4/letter/l/f05b48/32.png) [@Lars\_Andersson](https://forums.losant.com/u/Lars_Andersson)\
**Post date:** [February 14, 2019, 9:35pm UTC](https://forums.losant.com/t/edge-data-behaviour-in-graph/1533/13 "2019-02-14T21:35:25Z")

</div>

ok, but I’m missing data between 3.24pm 3.52pm

---

<div class="post-metadata">

**Author:** ![Tim\_Hoffman](https://avatars.discourse-cdn.com/v4/letter/t/ebca7d/32.png) [@Tim\_Hoffman](https://forums.losant.com/u/Tim_Hoffman)\
**Post date:** [February 15, 2019, 3:27am UTC](https://forums.losant.com/t/edge-data-behaviour-in-graph/1533/14 "2019-02-15T03:27:57Z")

</div>

Something to note, I wouldn’t use “Use Current Time” and not disable replay of stored data when a link is resumed. That old data isn’t current and is then interleaved with current data. Which can really play havoc with workflows for instance .

And in fact you may also wish to put a guard in workflows to check that the payload timestamp is current, otherwise you could be triggering events for notifications on really old data. People getting the SMS 6 hours late on something that has cleared does confuse people.

Old data being streamed in does also play havoc with realtime gauges.

---

<div class="post-metadata">

**Author:** ![Lars\_Andersson](https://avatars.discourse-cdn.com/v4/letter/l/f05b48/32.png) [@Lars\_Andersson](https://forums.losant.com/u/Lars_Andersson)\
**Post date:** [February 15, 2019, 9:45am UTC](https://forums.losant.com/t/edge-data-behaviour-in-graph/1533/15 "2019-02-15T09:45:42Z")

</div>

Tim,  
How do I disable replay of old data?  
Time stamp guard sounds wise.

---

<div class="post-metadata">

**Author:** ![anaptfox](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.losant.com/anaptfox/32/873_2.png) [@anaptfox](https://forums.losant.com/u/anaptfox)\
**Post date:** [February 15, 2019, 2:53pm UTC](https://forums.losant.com/t/edge-data-behaviour-in-graph/1533/16 "2019-02-15T14:53:49Z")

</div>

@Lars_Andersson, there is an environment variable called `QUEUE_OFFLINE_MESSAGES` or in your config file, you can set `gateway.queueOfflineMessages`. Setting this to `false` will disable the offline message queuing.

You can check out all the config options here:  
[https://cloud.docker.com/u/losant/repository/docker/losant/edge-agent#all-available-options](https://cloud.docker.com/u/losant/repository/docker/losant/edge-agent#all-available-options)

---

<div class="post-metadata">

**Author:** ![Tim\_Hoffman](https://avatars.discourse-cdn.com/v4/letter/t/ebca7d/32.png) [@Tim\_Hoffman](https://forums.losant.com/u/Tim_Hoffman)\
**Post date:** [February 17, 2019, 11:32pm UTC](https://forums.losant.com/t/edge-data-behaviour-in-graph/1533/17 "2019-02-17T23:32:20Z")

</div>

@anaptfox that link you provided doesn’t resolve to anything (at least for me).

It would be good if that option could be added to the documentation on [https://docs.losant.com/edge-compute/edge-agent-usage/#agent-configuration-options](https://docs.losant.com/edge-compute/edge-agent-usage/#agent-configuration-options) as well as any other new ones 😉

Thanks

Tim

---

<div class="post-metadata">

**Author:** ![anaptfox](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.losant.com/anaptfox/32/873_2.png) [@anaptfox](https://forums.losant.com/u/anaptfox)\
**Post date:** [February 18, 2019, 3:03pm UTC](https://forums.losant.com/t/edge-data-behaviour-in-graph/1533/18 "2019-02-18T15:03:59Z")

</div>

Good point @Tim_Hoffman! I’m going to update this today.
