# "Search" and how good it is/n't. I'm stuck

**URL:** <https://discourse.nodered.org/t/search-and-how-good-it-is-nt-im-stuck/54719>\
**Category:** General\
**Created:** [4 December 2021 20:30 UTC](https://discourse.nodered.org/t/search-and-how-good-it-is-nt-im-stuck/54719 "2021-12-04T20:30:48Z")\
**Posts on this page:** 8\
**Page:** 1

<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:** [4 December 2021 20:30 UTC](https://discourse.nodered.org/t/search-and-how-good-it-is-nt-im-stuck/54719/1 "2021-12-04T20:30:48Z")

</div>

Folks, I nearly posted the other day and didn't because I nearly shot myself in the foot with the question I was about to ask.

This is (maybe) a better worded version.

Though I am not 100% sure there seems to be something happening at 05:00 (within a minute) daily.

This problem was not quite at the level of needing to be fixed but was annoying.

I would get a report that at 05:00 (local) the WAP would go down then come back.

ITMT, I had other problems and was working on them.  
Progress on those was made and this problem seemed to stop. (Weird)

So going further down the track of the other _problem_ I got things _fixed_. Not sure about that, but....

So last night was the first time all the other problem's problems should have been fixed.  
I got up and the _problem_ (the one on which I was working later on) did seem to now be working.

But it was indicating the first (bigger) problem of the WAP going down.

I looked at the logs (mine, not system) and though the WAP hadn't gone down, there were reports shown at 05:00 (within a couple of minutes) a problem had happened.  
(Edit) Sorry, it supposedly did.)

**SOMEWHERE** I know (or am very suspicious) I have a `delay` node that delays a message by `5` hours.

How can I find this node easily?

Searching for `5` is just painful. As is searching for `delay`.

If I was 5 hours 25 minutes it would be a lot easier - as I discovered yesterday.  
As the node doesn't support that in that way, I have to make it .... 325 minutes.  
`325` is a bit easier to find than `5`.

Any _tricks_ I can use to find this delay node?

---

<div class="post-metadata">

**Author:** ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)\
**Post date:** [4 December 2021 22:17 UTC](https://discourse.nodered.org/t/search-and-how-good-it-is-nt-im-stuck/54719/2 "2021-12-04T22:17:35Z")

</div>

Try searching for `type:delay 5`

---

<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:** [4 December 2021 22:22 UTC](https://discourse.nodered.org/t/search-and-how-good-it-is-nt-im-stuck/54719/3 "2021-12-04T22:22:24Z")

</div>

Thanks.

That reduced the results shown, but it still seems _open_ to ambiguity.

But it did help find said node.

 ![Screenshot from 2021-12-05 09-19-57](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/1/0/10f299b2907663c2c4e560bc54f5291100ff015b.png)

Ok, not shown in that list, I found the node.

But picking another one which was shown....

 ![Screenshot from 2021-12-05 09-20-18](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/a/2/a29b59567725e5058e40a5c1568fadb049332bf3.png)

I'm not sure where the `5` comes into the equation.

NR 1.3.5 (Sorry)

---

<div class="post-metadata">

**Author:** ![jbudd](https://avatars.discourse-cdn.com/v4/letter/j/5f8ce5/32.png) [@jbudd](https://discourse.nodered.org/u/jbudd)\
**Post date:** [4 December 2021 22:30 UTC](https://discourse.nodered.org/t/search-and-how-good-it-is-nt-im-stuck/54719/4 "2021-12-04T22:30:03Z")

</div>

You could use a flow to find all delay nodes set to 5 hours:

 ![Untitled 2](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/d/4/d4e7be974f27caf9f7e32857768e7a903b3d41cb.jpeg)

```auto
[
    {
        "id": "a531e868a7ed264e",
        "type": "tab",
        "label": "Flow 4",
        "disabled": false,
        "info": "",
        "env": []
    },
    {
        "id": "12779a7f48341b48",
        "type": "file in",
        "z": "a531e868a7ed264e",
        "name": "",
        "filename": "/home/pi/.node-red/flows_GlassPi.json",
        "format": "utf8",
        "chunk": false,
        "sendError": false,
        "encoding": "none",
        "allProps": false,
        "x": 330,
        "y": 80,
        "wires": [
            [
                "33f178bf3eb192bb"
            ]
        ]
    },
    {
        "id": "33f178bf3eb192bb",
        "type": "json",
        "z": "a531e868a7ed264e",
        "name": "",
        "property": "payload",
        "action": "",
        "pretty": false,
        "x": 550,
        "y": 80,
        "wires": [
            [
                "4493558531e4c276"
            ]
        ]
    },
    {
        "id": "e88685b22d44162a",
        "type": "inject",
        "z": "a531e868a7ed264e",
        "name": "",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "",
        "payloadType": "date",
        "x": 100,
        "y": 80,
        "wires": [
            [
                "12779a7f48341b48"
            ]
        ]
    },
    {
        "id": "09e583bb417767c1",
        "type": "debug",
        "z": "a531e868a7ed264e",
        "name": "",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "false",
        "statusVal": "",
        "statusType": "auto",
        "x": 830,
        "y": 80,
        "wires": []
    },
    {
        "id": "4493558531e4c276",
        "type": "function",
        "z": "a531e868a7ed264e",
        "name": "",
        "func": "var msg1 = {};\nfor (var i = 0; i < msg.payload.length; i++) {\n if (msg.payload[i].type == \"delay\" & msg.payload[i].timeout == \"5\" & msg.payload[i].timeoutUnits == \"hours\"){\n msg1.payload = msg.payload[i];\n node.send(msg1);\n }\n}\n",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 680,
        "y": 80,
        "wires": [
            [
                "09e583bb417767c1"
            ]
        ]
    }
]

```

---

<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:** [4 December 2021 22:32 UTC](https://discourse.nodered.org/t/search-and-how-good-it-is-nt-im-stuck/54719/5 "2021-12-04T22:32:33Z")

</div>

That is cute.

Thanks.

I have saved that and may use it in the future if/when I need to do such tricky searches.

I'll just have to learn the syntax for the searching. But it works. 😉

---

<div class="post-metadata">

**Author:** ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)\
**Post date:** [4 December 2021 23:11 UTC](https://discourse.nodered.org/t/search-and-how-good-it-is-nt-im-stuck/54719/6 "2021-12-04T23:11:46Z")

</div>

> [@Trying\_to\_learn](#):
>
> I'm not sure where the `5` comes into the equation.

As a guess, the node's id has a 5 in it

---

<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:** [4 December 2021 23:27 UTC](https://discourse.nodered.org/t/search-and-how-good-it-is-nt-im-stuck/54719/7 "2021-12-04T23:27:45Z")

</div>

You are probably right.

It is just that fact blurs the line between useful searching and not useful.

---

<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:** [18 December 2021 23:28 UTC](https://discourse.nodered.org/t/search-and-how-good-it-is-nt-im-stuck/54719/8 "2021-12-18T23:28:37Z")

</div>

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