{"id":16521428,"url":"https://github.com/mikebionic/iot-switch","last_synced_at":"2025-06-18T16:35:37.247Z","repository":{"id":79220186,"uuid":"303779632","full_name":"mikebionic/IoT-Switch","owner":"mikebionic","description":"IoT app with using ESP8266 microprocessors and Linux backend REST server","archived":false,"fork":false,"pushed_at":"2022-05-11T18:45:37.000Z","size":25548,"stargazers_count":9,"open_issues_count":0,"forks_count":4,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-09T20:52:06.406Z","etag":null,"topics":["arduino","esp-01","esp8266","flask","iot","nodemcu","opencv","plc","python","smartcity","smarthome","sqlalchemy","web-api"],"latest_commit_sha":null,"homepage":"","language":"CSS","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/mikebionic.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}},"created_at":"2020-10-13T17:24:49.000Z","updated_at":"2024-02-28T17:32:21.000Z","dependencies_parsed_at":"2023-03-12T07:22:00.790Z","dependency_job_id":null,"html_url":"https://github.com/mikebionic/IoT-Switch","commit_stats":null,"previous_names":["mikebionic/iot-switch"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/mikebionic/IoT-Switch","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikebionic%2FIoT-Switch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikebionic%2FIoT-Switch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikebionic%2FIoT-Switch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikebionic%2FIoT-Switch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mikebionic","download_url":"https://codeload.github.com/mikebionic/IoT-Switch/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikebionic%2FIoT-Switch/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260590001,"owners_count":23032981,"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","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":["arduino","esp-01","esp8266","flask","iot","nodemcu","opencv","plc","python","smartcity","smarthome","sqlalchemy","web-api"],"created_at":"2024-10-11T16:55:48.139Z","updated_at":"2025-06-18T16:35:32.207Z","avatar_url":"https://github.com/mikebionic.png","language":"CSS","readme":"# Smart Home Esp controllers registration and control project\n\nUsed components:\n\n+ ESP8266 ESP-01 Microcontrollers\n+ Microcomputer running ARM linux\n+ Wifi router\n+ Relay\n+ 3.3v to 5v converter\n+ Power adapter and stabilizator for esp microcontroller\n+ Patience\n\n## Device and Systems of the project:\n\n+ [x] Lights and light bulbs control\n+ [x] Heater control\n+ [x] Cooler control\n+ [x] Stove control (SIEMENS stove Reverse Engineered :p )\n+ [x] Curtain control\n+ [x] TV remote control\n+ [x] Smart sockets\n+ [ ] Window control\n+ [x] Water pump control (Water sensor used)\n+ [x] Current measurement\n+ [x] Water flow measurement\n+ [x] CCTV security\n+ [x] Fingerprint sensor access control (door builtin)\n+ [x] Fingerprint sensor access control (wireless)\n+ [x] RFID NFC card access control (Door builtin)\n+ [x] SIM900 SMS message control option\n+ [x] PIR security sensor devices\n+ [x] Face recognition service\n\n--------------\n\n## Documentations:\n\n[Server Side (enUS)](/documentation/server-side_enUS.md)\n\n[Server Side (ruRU)](/documentation/server-side_ruRU.md)\n\n[Server Side (tkTM)](/documentation/server-side_tkTM.md)\n\n[Smart Home (enUS)](/documentation/smart-home_enUS.md)\n\n[Smart Home (ruRU)](/documentation/smart-home_ruRU.md)\n\n[Smart Home (tkTM)](/documentation/smart-home_tkTM.md)\n\n\n---------------\n\nESP-01 devices have two active pins - Led output (GPIO 2) and Switch (GPIO 0)\n\nConnect those pins in a correctly by schematics and record ESP's ip-address.\nAdd ip address to a database of python server app.\nSend JSON command to a linux server and let him execute the rest thing.\n\n---------------\n\n# Compile and run the ESP8266 microprocessor code\n\n\u003e check ip addresses to be used\n\u003e check devices and device commands\n\n**Esp8266-01** pinout\n![ESP8266-01](datasheet/esp8266-01.png)\n\n\n**NodeMCU-Esp8266** pinout\n![NodeMCU](datasheet/NodeMCUesp8266.png)\n\n\n**A4988 Stepper driver** pinout\n![A4988](datasheet/A4988.jpg)\n\n\n**Adafruit Fingerprint Sensor** pinout\n![Adafruit fingerprint sensor](datasheet/fingerprint-sensor-pinout.jpg)\n\n----------------\n\n**API Testing commands**\n\n\u003e teting /control/\u003cstate\u003e\n\n```bash\ncurl --header \"Content-Type: application/json\" \\\n\t--request POST \\\n\t--data '{\"command\":\"test_local\",\"state\":1,\"action\":\"\"}' \\\n\thttp://127.0.0.1:5000/esp/\n```\n\n\u003e testing /control/?args\n\n```bash\ncurl --header \"Content-Type: application/json\" \\\n\t--request POST \\\n\t--data '{\"command\":\"test_local_json\",\"pins\":[{\"command\":\"switch_mirror\",\"action\":\"1\"},{\"command\":\"switch_AI\",\"action\":\"activate\"}]}' \\\n\thttp://127.0.0.1:5000/esp/JsonToArg/\n```\n\n\n\u003e Browser Get request to raspberry for test:\n```url\nhttp://192.168.1.252/esp/ArgToDB/?device_key=\u003cdevice_key\u003e\u0026command=\u003csensor_command\u003e\u0026value=\u003cvalue of water, example 112\u003e\n```\n\n\n-----\n\nPIR sensor workflow\n\n\u003e The command that sensor sends from controllino to raspberrypi\n\nhttp://192.168.1.252:5000/esp/ArgToDB/?command=pir_sensor\u0026device_key=ESP_ARDU_MASTER\u0026isMaster=1\u0026action=0\n\naction should change here\n\n\u003e The command that triggers the mode of pir work\n\ncurl --header \"Content-Type: application/on\" --request POST --data '{\"command\":\"pir_led_selector_command\",\"state\":0,\"action\":\"\"}' http://192.168.1.252:5000/esp/JsonToArg/\n\nIf you change state to 1, Then pir will work","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmikebionic%2Fiot-switch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmikebionic%2Fiot-switch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmikebionic%2Fiot-switch/lists"}