{"id":19297139,"url":"https://github.com/abderrahmane-stack/flask-redis-iot","last_synced_at":"2026-01-27T08:03:30.934Z","repository":{"id":261256003,"uuid":"883758833","full_name":"abderrahmane-stack/flask-redis-iot","owner":"abderrahmane-stack","description":"This project demonstrates an IoT setup where an ESP8266 microcontroller sends data to a Flask web application hosted in Docker. The ESP8266 transmits a name field via HTTP POST requests. Upon receiving this, Flask generates a timestamp and stores both name and date in a Redis database.","archived":false,"fork":false,"pushed_at":"2024-11-05T14:28:52.000Z","size":199,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-12T05:36:11.614Z","etag":null,"topics":["flask","iot","redis"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/abderrahmane-stack.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2024-11-05T14:22:08.000Z","updated_at":"2024-11-05T14:32:07.000Z","dependencies_parsed_at":"2024-11-05T15:51:46.539Z","dependency_job_id":null,"html_url":"https://github.com/abderrahmane-stack/flask-redis-iot","commit_stats":null,"previous_names":["abderrahmane-stack/flask-redis-iot"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/abderrahmane-stack/flask-redis-iot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abderrahmane-stack%2Fflask-redis-iot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abderrahmane-stack%2Fflask-redis-iot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abderrahmane-stack%2Fflask-redis-iot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abderrahmane-stack%2Fflask-redis-iot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/abderrahmane-stack","download_url":"https://codeload.github.com/abderrahmane-stack/flask-redis-iot/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abderrahmane-stack%2Fflask-redis-iot/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28809337,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-27T07:41:26.337Z","status":"ssl_error","status_checked_at":"2026-01-27T07:41:08.776Z","response_time":168,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["flask","iot","redis"],"created_at":"2024-11-09T23:01:11.962Z","updated_at":"2026-01-27T08:03:30.912Z","avatar_url":"https://github.com/abderrahmane-stack.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Flask-Redis IoT Project\n\nThis project demonstrates an IoT setup where an ESP8266 module sends data to a Flask web application hosted in a Docker container. The data is stored in a Redis database, also running in Docker.\n\n## Project Structure\n\n- `app.py`: Flask application that receives data and stores it in Redis.\n- `Dockerfile`: Configuration for building the Flask app Docker image.\n- `docker-compose.yaml`: Configuration for setting up both Flask and Redis services.\n- `requirements.txt`: Python dependencies required for the Flask app.\n- `index.html`: HTML template for viewing stored data (optional).\n\n## Setup Instructions\n\n### Prerequisites\n\n- Docker and Docker Compose\n- Python 3.x and pip\n- ESP8266 module (configured to send HTTP requests to the Flask app)\n\n### Installation\n\n1. Clone the repository:\n   ```bash\n   git clone https://github.com/abderrahmane-stack/flask-redis-iot.git\n   cd flask-redis-iot\n2. Build and start the Docker containers:\n  ```bash\n  docker-compose up --build -d\n   ```\n## Usage\nEnsure your ESP8266 is configured to send JSON data (only name field) to the Flask app's endpoint.\nOpen http://localhost:5000/ in your browser to view the JSON data.\nAccess http://localhost:5000/action to view data in a web interface.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabderrahmane-stack%2Fflask-redis-iot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fabderrahmane-stack%2Fflask-redis-iot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabderrahmane-stack%2Fflask-redis-iot/lists"}