Sign inSign up

weevenetwork/mongodb

By weevenetwork

Updated over 3 years ago

Image
0

335

weevenetwork/mongodb repository overview

MongoDB

NameMongoDB
Versionv1.0.0
GitHubweeve-modules/mongodb
AuthorsJakub Grzelak

Description

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.

Environment Variables

Module Specific

The following module configurations can be provided in a data service designer section on weeve platform:

NameEnvironment VariablestypeDescription
MongoDB URIMONGO_URIstringURI address of your MongoDB or your MongoDB Atlas.
Database NameDATABASE_NAMEstringName of the database to write data to.
Collection NameCOLLECTION_NAMEstringName of the collection in the selected database to write data to.
Set by the weeve Agent on the edge-node

Other features required for establishing the inter-container communication between modules in a data service are set by weeve agent.

Environment VariablestypeDescription
MODULE_NAMEstringName of the module
MODULE_TYPEstringType of the module (Input, Processing, Output)
INGRESS_HOSTstringHost to which data will be received
INGRESS_PORTstringPort to which data will be received

Dependencies

bottle
pymongo[srv]

Input

Input to this module is:

  • JSON body single object, example:
{
   "temperature": 13,
   "volume": 13
}
  • array of JSON body objects, example:
[
    {
        "temperature": 13,
        "volume": 13
    },
    {
        "temperature": 23,
        "volume": 1
    }
]

Output

Output of this module is:

Inserted data to the selected database and collection in the MongoDB.

Tag summary

Content type

Image

Digest

sha256:ce3bc800e

Size

49.5 MB

Last updated

over 3 years ago

docker pull weevenetwork/mongodb:v1.0.0