# Mqtt explorer with mqtt db

**URL:** https://discourse.nodered.org/t/mqtt-explorer-with-mqtt-db/25868
**Category:** General
**Created:** [1 May 2020 13:31 UTC](https://discourse.nodered.org/t/mqtt-explorer-with-mqtt-db/25868 "2020-05-01T13:31:12Z")
**Posts on this page:** 14
**Page:** 1

<div class="post-metadata">

### Author: ![Martin10](https://avatars.discourse-cdn.com/v4/letter/m/a587f6/32.png) [@Martin10](https://discourse.nodered.org/u/Martin10)
#### Post date: [1 May 2020 13:31 UTC](https://discourse.nodered.org/t/mqtt-explorer-with-mqtt-db/25868/1 "2020-05-01T13:31:12Z")

</div>

Can we somehow combine mqtt explorer with mqtt db, in order to store data directly on PC/server?  
Can we install mqtt explorer on win server 19?

---

<div class="post-metadata">

### Author: ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)
#### Post date: [1 May 2020 15:13 UTC](https://discourse.nodered.org/t/mqtt-explorer-with-mqtt-db/25868/2 "2020-05-01T15:13:01Z")

</div>

MQTT-Explorer is not a db, it is a client for viewing MQTT data from an MQTT Broker such as provided by Mosquitto or Mosca.

MQTT is not a DB either. Since MQTT can, at best, only store the last value for any topic (by using the retained flag). MQTT Broker's are optimised for data communications not data retention.

However, you can run both MQTT-Explorer and Mosquitto on a Windows Server or indeed on a Windows 10 PC if you really want to.

Of course, none of this directly relates to Node-RED.

---

<div class="post-metadata">

### Author: ![Martin10](https://avatars.discourse-cdn.com/v4/letter/m/a587f6/32.png) [@Martin10](https://discourse.nodered.org/u/Martin10)
#### Post date: [1 May 2020 15:55 UTC](https://discourse.nodered.org/t/mqtt-explorer-with-mqtt-db/25868/3 "2020-05-01T15:55:22Z")

</div>

Is this not a DB?

> **[node-red-contrib-mqttdb](https://flows.nodered.org/node/node-red-contrib-mqttdb)**
>
> MQTT Node with persistent message storage

---

<div class="post-metadata">

### Author: ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)
#### Post date: [1 May 2020 16:58 UTC](https://discourse.nodered.org/t/mqtt-explorer-with-mqtt-db/25868/4 "2020-05-01T16:58:22Z")

</div>

Not really. It is more of a cache - in fact that is exactly what it is. It caches incoming/outgoing MQTT msgs. It doesn't say but I imagine that it still only caches the last msg of any specific topic. It also doesn't provide any query or other CRUD methods. It also suffers from the same issues that MQTT Brokers to, it is configured for throughput not data safety.

Not quite sure why it does outgoing or what benefit that is? Indeed, not entirely sure what benefit the node gives to be honest since it seems to replicate what the retained msg flag does in MQTT anyway. I suppose that it caches all msgs rather than just retained ones?

Not to say that this or retained msgs aren't useful. But you should consider them in context. They are a cache of variable data - which might be exactly what you want?

Either way, none of that relates to MQTT-Explorer.

It would be better if you could explain the purpose for which you want to retain some data then we could possibly provide more than just an explanation of the terminology.

---

<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: [1 May 2020 18:10 UTC](https://discourse.nodered.org/t/mqtt-explorer-with-mqtt-db/25868/5 "2020-05-01T18:10:13Z")

</div>

> [@Martin10](#):
>
> Can we somehow combine mqtt explorer with mqtt db

Unless i am misunderstanding you - I think you are confusing things.

[node-red-contrib-mqttdb](https://flows.nodered.org/node/node-red-contrib-mqttdb) is a node for storing MQTT data in a DB

mqtt explorer is a client (just like node-red MQTT is a client, so is anything MQTT that ISNT the broker)

Of course you could use node-red-contrib-mqttdb for storing data you enter into mqtt explorer but that's really quite impracticable.

---

<div class="post-metadata">

### Author: ![Martin10](https://avatars.discourse-cdn.com/v4/letter/m/a587f6/32.png) [@Martin10](https://discourse.nodered.org/u/Martin10)
#### Post date: [1 May 2020 18:44 UTC](https://discourse.nodered.org/t/mqtt-explorer-with-mqtt-db/25868/6 "2020-05-01T18:44:05Z")

</div>

My question is- can we transfer and store sensor data obtained from RPI node-red directly to PC/Server in some DB, like SQLite, MQTT DB or else?

---

<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: [1 May 2020 19:11 UTC](https://discourse.nodered.org/t/mqtt-explorer-with-mqtt-db/25868/7 "2020-05-01T19:11:43Z")

</div>

of course.

There are [many database nodes](https://flows.nodered.org/search?term=database&type=node) (MS SQL, MYSQL, Influx, etc, etc) - AND - as you can see, node-red can receive MQTT data.

so, link the two together. 🙂

It has been done [many times](https://discourse.nodered.org/search?expanded=true&q=mqtt%20to%20database)

Its pretty much bread and butter stuff.

---

<div class="post-metadata">

### Author: ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)
#### Post date: [1 May 2020 19:49 UTC](https://discourse.nodered.org/t/mqtt-explorer-with-mqtt-db/25868/8 "2020-05-01T19:49:54Z")

</div>

Like I said, if you shared what you were trying to achieve, you would get much better answers.

As Steve says, there are tons of ways to store IoT sensor data in a database.

So the simple answer is: Yes.

---

<div class="post-metadata">

### Author: ![Martin10](https://avatars.discourse-cdn.com/v4/letter/m/a587f6/32.png) [@Martin10](https://discourse.nodered.org/u/Martin10)
#### Post date: [2 May 2020 12:11 UTC](https://discourse.nodered.org/t/mqtt-explorer-with-mqtt-db/25868/9 "2020-05-02T12:11:20Z")

</div>

I just want to obtain sensor data with node red, visualize it, upload it to cloud (can thingspeak upload data via mqtt protocol, or can just only via http?), and store it in DB on Server.

---

<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: [2 May 2020 12:16 UTC](https://discourse.nodered.org/t/mqtt-explorer-with-mqtt-db/25868/10 "2020-05-02T12:16:32Z")

</div>

> [@Martin10](#):
>
> can thingspeak upload data via mqtt protocol, or can just only via http

Dunno. Ask in their forum or on stack exchange.

Node red can.

---

<div class="post-metadata">

### Author: ![Martin10](https://avatars.discourse-cdn.com/v4/letter/m/a587f6/32.png) [@Martin10](https://discourse.nodered.org/u/Martin10)
#### Post date: [4 May 2020 12:08 UTC](https://discourse.nodered.org/t/mqtt-explorer-with-mqtt-db/25868/11 "2020-05-04T12:08:47Z")

</div>

I was wonder can we add some mqtt library, and connect it to thingspeak library, to send data to thingspeak via mqtt protocol?

---

<div class="post-metadata">

### Author: ![kuema](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/kuema/32/6542_2.png) [@kuema](https://discourse.nodered.org/u/kuema)
#### Post date: [4 May 2020 12:13 UTC](https://discourse.nodered.org/t/mqtt-explorer-with-mqtt-db/25868/12 "2020-05-04T12:13:54Z")

</div>

Node-RED already has out-of-the-box MQTT support via MQTT nodes. No need for extra libraries.

---

<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: [4 May 2020 12:14 UTC](https://discourse.nodered.org/t/mqtt-explorer-with-mqtt-db/25868/13 "2020-05-04T12:14:47Z")

</div>

Search the forum and [Flows](https://flows.nodered.org/search?term=thingspeak)

---

<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 July 2020 12:14 UTC](https://discourse.nodered.org/t/mqtt-explorer-with-mqtt-db/25868/14 "2020-07-03T12:14:49Z")

</div>

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