
sensor_monitor
一个基于Django的环境传感器数据监控平台,支持接收、存储、可视化和导出数据。
Repository Info
About This Server
一个基于Django的环境传感器数据监控平台,支持接收、存储、可视化和导出数据。
Model Context Protocol (MCP) - This server can be integrated with AI applications to provide additional context and capabilities, enabling enhanced AI interactions and functionality.
Documentation
AMI Sensor Monitor (UWM Capstone Project)
This project is a sensor data monitoring platform developed by a team for the UWM Capstone Project. It is a Django-based web application used to receive, store, visualize, and export data from various environmental sensors.
Key Features
- Data Reception: Provides API endpoints to receive data from sensors (Temperature, Humidity, CO2, PM1.0, PM2.5, PM10.0).
- Data Query: Provides a RESTful API to query stored sensor data (requires user login), supporting filtering by time range.
- Data Export: Allows logged-in users to export data for specified time ranges and sensor types as CSV or JSON files.
- User Authentication: Includes user registration, login, and logout functionalities.
- Gmail Notifications: Sends notifications when thresholds are exceeded.
- Data Visualization: Provides charts or other forms to display sensor data trends.
- Chatbot: Integrates multiple chatbots, offering free or paid features.
Technology Stack
- Backend: Python, Django, Django REST Framework
- Database: SQLite
- Frontend: HTML, CSS, JavaScript
- AI Features: MCP (Model Context Protocol technology, used for DeepSeek AI), Hybrid Strategy Answering technology (used for basic AI)
Installation and Running
-
Clone Repository:
git clone <your-repository-url> cd <repository-directory> -
Create and Activate Virtual Environment:
python -m venv venv source venv/bin/activate # On Windows use `venv\Scripts\activate` -
Install Dependencies: The project currently lacks a
requirements.txtfile. You need to manually install dependencies based onINSTALLED_APPSinconfig/settings.pyandimportstatements in the code. Key dependencies include:pip install django djangorestframework python-dotenv # Other dependencies might be needed -
Database Migration:
python manage.py migrate -
Create Admin User: You can use the provided script:
python create_admin.pyOr use the Django command:
python manage.py createsuperuser -
Configure Google Mail API Key (You will need to set up API credentials in
config/settings.py) -
Run Development Server: You need to run two processes, preferably in separate terminals:
# Terminal 1: Run Django development server python manage.py runserver# Terminal 2: Run MCP server mcpo --host 127.0.0.1 --port 8002 -- python MCP_server/mcp_server.py
Team
- This project was developed by a team for the Capstone Project at the University of Wisconsin-Milwaukee.
- AMI Team
- Member 1: YU-ERH, PAN
- Member 2: Yen-Lin, Chang
- Member 3: Carson K Lisowe
- Member 4: Taiwo Boluwaji Abe
- Member 5: Collin Brey
- Member 6: Matthew Scott Maijala
Acknowledgements
Special thanks to the following open-source projects:
- MCPO: https://github.com/open-webui/mcpo
- MCP: https://github.com/modelcontextprotocol
- Comitup: https://github.com/davesteele/comitup
Quick Start
Clone the repository
git clone https://github.com/yenlin1115/sensor_monitorInstall dependencies
cd sensor_monitor
npm installFollow the documentation
Check the repository's README.md file for specific installation and usage instructions.
Repository Details
Recommended MCP Servers
Discord MCP
Enable AI assistants to seamlessly interact with Discord servers, channels, and messages.
Knit MCP
Connect AI agents to 200+ SaaS applications and automate workflows.
Apify MCP Server
Deploy and interact with Apify actors for web scraping and data extraction.
BrowserStack MCP
BrowserStack MCP Server for automated testing across multiple browsers.
Zapier MCP
A Zapier server that provides automation capabilities for various apps.