Question

How to link a droplet data to Mongodb?

Posted October 14, 2021 113 views
MongoDBNode.jsDigitalOcean API and CLI (doctl)DigitalOcean Droplets

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.

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.

×
Submit an Answer
1 answer

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