{"id":24707994,"url":"https://github.com/PunGrumpy/vegetable-processing-factory-big-data","last_synced_at":"2025-10-09T09:31:44.598Z","repository":{"id":270846297,"uuid":"911540594","full_name":"PunGrumpy/vegetable-processing-factory-big-data","owner":"PunGrumpy","description":"🫛 Vegetable processing control and tracking system with IoT","archived":false,"fork":false,"pushed_at":"2025-03-12T07:10:34.000Z","size":30,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-09T09:22:40.395Z","etag":null,"topics":["iot","mongodb","nosql","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/PunGrumpy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-01-03T09:02:20.000Z","updated_at":"2025-03-12T07:10:52.000Z","dependencies_parsed_at":"2025-01-03T14:43:18.341Z","dependency_job_id":"0cbbe172-90be-47c6-9d6f-9cfab6f61adb","html_url":"https://github.com/PunGrumpy/vegetable-processing-factory-big-data","commit_stats":null,"previous_names":["pungrumpy/vet-processing-factory","pungrumpy/vegetable-processing-factory-big-data"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/PunGrumpy/vegetable-processing-factory-big-data","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PunGrumpy%2Fvegetable-processing-factory-big-data","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PunGrumpy%2Fvegetable-processing-factory-big-data/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PunGrumpy%2Fvegetable-processing-factory-big-data/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PunGrumpy%2Fvegetable-processing-factory-big-data/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PunGrumpy","download_url":"https://codeload.github.com/PunGrumpy/vegetable-processing-factory-big-data/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PunGrumpy%2Fvegetable-processing-factory-big-data/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279001135,"owners_count":26083022,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-09T02:00:07.460Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["iot","mongodb","nosql","typescript"],"created_at":"2025-01-27T06:27:32.249Z","updated_at":"2025-10-09T09:31:44.593Z","avatar_url":"https://github.com/PunGrumpy.png","language":"TypeScript","readme":"# 🫛 IoT Vegetable Processing Factory Big Data\n\nA scalable IoT-based system for monitoring and controlling vegetable processing operations. This project uses MongoDB for real-time data storage and analysis of production states, sensor readings, and system parameters.\n\n## 🌱 Project Overview\n\nThis system collects and manages three main types of data:\n\n1. **Production States** - Records each stage of the vegetable processing, including batch information, temperatures, humidity, and other production metrics.\n2. **Sensor Data** - Collects readings from various sensors throughout the factory, including temperature, humidity, pressure, and more.\n3. **State Parameters** - Stores settings and configurations for each production state.\n\n## 📦 Requirements\n\n- Node.js v18.0.0+\n- [Bun](https://bun.sh) v1.0.0+\n- MongoDB (via MongoDB Atlas or local instance)\n\n## 🚀 Getting Started\n\n### Installation\n\n1. Clone the repository:\n\n```bash\ngit clone https://github.com/PunGrumpy/vegetable-processing-factory-big-data.git\ncd vegetable-processing-factory-big-data\n```\n\n2. Install the dependencies:\n\n```bash\nbun install\n```\n\n3. Copy the environment file and configure your MongoDB connection:\n\n```bash\ncp .env.example .env.local\n# Edit .env.local with your MongoDB connection string and database name\n```\n\n### Database Setup and Seeding\n\n1. Initialize the database connection:\n\n```bash\nbun db:setup\n```\n\n2. Seed the database with sample data:\n\n```bash\nbun seed\n```\n\nYou can also seed specific collections:\n\n```bash\nbun seed:production  # Seed only production states\nbun seed:sensors     # Seed only sensor data\nbun seed:parameters  # Seed only state parameters\n```\n\n### Using the CLI\n\nThe project includes a CLI for common operations:\n\n```bash\n# Start the application\nbun dev\n\n# Seed the database via CLI\nbun dev:seed\n\n# Query and display database statistics\nbun dev:query\n```\n\n## 🗄️ Data Models\n\n### Production State\n\n```typescript\n{\n  batch_id: string // Unique batch identifier\n  state_id: string // Unique state identifier\n  timestamp: Date // When this state was recorded\n  state_name: string // Name of the processing state (e.g., \"Washing\")\n  previous_state: string // ID of the previous state\n  duration: number // Duration in minutes\n  temperature: number // Temperature in Celsius\n  humidity: number // Humidity percentage\n  conveyor_speed: number // Speed in meters per second\n  product_count: number // Number of products processed\n  defect_percentage: number // Percentage of defective products\n  water_consumption: number // Water used in liters\n  energy_consumption: number // Energy used in kWh\n}\n```\n\n### Sensor Data\n\n```typescript\n{\n  sensor_id: string // Unique sensor identifier\n  state_id: string // Associated state identifier\n  timestamp: Date // When the reading was taken\n  sensor_type: string // Type of sensor (temperature, humidity, etc.)\n  value: number // Sensor reading value\n  unit: string // Measurement unit\n  location: string // Physical location of sensor\n}\n```\n\n### State Parameter\n\n```typescript\n{\n  state_id: string       // Associated state identifier\n  parameter_name: string // Name of the parameter\n  parameter_type: string // Type: numeric, text, or boolean\n  numeric_value?: number // Value if type is numeric\n  text_value?: string    // Value if type is text\n  boolean_value?: boolean // Value if type is boolean\n  timestamp: Date        // When the parameter was set\n}\n```\n\n## 📝 License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FPunGrumpy%2Fvegetable-processing-factory-big-data","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FPunGrumpy%2Fvegetable-processing-factory-big-data","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FPunGrumpy%2Fvegetable-processing-factory-big-data/lists"}