# IOT2040 node-red-contrib-fred

**URL:** <https://discourse.nodered.org/t/iot2040-node-red-contrib-fred/59435>\
**Category:** Industrial\
**Created:** [6 March 2022 11:08 UTC](https://discourse.nodered.org/t/iot2040-node-red-contrib-fred/59435 "2022-03-06T11:08:55Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![KasiaM](https://avatars.discourse-cdn.com/v4/letter/k/e0b2c6/32.png) [@KasiaM](https://discourse.nodered.org/u/KasiaM)\
**Post date:** [6 March 2022 11:08 UTC](https://discourse.nodered.org/t/iot2040-node-red-contrib-fred/59435/1 "2022-03-06T11:08:55Z")

</div>

Hi,  
I am new to node red and IOT2040 and I am trying to connect my process with node-red fred cloud via Siemens IOT2040.  
I have installed node-red-contrib-fred on my IOT2040 using

> npm install -g node-red-contrib-fred  
> I got the info that the packages have been installed but there is also an error  
> FRED host type is _client_ { Error: EACCES: permission denied, open 'fred.html' errno: -13, code: 'EACCES', syscall: 'open', path: 'fred.html' }

and I don't have access to fred nodes in node-red window after opening \<iot2040\_ip\>:1880 in my browser.

Do you have any ideas why it doesn't work?

---

<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:** [6 March 2022 12:25 UTC](https://discourse.nodered.org/t/iot2040-node-red-contrib-fred/59435/2 "2022-03-06T12:25:44Z")

</div>

> [@KasiaM](#):
>
> node-red-contrib-fred

By the looks of it, all this node does is setup a websocket between 2 instances of node-red.

You could easily achieve this using built-in nodes...

- http endpoints & http request
- web socket nodes
- TCP nodes
- MQTT (via a broker)

---

<div class="post-metadata">

**Author:** ![KasiaM](https://avatars.discourse-cdn.com/v4/letter/k/e0b2c6/32.png) [@KasiaM](https://discourse.nodered.org/u/KasiaM)\
**Post date:** [6 March 2022 12:45 UTC](https://discourse.nodered.org/t/iot2040-node-red-contrib-fred/59435/3 "2022-03-06T12:45:45Z")

</div>

Hi,  
Thanks for your prompt reply. From what I understand it also enables connection with free cloud and this is exactly what I need.

Does using MQTT allows connection with free cloud?

I am just starting my adventure with IoT solutions and I am not familiar with MQTT.

---

<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:** [6 March 2022 12:58 UTC](https://discourse.nodered.org/t/iot2040-node-red-contrib-fred/59435/4 "2022-03-06T12:58:40Z")

</div>

> [@KasiaM](#):
>
> free cloud

What is "free cloud"

---

<div class="post-metadata">

**Author:** ![KasiaM](https://avatars.discourse-cdn.com/v4/letter/k/e0b2c6/32.png) [@KasiaM](https://discourse.nodered.org/u/KasiaM)\
**Post date:** [6 March 2022 13:12 UTC](https://discourse.nodered.org/t/iot2040-node-red-contrib-fred/59435/5 "2022-03-06T13:12:15Z")

</div>

I mean the free access to cloud so I can monitor process values on other PC-like devices which are not connected directly to the process.

---

<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:** [6 March 2022 13:32 UTC](https://discourse.nodered.org/t/iot2040-node-red-contrib-fred/59435/6 "2022-03-06T13:32:31Z")

</div>

If the "cloud" is MQTT capable (e.g. if the cloud device is running node-red) then yes, it can use MQTT so long as the MQTT broker is accessible by both node-red devices (e.g. cloud based broker on same cloud device or other external MQTT broker)

BTW: MQTT is extremely simple.

Example of 2 Node-RED communicating over cloud broker  
 ![chrome_YjhLwL9Pa1](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/a/2/a292b2b9597588424ffe2782d5d61b4c1c0671ce.gif)

---

<div class="post-metadata">

**Author:** ![KasiaM](https://avatars.discourse-cdn.com/v4/letter/k/e0b2c6/32.png) [@KasiaM](https://discourse.nodered.org/u/KasiaM)\
**Post date:** [6 March 2022 13:43 UTC](https://discourse.nodered.org/t/iot2040-node-red-contrib-fred/59435/7 "2022-03-06T13:43:08Z")

</div>

Correct me if I am wrong. So I can connect two instances of Node-RED (first running on my IoT2040, second running on my PC) using only MQTT broker?

Do you suggest any cloud solution for data storage and display to use with Node-RED?

---

<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:** [5 May 2022 13:43 UTC](https://discourse.nodered.org/t/iot2040-node-red-contrib-fred/59435/8 "2022-05-05T13:43:08Z")

</div>

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