# Multiple raspberry pi dashboard

**URL:** <https://discourse.nodered.org/t/multiple-raspberry-pi-dashboard/1672>\
**Category:** General\
**Created:** [18 July 2018 18:51 UTC](https://discourse.nodered.org/t/multiple-raspberry-pi-dashboard/1672 "2018-07-18T18:51:59Z")\
**Posts on this page:** 18\
**Page:** 2

<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 July 2018 20:52 UTC](https://discourse.nodered.org/t/multiple-raspberry-pi-dashboard/1672/22 "2018-07-20T20:52:38Z")

</div>

What do you see in the terminal when you start node red. Copy/paste it here.  
Have you put the IP address of the pi in the MQTT In node on the pc?

---

<div class="post-metadata">

**Author:** ![WillWelker](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/willwelker/32/771_2.png) [@WillWelker](https://discourse.nodered.org/u/WillWelker)\
**Post date:** [22 July 2018 16:32 UTC](https://discourse.nodered.org/t/multiple-raspberry-pi-dashboard/1672/23 "2018-07-22T16:32:22Z")

</div>

I run Node Red on my Windows PC and connect to Mosquito running on a Pi.

 ![mqtt-1](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/b/bd586421a5dd08e0ac0ff8efdfb9c9531ab45fd6.jpg)  
Here is a simple connection to my Pi which is at 192.168.1.100 on my network. For simplicity, I am using no password. The inject node passes "Hello World!". Open the mqtt node options, set your topic. My topic is just "hello" (on both send and receive nodes), hit the edit button (pencil icon) and enter the IP address of your Pi that is running Mosquito, This sends my message to the mqtt server on the topic of "hello". The other mqtt node receives anything from that mqtt server that is published on the topic of "hello".

---

<div class="post-metadata">

**Author:** ![E.Strobel](https://avatars.discourse-cdn.com/v4/letter/e/ce73a5/32.png) [@E.Strobel](https://discourse.nodered.org/u/E.Strobel)\
**Post date:** [23 July 2018 11:59 UTC](https://discourse.nodered.org/t/multiple-raspberry-pi-dashboard/1672/24 "2018-07-23T11:59:29Z")

</div>

When I start Node-red:

```auto
Welcome to Node-RED
===================

23 Jul 07:51:55 - [info] Node-RED version: v0.18.7
23 Jul 07:51:55 - [info] Node.js version: v8.11.3
23 Jul 07:51:55 - [info] Windows_NT 6.1.7601 x64 LE
23 Jul 07:51:58 - [info] Loading palette nodes
23 Jul 07:52:01 - [warn] ------------------------------------------------------
23 Jul 07:52:01 - [warn] [node-red/rpi-gpio] Info : Ignoring Raspberry Pi specif
ic node
23 Jul 07:52:01 - [warn] [node-red/tail] Not currently supported on Windows.
23 Jul 07:52:01 - [warn] ------------------------------------------------------
23 Jul 07:52:01 - [info] Settings file : \Users\estrobel\.node-red\settings.js
23 Jul 07:52:01 - [info] User directory : \Users\estrobel\.node-red
23 Jul 07:52:01 - [warn] Projects disabled : editorTheme.projects.enabled=false
23 Jul 07:52:01 - [info] Flows file : \Users\estrobel\.node-red\flows_124CC3
b2D6F7.json
23 Jul 07:52:01 - [info] Server now running at http://127.0.0.1:1880/
23 Jul 07:52:01 - [warn]

---------------------------------------------------------------------
Your flow credentials file is encrypted using a system-generated key.

If the system-generated key is lost for any reason, your credentials
file will not be recoverable, you will have to delete it and re-enter
your credentials.

You should set your own key using the 'credentialSecret' option in
your settings file. Node-RED will then re-encrypt your credentials
file using your chosen key the next time you deploy a change.
---------------------------------------------------------------------

23 Jul 07:52:01 - [info] Starting flows
23 Jul 07:52:01 - [info] Started flows
23 Jul 07:52:01 - [info] [mqtt-broker:820d6142.eb45e] Connection failed to broke
r: mqtt://10.168.58.32:1883

```

I have the IP address of the pi in the MQTT In node on the pc.

---

<div class="post-metadata">

**Author:** ![E.Strobel](https://avatars.discourse-cdn.com/v4/letter/e/ce73a5/32.png) [@E.Strobel](https://discourse.nodered.org/u/E.Strobel)\
**Post date:** [23 July 2018 12:40 UTC](https://discourse.nodered.org/t/multiple-raspberry-pi-dashboard/1672/25 "2018-07-23T12:40:14Z")

</div>

This is what I have at the moment. I removed the security and included the MQTT wildcards. I believe this is very similar to what you have, but as the log from the terminal shows the connection failed to the broker.

 ![Node-Red%20Help](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/8/84c3681f7b7fd9bdc55a4cbb5624767d7362037d.jpg)

---

<div class="post-metadata">

**Author:** ![E.Strobel](https://avatars.discourse-cdn.com/v4/letter/e/ce73a5/32.png) [@E.Strobel](https://discourse.nodered.org/u/E.Strobel)\
**Post date:** [23 July 2018 12:41 UTC](https://discourse.nodered.org/t/multiple-raspberry-pi-dashboard/1672/26 "2018-07-23T12:41:08Z")

</div>

> [@ukmoose](#):
>
> By which you mean you a publishing a topic to the broker and that on the PC the MQTT-IN node is set to subscribe to that topic

Yes, that is what I mean.

---

<div class="post-metadata">

**Author:** ![ukmoose](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ukmoose/32/13_2.png) [@ukmoose](https://discourse.nodered.org/u/ukmoose)\
**Post date:** [23 July 2018 12:48 UTC](https://discourse.nodered.org/t/multiple-raspberry-pi-dashboard/1672/27 "2018-07-23T12:48:25Z")

</div>

In your MQTT-out you have a wildcard in the topic. You need to specify to specific topic to publish on.  
Wildcards are restricted to the MQTT-IN

When you say you "removed the security" what exactly do you mean?

---

<div class="post-metadata">

**Author:** ![E.Strobel](https://avatars.discourse-cdn.com/v4/letter/e/ce73a5/32.png) [@E.Strobel](https://discourse.nodered.org/u/E.Strobel)\
**Post date:** [23 July 2018 13:32 UTC](https://discourse.nodered.org/t/multiple-raspberry-pi-dashboard/1672/28 "2018-07-23T13:32:00Z")

</div>

> [@ukmoose](#):
>
> You need to specify to specific topic to publish on. Wildcards are restricted to the MQTT-IN

Does it matter the name of the topic I publish to. In post 13 I show an mqtt input which is connected, and the topic is emon/emonpi/power1. Should this be the topic of the mqtt output node on the pi as well?

> [@ukmoose](#):
>
> When you say you "removed the security" what exactly do you mean?

For both mqtt output node and input node, I have deleted the username and password under the security tab when I go to configure.

---

<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:** [23 July 2018 13:37 UTC](https://discourse.nodered.org/t/multiple-raspberry-pi-dashboard/1672/29 "2018-07-23T13:37:09Z")

</div>

> [@E.Strobel](#):
>
> Does it matter the name of the topic I publish to.

Yes. You need to get the topic names right for it to work. You cannot publish to a topic with a wildcard (`#` or `+`) in. So your MQTT Out node's configuration in that screenshot is not valid and will not do anything.

You can either subscribe to a single topic (`/emon/emonpi/power1`) to get just the messages published to that topic, or use a topic filter with a wildcard in it (`/emon/emonpi/#`) to get all messages published to topics that begin with `/emon/emonpi/`.

---

<div class="post-metadata">

**Author:** ![E.Strobel](https://avatars.discourse-cdn.com/v4/letter/e/ce73a5/32.png) [@E.Strobel](https://discourse.nodered.org/u/E.Strobel)\
**Post date:** [23 July 2018 15:05 UTC](https://discourse.nodered.org/t/multiple-raspberry-pi-dashboard/1672/30 "2018-07-23T15:05:50Z")

</div>

I changed the mqtt blocks to the way I had previously configured them, with the mqtt output node topic on the pi (emon/emonpi/power1) and the input on the pc (emon/emonpi/power1), but I am still not connected. The log is still saying:

```auto
Jul 11:07:52 - [info] [mqtt-broker:820d6142.eb45e] Connection failed to broke
mqtt://10.168.58.32:1883

```

I understand that the topics between pi and pc need to match, but does it matter that the output on the pi is subscribed to the same topic that the input on the pi is subscribed to?

---

<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:** [23 July 2018 15:14 UTC](https://discourse.nodered.org/t/multiple-raspberry-pi-dashboard/1672/31 "2018-07-23T15:14:29Z")

</div>

If it is failing to connect, it doesn't matter how you have the topic's configured.

Is that IP address correct for the machine running the broker?  
Have you checked the broker logs for any error messages related to failed connection attempts?  
Have you tried a command line tool (such as those mosquitto provides) to check you can reach the broker outside of 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:** [23 July 2018 16:47 UTC](https://discourse.nodered.org/t/multiple-raspberry-pi-dashboard/1672/32 "2018-07-23T16:47:38Z")

</div>

You are not running node-red-contrib-mqtt-broker on both the PC and the pi are you? You should just be running one broker in your situation. On the pi.

---

<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:** [23 July 2018 16:52 UTC](https://discourse.nodered.org/t/multiple-raspberry-pi-dashboard/1672/33 "2018-07-23T16:52:25Z")

</div>

> [@E.Strobel](#):
>
> For both mqtt output node and input node, I have deleted the username and password under the security tab when I go to configure.

What matters is whether you have specified security in the _broker_. If you have then you need to specify it in mqtt out and mqtt in, if you have not specified it in the broker then you don't need in in the In and Out nodes. I suspect that you still do not have a grasp of the basics of MQTT. Did you work through the introduction that was suggested to your some days ago? [http://www.hivemq.com/mqtt-essentials](http://www.hivemq.com/mqtt-essentials)

---

<div class="post-metadata">

**Author:** ![E.Strobel](https://avatars.discourse-cdn.com/v4/letter/e/ce73a5/32.png) [@E.Strobel](https://discourse.nodered.org/u/E.Strobel)\
**Post date:** [23 July 2018 17:01 UTC](https://discourse.nodered.org/t/multiple-raspberry-pi-dashboard/1672/34 "2018-07-23T17:01:41Z")

</div>

I have been going through the introduction as I have had time. What I didn't realize was the fact that regardless the topic, the broker requires the same username and password to connect. It is saying connected now, so thank you. Sorry it took 32 posts for a solution so simple.

---

<div class="post-metadata">

**Author:** ![davidcgu](https://avatars.discourse-cdn.com/v4/letter/d/e8c25b/32.png) [@davidcgu](https://discourse.nodered.org/u/davidcgu)\
**Post date:** [23 July 2018 20:19 UTC](https://discourse.nodered.org/t/multiple-raspberry-pi-dashboard/1672/35 "2018-07-23T20:19:31Z")

</div>

I wonder if is possible to run different instances of NR at once using a different port.... maybe someone has some link that explains howto.

Regards

---

<div class="post-metadata">

**Author:** ![cymplecy](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/cymplecy/32/2773_2.png) [@cymplecy](https://discourse.nodered.org/u/cymplecy)\
**Post date:** [23 July 2018 20:55 UTC](https://discourse.nodered.org/t/multiple-raspberry-pi-dashboard/1672/36 "2018-07-23T20:55:45Z")

</div>

> [@davidcgu](#):
>
> I wonder if is possible to run different instances of NR at once using a different port.

OT but yep - my main one runs on 1880 - my own customised fork of NodeRED runs on port 1881 - you just need to change a value in settings.js

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/c/c23c7d63c7c94369731d8691527467b11f792f1b.png)

---

<div class="post-metadata">

**Author:** ![davidcgu](https://avatars.discourse-cdn.com/v4/letter/d/e8c25b/32.png) [@davidcgu](https://discourse.nodered.org/u/davidcgu)\
**Post date:** [23 July 2018 20:57 UTC](https://discourse.nodered.org/t/multiple-raspberry-pi-dashboard/1672/37 "2018-07-23T20:57:05Z")

</div>

I know to change the port is just edit settings but I mean to have running several instances of NR at once

---

<div class="post-metadata">

**Author:** ![ukmoose](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ukmoose/32/13_2.png) [@ukmoose](https://discourse.nodered.org/u/ukmoose)\
**Post date:** [23 July 2018 21:01 UTC](https://discourse.nodered.org/t/multiple-raspberry-pi-dashboard/1672/38 "2018-07-23T21:01:35Z")

</div>

I'm not sure how this relates to this thread, which was about integrating data from three different machines. If you have a query about running multiple instances at once, how about opening a new thread?

---

<div class="post-metadata">

**Author:** ![davidcgu](https://avatars.discourse-cdn.com/v4/letter/d/e8c25b/32.png) [@davidcgu](https://discourse.nodered.org/u/davidcgu)\
**Post date:** [23 July 2018 21:07 UTC](https://discourse.nodered.org/t/multiple-raspberry-pi-dashboard/1672/39 "2018-07-23T21:07:37Z")

</div>

Ukmoose, I just wondering myself, but I think was related to the original post title " Multiple raspberry pi dashboard"

Regards

[Previous page](https://discourse.nodered.org/t/multiple-raspberry-pi-dashboard/1672.md?page=1)
