# Odd observation count

**URL:** <https://community.tempest.earth/t/odd-observation-count/3118>\
**Category:** Tempest Owners\
**Created:** [February 6, 2019, 10:32pm UTC](https://community.tempest.earth/t/odd-observation-count/3118 "2019-02-06T22:32:39Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![peter](https://sea2.discourse-cdn.com/flex020/user_avatar/community.tempest.earth/peter/32/1365_2.png) [@peter](https://community.tempest.earth/u/peter)\
**Post date:** [February 6, 2019, 10:32pm UTC](https://community.tempest.earth/t/odd-observation-count/3118/1 "2019-02-06T22:32:39Z")

</div>

My observation count over the last 24 hours seems to be stuck on 1381, but I can’t see any evidence in the charts that I am missing nearly an hours worth of obs. Is something odd going on here?

---

<div class="post-metadata">

**Author:** ![jim.wn1x](https://sea2.discourse-cdn.com/flex020/user_avatar/community.tempest.earth/jim.wn1x/32/1014_2.png) [@jim.wn1x](https://community.tempest.earth/u/jim.wn1x)\
**Post date:** [February 7, 2019, 1:50am UTC](https://community.tempest.earth/t/odd-observation-count/3118/2 "2019-02-07T01:50:18Z")

</div>

Interesting…my Sky shows the same number of observations over the past 24 hours.

---

<div class="post-metadata">

**Author:** ![GaryFunk](https://sea2.discourse-cdn.com/flex020/user_avatar/community.tempest.earth/garyfunk/32/5729_2.png) [@GaryFunk](https://community.tempest.earth/u/GaryFunk)\
**Post date:** [February 7, 2019, 2:03am UTC](https://community.tempest.earth/t/odd-observation-count/3118/3 "2019-02-07T02:03:16Z")

</div>

First, I’m not seeing any bug.

Second, I think it’s an issue where the server lost count do to an issue @eric experienced.

Third, I just looked at the data stored on the servers and I count 1440 records for yesterday and 120 for today. Just as it should be.

---

<div class="post-metadata">

**Author:** ![eric](https://sea2.discourse-cdn.com/flex020/user_avatar/community.tempest.earth/eric/32/13553_2.png) [@eric](https://community.tempest.earth/u/eric)\
**Post date:** [February 7, 2019, 6:17am UTC](https://community.tempest.earth/t/odd-observation-count/3118/4 "2019-02-07T06:17:12Z")

</div>

Yesterday I was blinded for about 2 hours. My both setups did work all the time

Hub’s red, and no way to link to them via BT locally (via internet and 4G network)

to make the story short, back tracing to the WF servers where we send our data showed 100% packet loss (somewhere on US soil). And stations near me did not have the problem … and is solved as is happened …

So maybe some other had the same problem with some bottle neck for 1 to 2 hours but no way to know who and why as it is doesn’t seem ip range related. Maybe ISP related (in my case Orange) …

Might explain but not sure

---

<div class="post-metadata">

**Author:** ![peter](https://sea2.discourse-cdn.com/flex020/user_avatar/community.tempest.earth/peter/32/1365_2.png) [@peter](https://community.tempest.earth/u/peter)\
**Post date:** [February 7, 2019, 8:18am UTC](https://community.tempest.earth/t/odd-observation-count/3118/5 "2019-02-07T08:18:01Z")

</div>

> [@GaryFunk](#):
>
> First, I’m not seeing any bug.

> [@GaryFunk](#):
>
> Third, I just looked at the data stored on the servers and I count 1440 records for yesterday and 120 for today. Just as it should be.

Are you talking about your own station, or my station? I have just checked the server for my station, and see a perfect 1440 observations for yesterday, and 492 today (which is a complete set up to 08:12) for both Air and Sky. My observation count for the last 24 hours though is stuck at 1382 for both Air and Sky, which is clearly not correct.

![Capture](https://us1.discourse-cdn.com/flex020/uploads/sws/original/2X/5/55eb30cd3fea38ce1947188c98291570fc1f2013.png)

I didn’t see the server issue @eric suffered from yesterday, so I don’t think this is the problem.

---

<div class="post-metadata">

**Author:** ![peter](https://sea2.discourse-cdn.com/flex020/user_avatar/community.tempest.earth/peter/32/1365_2.png) [@peter](https://community.tempest.earth/u/peter)\
**Post date:** [February 11, 2019, 8:49am UTC](https://community.tempest.earth/t/odd-observation-count/3118/6 "2019-02-11T08:49:14Z")

</div>

@dsj just a note to mention that this issue is persisting for me. Over the last few days I have had between 1439 and 1441 observations per day on both Sky and Air, but the observation count in the app and on the web has doggedly remained at 1382, sometimes decreasing to 1379.

@jim.wn1x, has you observation count stayed the same as well?

---

<div class="post-metadata">

**Author:** ![GaryFunk](https://sea2.discourse-cdn.com/flex020/user_avatar/community.tempest.earth/garyfunk/32/5729_2.png) [@GaryFunk](https://community.tempest.earth/u/GaryFunk)\
**Post date:** [February 11, 2019, 9:04am UTC](https://community.tempest.earth/t/odd-observation-count/3118/7 "2019-02-11T09:04:18Z")

</div>

The phone application, which I rarely use does indeed show 1381. I will look at the code tomorrow and see if I can find why. That is indeed strange.

---

<div class="post-metadata">

**Author:** ![GaryFunk](https://sea2.discourse-cdn.com/flex020/user_avatar/community.tempest.earth/garyfunk/32/5729_2.png) [@GaryFunk](https://community.tempest.earth/u/GaryFunk)\
**Post date:** [February 11, 2019, 9:10am UTC](https://community.tempest.earth/t/odd-observation-count/3118/8 "2019-02-11T09:10:23Z")

</div>

It seems to be counting only 23 hours. I wonder if it has to do with daylight saving time or maybe a timezone issue.

---

<div class="post-metadata">

**Author:** ![jim.wn1x](https://sea2.discourse-cdn.com/flex020/user_avatar/community.tempest.earth/jim.wn1x/32/1014_2.png) [@jim.wn1x](https://community.tempest.earth/u/jim.wn1x)\
**Post date:** [February 11, 2019, 1:12pm UTC](https://community.tempest.earth/t/odd-observation-count/3118/9 "2019-02-11T13:12:32Z")

</div>

Both the iPhone app and the web page are showing 1380 obs count this morning. That said, I’ve see 1381 and other counts on different days. 🤔

---

<div class="post-metadata">

**Author:** ![dsj](https://sea2.discourse-cdn.com/flex020/user_avatar/community.tempest.earth/dsj/32/3_2.png) [@dsj](https://community.tempest.earth/u/dsj)\
**Post date:** [February 11, 2019, 2:53pm UTC](https://community.tempest.earth/t/odd-observation-count/3118/10 "2019-02-11T14:53:49Z")

</div>

> [@GaryFunk](#):
>
> It seems to be counting only 23 hours.

Gary is correct. Here’s why: The API used to cache 24 hours of observations and that count was driven directly from the cache. We actually only need 3 hours of cached observations but we took a step toward that a while ago and cut it back to 23 hours (as a conservative test). We will likely remove this field from the diagnostic status message the API returns.

---

<div class="post-metadata">

**Author:** ![peter](https://sea2.discourse-cdn.com/flex020/user_avatar/community.tempest.earth/peter/32/1365_2.png) [@peter](https://community.tempest.earth/u/peter)\
**Post date:** [February 11, 2019, 3:05pm UTC](https://community.tempest.earth/t/odd-observation-count/3118/11 "2019-02-11T15:05:15Z")

</div>

Thanks for looking into this 😃 .

> [@dsj](#):
>
> We will likely remove this field from the diagnostic status message the API returns.

I’m not sure I quite follow you here. Do you mean you are going to remove the ‘Observation count (last 24 hours)’ field from the web and app under Station → Status? If so, please don’t! Without zooming right down to the 1-minute graph level and scrolling all the way back through the last 24 hours, there is no other way (I know of) of checking if you have been losing data packets (excluding third party applications of course!).

In fact, it would be great if you could restore the full 24 hour count 😃 .

---

<div class="post-metadata">

**Author:** ![GaryFunk](https://sea2.discourse-cdn.com/flex020/user_avatar/community.tempest.earth/garyfunk/32/5729_2.png) [@GaryFunk](https://community.tempest.earth/u/GaryFunk)\
**Post date:** [February 11, 2019, 5:10pm UTC](https://community.tempest.earth/t/odd-observation-count/3118/12 "2019-02-11T17:10:19Z")

</div>

I underestimated. You are caching the entire results. which includes pressure so you can determine trend. That would be a lot of memory as the number of stations grow.

---

<div class="post-metadata">

**Author:** ![dsj](https://sea2.discourse-cdn.com/flex020/user_avatar/community.tempest.earth/dsj/32/3_2.png) [@dsj](https://community.tempest.earth/u/dsj)\
**Post date:** [February 11, 2019, 6:55pm UTC](https://community.tempest.earth/t/odd-observation-count/3118/13 "2019-02-11T18:55:23Z")

</div>

> [@peter](#):
>
> If so, please don’t!

No promises, Peter. Yes, it can be handy for troubleshooting, but the cost of the way we’re doing it doesn’t justify the benefit (especially since you can get easily with a single API call).

---

<div class="post-metadata">

**Author:** ![GaryFunk](https://sea2.discourse-cdn.com/flex020/user_avatar/community.tempest.earth/garyfunk/32/5729_2.png) [@GaryFunk](https://community.tempest.earth/u/GaryFunk)\
**Post date:** [February 11, 2019, 6:59pm UTC](https://community.tempest.earth/t/odd-observation-count/3118/14 "2019-02-11T18:59:29Z")

</div>

> [@dsj](#):
>
> the cost of the way we’re doing it doesn’t justify the benefit

Even caching only 180 records for 10,000 stations is costly. What happens at 50,000?

---

<div class="post-metadata">

**Author:** ![peter](https://sea2.discourse-cdn.com/flex020/user_avatar/community.tempest.earth/peter/32/1365_2.png) [@peter](https://community.tempest.earth/u/peter)\
**Post date:** [February 11, 2019, 9:17pm UTC](https://community.tempest.earth/t/odd-observation-count/3118/15 "2019-02-11T21:17:55Z")

</div>

> [@dsj](#):
>
> but the cost of the way we’re doing it doesn’t justify the benefit

No, I appreciate that. As Gary said, it’s going to get out of hand pretty quickly.

---

<div class="post-metadata">

**Author:** ![jim.wn1x](https://sea2.discourse-cdn.com/flex020/user_avatar/community.tempest.earth/jim.wn1x/32/1014_2.png) [@jim.wn1x](https://community.tempest.earth/u/jim.wn1x)\
**Post date:** [February 12, 2019, 1:20am UTC](https://community.tempest.earth/t/odd-observation-count/3118/16 "2019-02-12T01:20:21Z")

</div>

So cache three hours of data, but keep 24 hours worth of observation counts.

---

<div class="post-metadata">

**Author:** ![GaryFunk](https://sea2.discourse-cdn.com/flex020/user_avatar/community.tempest.earth/garyfunk/32/5729_2.png) [@GaryFunk](https://community.tempest.earth/u/GaryFunk)\
**Post date:** [February 12, 2019, 1:29am UTC](https://community.tempest.earth/t/odd-observation-count/3118/17 "2019-02-12T01:29:10Z")

</div>

You don’t keep the count. You query for the count. With the cache one simply queries the cache length. Otherwise one makes an additional call at cost which slows down everything.

---

<div class="post-metadata">

**Author:** ![dsj](https://sea2.discourse-cdn.com/flex020/user_avatar/community.tempest.earth/dsj/32/3_2.png) [@dsj](https://community.tempest.earth/u/dsj)\
**Post date:** [February 15, 2019, 9:34pm UTC](https://community.tempest.earth/t/odd-observation-count/3118/18 "2019-02-15T21:34:58Z")

</div>

Yes, we could do that.

---

<div class="post-metadata">

**Author:** ![GaryFunk](https://sea2.discourse-cdn.com/flex020/user_avatar/community.tempest.earth/garyfunk/32/5729_2.png) [@GaryFunk](https://community.tempest.earth/u/GaryFunk)\
**Post date:** [February 15, 2019, 9:44pm UTC](https://community.tempest.earth/t/odd-observation-count/3118/19 "2019-02-15T21:44:09Z")

</div>

Or the number of missing packets during the last 24 hours.

---

<div class="post-metadata">

**Author:** ![jim.wn1x](https://sea2.discourse-cdn.com/flex020/user_avatar/community.tempest.earth/jim.wn1x/32/1014_2.png) [@jim.wn1x](https://community.tempest.earth/u/jim.wn1x)\
**Post date:** [February 16, 2019, 2:54am UTC](https://community.tempest.earth/t/odd-observation-count/3118/20 "2019-02-16T02:54:02Z")

</div>

Missing packets would cover this need perfectly.

[Next page](https://community.tempest.earth/t/odd-observation-count/3118.md?page=2)
