Question

How to link a droplet data to Mongodb?

Hello,

Hope this message finds you well.

I have created a droplet and installed a Mosquitto MQTT broker so our sensor would send data to the cloud/droplet.

So far so good as we can see the sensor data in the droplet console.

Question: how can we “transfer” sensor data from the droplet console to the mongodb database ?

I understand the answer may be “length” but any help is more than welcome so if possible, please point me in the right direction with tutorials or product guides?

Thank you.

Subscribe
Share

Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hi @ritaCoral,

The below links can provide some guidance on storing Mosquitto MQTT broker sensor data to MongoDB database.

https://github.com/dennisdegreef/mqtt-mongo-recorder

https://www.hackster.io/14872/temperature-logging-using-mqtt-and-mongodb-a58cce

I hope this helps!

Regards, Rajkishore