Report this

What is the reason for this report?

How to link a droplet data to Mongodb?

Posted on October 14, 2021

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.



This textbox defaults to using Markdown to format your 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

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Start building today

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.