#400 11pm-12am nHaystack History Offfset

Trevor Adelman Fri 3 Jun 2016

Hey everyone,

I'm running Niagara 3.8 with nHaystack version 1.5.2 and we are running into a problem with the haystackSyncHis from a group of jaces into a single Skyspark database. We have 10+ sites, each with it's own jace. About half are 100% functional, and the other half have this sync problem. All versions and settings look identical in all jaces, including all Timezone settings set to "America/New_York".

What's happening is when we pull the data into Skyspark from the problem jaces, the timestamps between 11pm and 12am all get shifted forward a full day. The other 23 hours worth of data is perfect.

We've run through the obix XML through Niagara and I've included it below, but everything seems to be right timezone/timestamp wise. This XML readout looks exactly the same on the working jaces and the problem jaces. All tagging across the Skyspark is uniform and to haystack standard.

<abstimename="timestamp"val="2016-06-02T23:58:00.082-04:00"tz="America/New_York"></abstime>
<realname="value"val="76.18165588378906"></real>
</obj>
<obj>
<abstimename="timestamp"val="2016-06-02T23:59:00.168-04:00"tz="America/New_York"></abstime>
<realname="value"val="76.1611328125"></real>
</obj>
<obj>
<abstimename="timestamp"val="2016-06-03T00:00:00.049-04:00"tz="America/New_York"></abstime>
<realname="value"val="76.1585693359375"></real>
</obj>
<obj>

Anybody come across this problem in the past? Or any possible settings on either ends of the connector that I could cross-check for differences between the working jaces and the functional ones?

Brian Frank Fri 3 Jun 2016

What does the same data look like over Haystack when you do a hisRead? Is the nHaystack timestamps not matching the oBIX timestamps?

Trevor Adelman Fri 3 Jun 2016

Here's the haystackHisRead readout via folio in zinc format. Looks like the nHaystack timestamps are not matching up. You can see somehow that 24th hour of the day is getting kicked over from 2016-06-02 to 2016-06-03.

ver:"2.0" id:@C.Drivers.BcpBacnetNetwork.Ahu.Ahu01.Vav.Vav01.points.SpaceTemp "SpaceTemp" hisEnd:2016-06-03T00:00:00-04:00 New_York hisStart:2016-06-02T00:00:00-04:00 New_York
ts,val
2016-06-02T06:16:00.02-04:00 New_York,71.4517°F
2016-06-02T06:17:00.018-04:00 New_York,71.4468°F
.
.
.
2016-06-02T22:56:00.467-04:00 New_York,73.7282°F
2016-06-02T22:57:00.707-04:00 New_York,73.7217°F
2016-06-02T22:58:00.587-04:00 New_York,73.7146°F
2016-06-02T22:59:00.788-04:00 New_York,73.7199°F
2016-06-03T23:00:00.888-04:00 New_York,73.7307°F
2016-06-03T23:01:00.926-04:00 New_York,73.7215°F
2016-06-03T23:02:01.077-04:00 New_York,73.7092°F
2016-06-03T23:03:01.082-04:00 New_York,73.7183°F
2016-06-03T23:04:02.59-04:00 New_York,73.705°F
2016-06-03T23:05:02.26-04:00 New_York,73.703°F

Brian Frank Tue 7 Jun 2016

That does appear to be a nHaystack bug. Just to verify without any third party software such as SkySpark, can you run that query strictly from your browser against nHaystack such as and see if you are getting the corrupt timestamps:

/haystack/hisRead?id=@id&range="2016-06-01..2016-06-03"

Trevor Adelman Tue 7 Jun 2016

Here's the output of the nHaystack HTTP GET request. Still happening there. We've also just tried to nuke one of the "bad" jaces all the way down to recreating the connector and re-importing the entire site tree in builder and re-binding the points and that didn't help either.

ver:"2.0" hisEnd:2016-06-07T00:00:00-04:00 New_York id:@C.Drivers.BcpBacnetNetwork.Ahu.Ahu01.Vav.Vav01.points.SpaceTemp hisStart:2016-06-06T00:00:00-04:00 New_York
ts,val
.
.
2016-06-06T22:49:00.031-04:00 New_York,73.3218°F
2016-06-06T22:50:00.015-04:00 New_York,73.3319°F
2016-06-06T22:51:00.019-04:00 New_York,73.3162°F
2016-06-06T22:52:00.008-04:00 New_York,73.3201°F
2016-06-06T22:53:00.017-04:00 New_York,73.3107°F
2016-06-06T22:54:00.026-04:00 New_York,73.3104°F
2016-06-06T22:55:00.022-04:00 New_York,73.3057°F
2016-06-06T22:56:00.018-04:00 New_York,73.3068°F
2016-06-06T22:57:00.014-04:00 New_York,73.301°F
2016-06-06T22:58:00.006-04:00 New_York,73.2868°F
2016-06-06T22:59:00.033-04:00 New_York,73.284°F
2016-06-06T23:00:00.033-04:00 New_York,73.2894°F
2016-06-07T23:01:00.020-04:00 New_York,73.2866°F
2016-06-07T23:02:00.024-04:00 New_York,73.2804°F
2016-06-07T23:03:00.009-04:00 New_York,73.2654°F
2016-06-07T23:04:00.019-04:00 New_York,73.2667°F
2016-06-07T23:05:00.008-04:00 New_York,73.2724°F
2016-06-07T23:06:00.011-04:00 New_York,73.2681°F
2016-06-07T23:07:00.016-04:00 New_York,73.2595°F
2016-06-07T23:08:00.022-04:00 New_York,73.2685°F
2016-06-07T23:09:00.016-04:00 New_York,73.2635°F

Richard McElhinney Wed 8 Jun 2016

Hi Trevor,

Can I just clarify a few points please?

Are you reading directly from a Jace, or from a Web Supervisor?

If it is a Web Supervisor, are the histories logged locally or are they imported from a Jace?

Are the history extensions just standard Numeric Interval Extensions set to log at 1 minute intervals?

Is there anything else I need to know to try and replicate the problem?

regards, Richard

Trevor Adelman Wed 8 Jun 2016

Hey Richard,

1)We are reading straight from the Jaces

2)Histories are logged locally on the Jaces

3)You're correct, just standard numeric histories at 1 minute histories. The booleans are actually working as far as we can tell.

4)The weird part is, we've got some jaces that work and others that don't. It should have been an easy troubleshoot in that regard since we'd be able to find what's different between the working ones and the problem ones, however everything seems to be identical on all the jaces. All the same timezone settings, all the same history settings, all the same site/equip/point structure even. All the same imports were used on the Skysaprk side as well from across the board. I can't find a single unique thing about the ones that don't work outside of the timestamp issue itself...

If you'd like to set up a webconference to poke around I'm sure the customer would be open to something like that if you can't replicate it on your bench.

Richard McElhinney Thu 9 Jun 2016

Hi Trevor,

let me try to replicate it myself. If I can't do so I'll come back to you on the forum and sort out an avenue to work together.

Cheers, Richard

Trevor Adelman Mon 27 Jun 2016

Thanks for looking into it Richard. Any luck finding that same problem on your machine?

Richard McElhinney Tue 12 Jul 2016

Hi Trevor,

apologies for the delay in getting back to you. I haven't been able to reproduce it on my machine. Are you able to work with me offline and provide me with a copy of the station so I can run it on my machine?

Cheers, Richard

Login or Signup to reply.