{"id":21528250,"url":"https://github.com/hrassi/webserver_stationmode_ctrl_led_esp32","last_synced_at":"2025-07-31T22:39:08.365Z","repository":{"id":264155782,"uuid":"892536336","full_name":"hrassi/WebServer_StationMode_Ctrl_Led_esp32","owner":"hrassi","description":"Web Server esp32 station mode control led web socket protocol siri control esp32","archived":false,"fork":false,"pushed_at":"2024-11-22T09:59:01.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-24T06:09:37.644Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","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/hrassi.png","metadata":{"files":{"readme":"README.txt","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-22T09:51:57.000Z","updated_at":"2024-11-22T09:59:04.000Z","dependencies_parsed_at":"2024-11-22T10:43:33.086Z","dependency_job_id":null,"html_url":"https://github.com/hrassi/WebServer_StationMode_Ctrl_Led_esp32","commit_stats":null,"previous_names":["hrassi/webserver_stationmode_ctrl_led_esp32"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hrassi%2FWebServer_StationMode_Ctrl_Led_esp32","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hrassi%2FWebServer_StationMode_Ctrl_Led_esp32/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hrassi%2FWebServer_StationMode_Ctrl_Led_esp32/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hrassi%2FWebServer_StationMode_Ctrl_Led_esp32/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hrassi","download_url":"https://codeload.github.com/hrassi/WebServer_StationMode_Ctrl_Led_esp32/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244091764,"owners_count":20396667,"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":[],"created_at":"2024-11-24T01:52:22.466Z","updated_at":"2025-03-17T18:44:48.083Z","avatar_url":"https://github.com/hrassi.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"this script will first connect dynamically to the network as station mode and save\nthe network settings given by the router to the esp then disconect and reconect with\na predefine static  ip address 192.168.18.200 and keeping other router settings the same.\nlike this we are sure to have always the same ip address for the esp32 : 192.168.18.200\n\nnow if we open browser to 192.168.18.200 it will open the server page of the esp\nwe can control with the server page the different status of the led : \n    onboard led off :      http://192.168.18.200/control?LED=0\n    onboard led on  :      http://192.168.18.200/control?LED=1\n    onbrd ld BlinkSlow :   http://192.168.18.200/control?LED=2\n    onbrd ld BlinkFast :   http://192.168.18.200/control?LED=3\n    \nthe opensoket protocol (websocket) give us a real time control of the led\n\nwe used the timer build in library of esp32 (import machine) to blink the led\nwithout interupting our script(it works like thread and interupt mode)\n\nto activate the led with siri : go to shortcut then\nTap the + icon to create a new shortcut.\nAdd the \"Get Contents of URL\" action:\nTap Add Action.\nSearch for and select \"Get Contents of URL\".\nIn the URL field, enter the URL to turn the LED on, e.g., http://192.168.18.200/control?LED=1\nName the shortcut:\nTap the shortcut name at the top and name it \"Turn LED On.\"\nSave the shortcut.\n\ndo the same and create shortcut for led off\n\nyou can now call siri to turn the led on and off and blink fast and blink slow\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhrassi%2Fwebserver_stationmode_ctrl_led_esp32","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhrassi%2Fwebserver_stationmode_ctrl_led_esp32","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhrassi%2Fwebserver_stationmode_ctrl_led_esp32/lists"}