{"id":19549005,"url":"https://github.com/ashwin-pc/esp8266-led","last_synced_at":"2025-10-16T10:40:53.386Z","repository":{"id":124290445,"uuid":"140625094","full_name":"ashwin-pc/ESP8266-LED","owner":"ashwin-pc","description":"ESP 8266 based WIFI LED Lamp control.","archived":false,"fork":false,"pushed_at":"2018-07-11T20:37:23.000Z","size":140,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-26T06:31:56.990Z","etag":null,"topics":["dimmer","esp8266","led-controller","led-lamp","nodemcu","wifi-lamp"],"latest_commit_sha":null,"homepage":null,"language":"C++","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/ashwin-pc.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":"2018-07-11T20:35:13.000Z","updated_at":"2018-09-13T04:04:24.000Z","dependencies_parsed_at":null,"dependency_job_id":"0a76a78a-86e0-46cd-bfbc-40cf823bf843","html_url":"https://github.com/ashwin-pc/ESP8266-LED","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ashwin-pc/ESP8266-LED","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ashwin-pc%2FESP8266-LED","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ashwin-pc%2FESP8266-LED/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ashwin-pc%2FESP8266-LED/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ashwin-pc%2FESP8266-LED/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ashwin-pc","download_url":"https://codeload.github.com/ashwin-pc/ESP8266-LED/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ashwin-pc%2FESP8266-LED/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279179363,"owners_count":26120429,"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-16T02:00:06.019Z","response_time":53,"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":["dimmer","esp8266","led-controller","led-lamp","nodemcu","wifi-lamp"],"created_at":"2024-11-11T03:57:38.834Z","updated_at":"2025-10-16T10:40:53.374Z","avatar_url":"https://github.com/ashwin-pc.png","language":"C++","readme":"# ESP8266 WIFI LED Lamp\n\n\u003e This is a project to build a WiFi controlled LED lamp using an ESP8266 board.\n\nWiFi controlled LED Lamp designed around the ESP8266 Board with Dimming capability. The Webpage and the lights can be controlled in a miriyad of ways with a common API layer linking them. The Webpage is built using standard HTML, CSS and Javascript (including a full JQuery Library) using AJAX calls to the server using SPIFFS.\n\n## Table of Contents\n\n- [Pre-requisites](#pre-requisites)\n- [Build](#build)\n- [Install](#install)\n- [Usage](#usage)\n- [API](#api)\n- [Contribute](#contribute)\n- [License](#license)\n\n## Pre-requisites\n\n- Programming board for the ESP board (Not required for NodeMCU and other USB enabled boards)\n- Driver for serial programmer\n- Arduino IDE with ESP8266 board Utils\n- SPIFFS plugin for IDE (Downloadable on the internet)\n\n## Build\n\nFirst we must build the circuitry for the module. This project used the ESP 01 version of the ESP8266 board. A simpler circuit can be re-adopted for other versions of the board such as the NodeMCU's.\n\n![circuit for ESP 01](./images/circuit.png)\n\nEnsure that the ESP module is removeable as this circuit does not have the provision to be programmed\n\n## Install\n\nInstall the IDE, boards and Plugins. Select the appropriate board (`Generic ESP8266 Module` for ESP 01) under the `Tools` menu. Ensure that the `Flash Size` under the `Tools` menu is selected for atleast `512K SPIFFS` as this is where the webpage resides.\n\n## Usage\n\n- Connect the board to the programmer and set it to flash mode (holding the flash pin or GPIO 0 to low while resetting the board) (Not required for the NodeMCU board)\n- Compile and Upload the Code\n- Select `Tools \u003e ESP8266 Sketch Data Upload` to upload the data folder\n\n### Important\n\nThe data folder must be a flat folder as the file system of ESP boards does not support folder structures\n\n## API\n\n### Dimming\n\n1. ### GET /dim\n    Parameters  \n    value={dimming_value} (0 to 1023) : Sets the amount of dimming to apply to the light.\n\n    ```sh\n    GET /dim?value=200\n    ```\n\n2. ### GET /dimUp\n    Increase the dimValue by stepSize (Default 100) and readjust the light.\n\n3. ### GET /dimDown\n    Decrease the dimValue by stepSize (Default 100) and readjust the light.\n\n### Sleep Timer\n\nThe Sleep timer currently gets deactivated anytime the Dimming or Power On state of the light is changed\n\n1. ### GET /time\n    Parameters  \n    sec={#} : Set the number of seconds to countdown before lamp switches off  \n    min={#} : Set the number of minutes to countdown before lamp switches off  \n    hour={#} : Set the number of Hours to countdown before lamp switches off\n\n    The sum of all three parameters in seconds is used to set the sleep timer. All three parameters are optional\n\n    ```sh\n    GET /time?sec=10\u0026min=2\u0026hour=0\n    ```\n\n### Lamp\n\n1. ### GET /toggle\n    Switches the lamp between Power ON and OFF state.\n\n## Contribute\n\nPRs accepted.\n\n## License\n\n[MIT © Ashwin P Chandran.](./LICENSE)","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fashwin-pc%2Fesp8266-led","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fashwin-pc%2Fesp8266-led","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fashwin-pc%2Fesp8266-led/lists"}