# Quick question about Global Cache (IP2IR, iTach)

**URL:** <https://discourse.nodered.org/t/quick-question-about-global-cache-ip2ir-itach/64955>\
**Category:** General\
**Created:** [11 July 2022 15:58 UTC](https://discourse.nodered.org/t/quick-question-about-global-cache-ip2ir-itach/64955 "2022-07-11T15:58:51Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![RichardU](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/richardu/32/19854_2.png) [@RichardU](https://discourse.nodered.org/u/RichardU)\
**Post date:** [11 July 2022 15:58 UTC](https://discourse.nodered.org/t/quick-question-about-global-cache-ip2ir-itach/64955/1 "2022-07-11T15:58:51Z")

</div>

node-red-contrib-globalcache works great when I specify the Output number in the -out node config like this:  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/6/b/6b1be02ec7581fb657c504c8eb6b6b7fd5c6e83d.png)

And I use a function node to set the message:

```auto
msg.payload = '0000 006d 0025 ... '
msg.format = 'hex'

```

How can I also set the Output number in my function node?

An answer will end a years-long quest for my iTach!

Cheers, Richard

---

<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:** [12 July 2022 11:16 UTC](https://discourse.nodered.org/t/quick-question-about-global-cache-ip2ir-itach/64955/2 "2022-07-12T11:16:32Z")

</div>

That node has not been updated for 6 years, so it is surprising that it still works with current node.js versions.

I have no idea what it actuall does, but the node docs say:

If one specify three parameters: unit\_number, output and command, than all incoming string commands will be transformed into GlobalCache packet: [command],[unit\_number]:[output],[command]

So I guess that means you have to specify msg.unit\_number, msg.output and msg.command.

---

<div class="post-metadata">

**Author:** ![RichardU](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/richardu/32/19854_2.png) [@RichardU](https://discourse.nodered.org/u/RichardU)\
**Post date:** [14 July 2022 15:27 UTC](https://discourse.nodered.org/t/quick-question-about-global-cache-ip2ir-itach/64955/3 "2022-07-14T15:27:51Z")

</div>

@Colin

Thanks. That didn't work, but I can work around it. My bigger concern is your comment about how old this is. I really hope it continues to work because it's now an indispensable part of my home automation system.

---

<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:** [14 July 2022 15:41 UTC](https://discourse.nodered.org/t/quick-question-about-global-cache-ip2ir-itach/64955/4 "2022-07-14T15:41:04Z")

</div>

> [@RichardU](#):
>
> My bigger concern is your comment about how old this is.

What version of node.js are you using. Use  
`node -v`  
to find out.

---

<div class="post-metadata">

**Author:** ![RichardU](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/richardu/32/19854_2.png) [@RichardU](https://discourse.nodered.org/u/RichardU)\
**Post date:** [24 July 2022 15:55 UTC](https://discourse.nodered.org/t/quick-question-about-global-cache-ip2ir-itach/64955/5 "2022-07-24T15:55:56Z")

</div>

> [@Colin](#):
>
> What version of node.js are you using.

I'm using Node Red and just upgraded to v3.0.0

I'm not aware of a command line in Node Red

---

<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:** [24 July 2022 16:17 UTC](https://discourse.nodered.org/t/quick-question-about-global-cache-ip2ir-itach/64955/6 "2022-07-24T16:17:04Z")

</div>

> [@RichardU](#):
>
> I'm not aware of a command line in Node Red

The `node -v` command is nothing directly to do with node red. Run it in a terminal to find what version of nodejs is installed in your system.

---

<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:** [24 July 2022 18:28 UTC](https://discourse.nodered.org/t/quick-question-about-global-cache-ip2ir-itach/64955/7 "2022-07-24T18:28:55Z")

</div>

As of node-red version 3 you can get most detail about your system by using the "system info" command in the action list.

- Press Ctrl Shift P (or right click on white space, click top option)
- Type the word **system**
- Click the item system info

---

<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:** [24 July 2022 20:49 UTC](https://discourse.nodered.org/t/quick-question-about-global-cache-ip2ir-itach/64955/8 "2022-07-24T20:49:22Z")

</div>

True, I had forgotten about that, Though actually I think it is easier to type `node -v`

---

<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:** [24 July 2022 20:56 UTC](https://discourse.nodered.org/t/quick-question-about-global-cache-ip2ir-itach/64955/9 "2022-07-24T20:56:15Z")

</div>

> [@Colin](#):
>
> Though actually I think it is easier to type `node -v`

I agree, for many folks it is, however, if that leads to "what OS are you running node-red on" or "what is the node-red servers locale & timeZone set to" or "what nodes do you have installed" etc, I think this could be a good first question to avoid all that to & fro.

---

<div class="post-metadata">

**Author:** ![RichardU](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/richardu/32/19854_2.png) [@RichardU](https://discourse.nodered.org/u/RichardU)\
**Post date:** [25 July 2022 03:13 UTC](https://discourse.nodered.org/t/quick-question-about-global-cache-ip2ir-itach/64955/10 "2022-07-25T03:13:47Z")

</div>

Thanks for the info @Steve-Mcl

> [@Colin](#):
>
> True, I had forgotten about that, Though actually I think it is easier to type `node -v`

I hate to seem dense, but where would I type this?

---

<div class="post-metadata">

**Author:** ![RichardU](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/richardu/32/19854_2.png) [@RichardU](https://discourse.nodered.org/u/RichardU)\
**Post date:** [25 July 2022 03:16 UTC](https://discourse.nodered.org/t/quick-question-about-global-cache-ip2ir-itach/64955/11 "2022-07-25T03:16:52Z")

</div>

For anyone wondering about the original question, I have found a great alternative to node-red-contrib-globalcache.

I'm currently using a tcp request node and it seems far more robust. The only catch is I need to use non-hex codes but it's no problem to get those. Let me know if anyone wants to see an example of how to do this.

---

<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:** [25 July 2022 08:28 UTC](https://discourse.nodered.org/t/quick-question-about-global-cache-ip2ir-itach/64955/12 "2022-07-25T08:28:47Z")

</div>

> [@RichardU](#):
>
> I hate to seem dense, but where would I type this

It seems @Steve-Mcl is correct, assuming you are using node-red v3 then follow his advice to find the nodejs version.

If you are not using v3, and you don't know how to open a terminal on your system, you will have to tell us what OS you are using. Or perhaps google for how to open a terminal on your OS.

---

<div class="post-metadata">

**Author:** ![RichardU](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/richardu/32/19854_2.png) [@RichardU](https://discourse.nodered.org/u/RichardU)\
**Post date:** [25 July 2022 12:44 UTC](https://discourse.nodered.org/t/quick-question-about-global-cache-ip2ir-itach/64955/13 "2022-07-25T12:44:58Z")

</div>

I can open a terminal, although I've never needed to for Node Red before. Thanks.

My node.js version is v16.16.0

---

<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:** [8 August 2022 12:45 UTC](https://discourse.nodered.org/t/quick-question-about-global-cache-ip2ir-itach/64955/14 "2022-08-08T12:45:48Z")

</div>

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