| Name | MongoDB |
| Version | v1.0.0 |
| GitHub | weeve-modules/mongodb |
| Authors | Jakub Grzelak |
Write data to your selected MongoDB database and collection. When generating MongoDB Atlas URI please select MongoDB Drivers > Python > 3.12 or later. If you need assist with getting your URI refer to MongoDB documentation.
The following module configurations can be provided in a data service designer section on weeve platform:
| Name | Environment Variables | type | Description |
|---|---|---|---|
| MongoDB URI | MONGO_URI | string | URI address of your MongoDB or your MongoDB Atlas. |
| Database Name | DATABASE_NAME | string | Name of the database to write data to. |
| Collection Name | COLLECTION_NAME | string | Name of the collection in the selected database to write data to. |
Other features required for establishing the inter-container communication between modules in a data service are set by weeve agent.
| Environment Variables | type | Description |
|---|---|---|
| MODULE_NAME | string | Name of the module |
| MODULE_TYPE | string | Type of the module (Input, Processing, Output) |
| INGRESS_HOST | string | Host to which data will be received |
| INGRESS_PORT | string | Port to which data will be received |
bottle
pymongo[srv]
Input to this module is:
{
"temperature": 13,
"volume": 13
}
[
{
"temperature": 13,
"volume": 13
},
{
"temperature": 23,
"volume": 1
}
]
Output of this module is:
Inserted data to the selected database and collection in the MongoDB.
Content type
Image
Digest
sha256:ce3bc800e…
Size
49.5 MB
Last updated
over 3 years ago
docker pull weevenetwork/mongodb:v1.0.0