- Added iots-right.json configuration file to define IoT devices and their sensors. - Developed HttpPoller class to handle polling of IoT devices via HTTP. - Created IoT configuration loader to validate and load device configurations from JSON. - Introduced models for device status, polling metrics, and data sources. - Implemented API routes for health checks, device status retrieval, and configuration management. - Enhanced error handling and logging throughout the data ingestion process.
15 lines
319 B
Plaintext
15 lines
319 B
Plaintext
# MongoDB Configuration
|
|
# Update with your MongoDB connection string
|
|
MONGO_URL=mongodb://admin:password123@localhost:27017/?authSource=admin
|
|
|
|
# HTTP Poller Configuration
|
|
# IoT device polling settings
|
|
HTTP_POLL_INTERVAL=60
|
|
HTTP_TIMEOUT=10
|
|
HTTP_MAX_CONCURRENT=5
|
|
|
|
# Application Settings
|
|
DEBUG=false
|
|
HOST=0.0.0.0
|
|
PORT=8000
|