# Bigtimer sending strange output

**URL:** <https://discourse.nodered.org/t/bigtimer-sending-strange-output/26931>\
**Category:** Dashboard\
**Created:** [19 May 2020 14:59 UTC](https://discourse.nodered.org/t/bigtimer-sending-strange-output/26931 "2020-05-19T14:59:18Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![gerry](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gerry/32/21604_2.png) [@gerry](https://discourse.nodered.org/u/gerry)\
**Post date:** [19 May 2020 14:59 UTC](https://discourse.nodered.org/t/bigtimer-sending-strange-output/26931/1 "2020-05-19T14:59:18Z")

</div>

I had a running pi 3 with node-red on it and for various reasons I wanted to re-install the OS. Backed up the flows and re-installed the latest raspbian image 2020-02-13 buster and re-installed node-red using the script

```auto
bash <(curl -sL https://raw.githubusercontent.com/node-red/linux-installers/master/deb/update-nodejs-and-nodered)

```

when I run the flow I get the output that looks like this.

 ![bigtimer](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/2/e/2e1f549af33b38a1e2cf34f227253cc76551706b.jpeg)

I get the NaN output as shown in the image.  
Any thoughts?

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [19 May 2020 15:33 UTC](https://discourse.nodered.org/t/bigtimer-sending-strange-output/26931/2 "2020-05-19T15:33:35Z")

</div>

What is that location? Its possible there is no dawn at that location.

I am working on a different node and had to scan the whole year for Arctic and Antarctic regions until I found the next dawn.

PS. NaN means not a number.

---

<div class="post-metadata">

**Author:** ![gerry](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gerry/32/21604_2.png) [@gerry](https://discourse.nodered.org/u/gerry)\
**Post date:** [19 May 2020 15:36 UTC](https://discourse.nodered.org/t/bigtimer-sending-strange-output/26931/3 "2020-05-19T15:36:31Z")

</div>

I get that it is not a number and the thing is until I reloaded the flow I got the numbers out. It is a location in Canada and I'm fairly sure there is a dusk and dawn. I cannot think that there is something I missed in reloading the OS but I suppose it is possible. It's not that I rely on that info for something but in the interest of education I want to try to determine what changed or what I missed or what I did wrong.

---

<div class="post-metadata">

**Author:** ![bakman2](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bakman2/32/6207_2.png) [@bakman2](https://discourse.nodered.org/u/bakman2)\
**Post date:** [19 May 2020 15:40 UTC](https://discourse.nodered.org/t/bigtimer-sending-strange-output/26931/4 "2020-05-19T15:40:59Z")

</div>

Has the local system timezone changed ?

---

<div class="post-metadata">

**Author:** ![gerry](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gerry/32/21604_2.png) [@gerry](https://discourse.nodered.org/u/gerry)\
**Post date:** [19 May 2020 15:45 UTC](https://discourse.nodered.org/t/bigtimer-sending-strange-output/26931/5 "2020-05-19T15:45:10Z")

</div>

I'm pretty sure that I set it back to the same timezone and I've checked that about a dozen times but remember I did reload the OS. I would think that even if the timezone changed I would get something out but as @Steve-Mcl pointed out if I put in some weird place with no dusk or dawn maybe not. The lat and long are correct for southern Canada though.

---

<div class="post-metadata">

**Author:** ![gerry](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gerry/32/21604_2.png) [@gerry](https://discourse.nodered.org/u/gerry)\
**Post date:** [19 May 2020 19:45 UTC](https://discourse.nodered.org/t/bigtimer-sending-strange-output/26931/6 "2020-05-19T19:45:55Z")

</div>

To trouble shoot I disconnected all input and I noticed that the output seems to vary all by itself.

![10 hrs](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/7/f/7fa8a05c0eee48576d823985baccb3f0d2491c11.jpeg)

then goes to this

![on 57](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/1/6/16138b11f1dae90a7bff5883fa77e7b98021d201.jpeg)

and it is not the time indicated in the timer, this occured in maybe 5 minutes and did it several times in that 5 minute period

---

<div class="post-metadata">

**Author:** ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Post date:** [19 May 2020 22:11 UTC](https://discourse.nodered.org/t/bigtimer-sending-strange-output/26931/7 "2020-05-19T22:11:40Z")

</div>

I don't like just jumping in mid-thread, but a couple of questions and observations"

What are/were you sending into the `bigtimer` node?

The two pictures - though only a snapshot in time - look correct for what is written below the `bigtimer` node.

Maybe it would help if you exported the node (`bigtimer`) and pasted it here.  
It would help everyone see what settings you have and/or anything you may have missed.

All you need to send `bigtimer` is a message `auto` and it does everything itself.  
You don't need to keep sending it messages over and over like other nodes to get an output.

My suspicion is that in the lower picture you have sent it a message telling it to turn `ON` and there are 57 minutes left to the next _real_ event. (Sun-rise/sun-set time)

---

<div class="post-metadata">

**Author:** ![gerry](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gerry/32/21604_2.png) [@gerry](https://discourse.nodered.org/u/gerry)\
**Post date:** [19 May 2020 23:24 UTC](https://discourse.nodered.org/t/bigtimer-sending-strange-output/26931/8 "2020-05-19T23:24:35Z")

</div>

The bigtimer outputs were changing on their own without any input was my problem. And when I did send a payload the outputs went hay wire without any seeming logic. I have a lot of bigtimers in different flows and like the node and I think I have a good grip on how to use them but this problem was baffling.  
So.. to close the loop in desperation I completely un-installed node-red, removed all the files, deleted the directories, washed the sd card in soap and water. (not really) and re-installed everything. After the node red re-installation all is well in pi land. Must have been some freaky installation issue, don't really know.  
But problem solved. Yeah!!!

---

<div class="post-metadata">

**Author:** ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Post date:** [20 May 2020 07:56 UTC](https://discourse.nodered.org/t/bigtimer-sending-strange-output/26931/9 "2020-05-20T07:56:01Z")

</div>

Oh, well, that's good to hear.

Alas it is annoying when you have to do that to _fix_ the problem.

But good to know you resolved it.

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [20 May 2020 13:05 UTC](https://discourse.nodered.org/t/bigtimer-sending-strange-output/26931/10 "2020-05-20T13:05:55Z")

</div>

When you put the flows file on the new system did you recreate node\_modules by doing  
`npm install`?

---

<div class="post-metadata">

**Author:** ![gerry](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gerry/32/21604_2.png) [@gerry](https://discourse.nodered.org/u/gerry)\
**Post date:** [20 May 2020 19:56 UTC](https://discourse.nodered.org/t/bigtimer-sending-strange-output/26931/11 "2020-05-20T19:56:28Z")

</div>

I installed node-red via the script above then imported all the flows from a backup  
All nodes were installed from pallete manager

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [20 May 2020 20:17 UTC](https://discourse.nodered.org/t/bigtimer-sending-strange-output/26931/12 "2020-05-20T20:17:19Z")

</div>

That should have been OK.  
For future reference, if you had put the flows file, package.json and package-lock.json in the .node-red-folder and then run (in that folder) `npm install` that would have installed all the nodes for you.  
If you wanted the latest versions of all the nodes rather than the versions you had before then don't restore package-lock.json.

---

<div class="post-metadata">

**Author:** ![gerry](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gerry/32/21604_2.png) [@gerry](https://discourse.nodered.org/u/gerry)\
**Post date:** [20 May 2020 20:47 UTC](https://discourse.nodered.org/t/bigtimer-sending-strange-output/26931/13 "2020-05-20T20:47:22Z")

</div>

Thanks, I'll hold that info for future reference

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [3 June 2020 20:47 UTC](https://discourse.nodered.org/t/bigtimer-sending-strange-output/26931/14 "2020-06-03T20:47:34Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
