{"id":20129483,"url":"https://github.com/dra1ex/esp_led_lamp","last_synced_at":"2026-05-06T14:38:22.738Z","repository":{"id":216663563,"uuid":"741966814","full_name":"DrA1ex/esp_led_lamp","owner":"DrA1ex","description":"A beautiful LED strip/matrix home ambient light","archived":false,"fork":false,"pushed_at":"2025-04-27T18:38:24.000Z","size":922,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-11-30T05:47:02.316Z","etag":null,"topics":["ambient-light","arduino","arduino-lamp","esp8266","led","led-lamp","led-matrix","led-strip","wifi"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DrA1ex.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-01-11T13:38:10.000Z","updated_at":"2025-04-27T18:38:27.000Z","dependencies_parsed_at":"2024-02-21T14:48:40.807Z","dependency_job_id":"ab31a25e-41fd-46c8-9a4a-cb86370403ed","html_url":"https://github.com/DrA1ex/esp_led_lamp","commit_stats":null,"previous_names":["dra1ex/esp_led_lamp"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/DrA1ex/esp_led_lamp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DrA1ex%2Fesp_led_lamp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DrA1ex%2Fesp_led_lamp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DrA1ex%2Fesp_led_lamp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DrA1ex%2Fesp_led_lamp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DrA1ex","download_url":"https://codeload.github.com/DrA1ex/esp_led_lamp/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DrA1ex%2Fesp_led_lamp/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32698757,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-06T08:33:17.875Z","status":"ssl_error","status_checked_at":"2026-05-06T08:33:17.221Z","response_time":117,"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":["ambient-light","arduino","arduino-lamp","esp8266","led","led-lamp","led-matrix","led-strip","wifi"],"created_at":"2024-11-13T20:34:34.649Z","updated_at":"2026-05-06T14:38:22.711Z","avatar_url":"https://github.com/DrA1ex.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ESP LED LAMP\n\nBeautifull ambient lighting for addressable LED strips and matrices.\n\nOther: [[RGB LED](https://github.com/DrA1ex/esp_led)] [[RELAY](https://github.com/DrA1ex/esp_relay)]\n\n\u003ca href=\"https://espressif.github.io/esp-launchpad/?flashConfigURL=https://dra1ex.github.io/esp-launchpad/config.toml\"\u003e\n    \u003cimg alt=\"Try it with ESP Launchpad\" src=\"https://espressif.github.io/esp-launchpad/assets/try_with_launchpad.png\" width=\"180\"\u003e\n\u003c/a\u003e\n\nИнструкция на [русском](/README_RUSSIAN.md).\n\n\n\u003cp align=\"center\"\u003e\n  \u003cimg alt=\"Animation\" height=\"256\" src=\"https://github.com/DrA1ex/esp_led_lamp/assets/1194059/c33b63fe-1197-439c-8b91-698c3b74b915\"\u003e\n\u003c/p\u003e\n\n\n## Application UI\n\n\u003cp align=\"center\"\u003e\n  \u003cimg alt=\"UI Light\" height=\"480\" src=\"https://github.com/DrA1ex/esp_led_lamp/assets/1194059/841e800b-41cc-4933-9e5f-deb624b7f1e0\"\u003e\n  \u003cimg alt=\"UI Dark\" height=\"480\" src=\"https://github.com/DrA1ex/esp_led_lamp/assets/1194059/9d3c6928-69de-4096-9cef-5e063a872605\"\u003e\n\u003c/p\u003e\n\n### Instruction for PWA installation (Web as Application)\nFor Android:\n1. Open Chrome.\n2. Navigate to [http://esp_lamp.local](http://esp_lamp.local).\n3. Tap \"Add to Home screen.\"\n\nFor iOS:\n1. Open Safari.\n2. Navigate to [http://esp_lamp.local](http://esp_lamp.local).\n3. Tap the \"Share\" button.\n4. Select \"Add to Home Screen.\"\n\n## Configuration\n\nConfigure credentials by editing [src/credentials.h](src/credentials.h).\n\n| Parameter          | Description                                     | Default         |\n|--------------------|-------------------------------------------------|-----------------|\n| `WIFI_SSID`        | The SSID of the Wi-Fi network to connect to     | \"ESP_LED\"       |\n| `WIFI_PASSWORD`    | The password for the Wi-Fi network               | \"12345678\"      |\n| `WEBAUTH_USER`     | Username for web authentication                  | \"esp_led\"       |\n| `WEBAUTH_PASSWORD` | Password for web authentication                  | \"password\"      |\n| `MQTT_HOST`        | Hostname or IP address for the MQTT broker      | \"example.com\"   |\n| `MQTT_PORT`        | Port number for the MQTT broker                  | 1234            |\n| `MQTT_USER`        | Username for MQTT authentication                 | \"esp_user\"      |\n| `MQTT_PASSWORD`    | Password for MQTT authentication                 | \"esp_pass\"      |\n\n\nCustomize the application for your specific settings by editing [src/constants.h](src/constants.h).\n\n| Parameter                             | Description                                                       | Default           |\n|---------------------------------------|-------------------------------------------------------------------|-------------------|\n| WIFI_MODE                             | Mode of Wi-Fi operation (e.g., AP mode or Station mode)        | `WIFI_AP_MODE`    |\n| WIFI_MAX_CONNECTION_ATTEMPT_INTERVAL  | Maximum time (ms) to wait for Wi-Fi connection before switching to AP mode. A value of 0 means it never switches. | `0`               |\n| WEB_AUTH                              | Enables web-based authentication features                         | Enabled       |\n| TIME_ZONE                             | Time zone offset from GMT (e.g., GMT +5:00)                       | `5.f`             |\n| MDNS_NAME                             | Multicast DNS name for the device. (e.g. `esp_lamp`.local)                              | `\"esp_lamp\"`      |\n| BUTTON                                | Indicates whether the button feature is enabled or disabled.     | `DISABLED`        |\n| BUTTON_PIN                            | GPIO pin number for the button.                                 | `4u`              |\n| LED_PIN                               | GPIO pin number for the LED output.                             | `5u`              |\n| LED_TYPE                              | Type of LED used (e.g., WS2812B).                              | `WS2812B`         |\n| LED_COLOR_ORDER                       | Order of colors for LED (e.g., RGB, GRB format).                    | `GRB`             |\n| CURRENT_LIMIT                         | Maximum current limit for the device in milliamps.              | `500u`            |\n| WIDTH                                 | Width dimension for the matrix or display in pixels.           | `16u`             |\n| HEIGHT                                | Height dimension for the matrix or display in pixels.          | `16u`             |\n| AUDIO                                 | Enables audio features.                                          | `DISABLED`        |\n| AUDIO_PIN                             | GPIO pin number assigned for audio output.                      | `0u`              |\n| MQTT                                  | Enables MQTT protocol for communication.                        | `0u`              |\n\n## MQTT Topics\n\n\n| Topic In*            | Topic Out*                | Type           | Values                | Comments                              |\n|----------------------|---------------------------|----------------|-----------------------|---------------------------------------|\n| MQTT_TOPIC_POWER     | MQTT_OUT_TOPIC_POWER      | uint8_t        | 0..1                  | Power state: ON (1) / OFF (0)         |\n| MQTT_TOPIC_BRIGHTNESS| MQTT_OUT_TOPIC_BRIGHTNESS | uint8_t        | 0..255                | Brightness level     \t\t\t\t  \t|\n| MQTT_TOPIC_SPEED     | MQTT_OUT_TOPIC_SPEED      | uint8_t        | 0..255                | Color effect's speed parameter        |\n| MQTT_TOPIC_SCALE     | MQTT_OUT_TOPIC_SCALE      | uint8_t        | 0..255                | Color effect's scale parameter        |\n| MQTT_TOPIC_LIGHT     | MQTT_OUT_TOPIC_LIGHT      | uint8_t        | 0..255                | Brightness effect's light parameter        |\n| MQTT_TOPIC_PRESET    | MQTT_OUT_TOPIC_PRESET     | uint8_t        | 0..23          \t\t    | Preset select\t\t\t\t\t      \t|\n| MQTT_TOPIC_PALETTE   | MQTT_OUT_TOPIC_PALETTE    | uint8_t        | 0..78        \t\t\t    | Palette select\t\t\t\t\t\t|\n| MQTT_TOPIC_COLOR     | MQTT_OUT_TOPIC_COLOR      | uint32_t       | RGB (e.g. 0xff00ff )  | Color mode's rgb color                |\n| MQTT_TOPIC_NIGHT_MODE| MQTT_OUT_TOPIC_NIGHT_MODE | uint8_t        | 0..1                  | Night mode state: ON (1) / OFF (0)    |\n\n* Actual topic values decalred in constants.h\n\n## Connection\n\n![image](https://github.com/user-attachments/assets/f4c72985-7994-4b61-8701-eda145155122)\n\n\n## Firmware Installation\n\n### Prerequisites\n\nEnsure the following are installed:\n\n0. Configure app first: [configuration](#configuration)\n1. [PlatformIO](https://platformio.org/?utm_source=platformio\u0026utm_medium=piohome)\n2. [Node.js](https://nodejs.org)\n\n### Uploading Firmware\n\nFor uploading the firmware, execute the following commands:\n\n- For wire USB upload:\n```sh\npio run -e release\n```\n\n- For OTA upload with default address (`esp_lamp.local`):\n```sh\npio run -e ota -t upload\n```\n\n- For OTA upload with a custom address:\n```sh\npio run -e ota -t upload --upload-port esp_lamp_2.local\n```\n\n### Uploading File System\n\nTo upload the file system, follow these steps:\n\n1. Make the upload_fs.sh script executable:\n```sh\nchmod +x ./upload_fs.sh\n```\n\n- For automatically building the WebUI and uploading it using OTA with the default address (MacOS, *nix):\n```sh\nOTA=1 ./upload_fs.sh\n```\n\n- For uploading OTA with a custom address:\n```sh\nOTA=1 ./upload_fs.sh --upload-port esp_lamp_2.local\n```\n\n- For Windows users use manual build:\n\n1. Build WebUI:\n```sh\ncd ./www\nnpm run build\ncd ..\n```\n\n2. Upload the file system using OTA:\n```sh\npio run -t uploadfs -e ota\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdra1ex%2Fesp_led_lamp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdra1ex%2Fesp_led_lamp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdra1ex%2Fesp_led_lamp/lists"}