{"id":25891626,"url":"https://github.com/lnbits/nostr-zap-lamp","last_synced_at":"2025-03-02T20:28:51.816Z","repository":{"id":185894488,"uuid":"673787177","full_name":"lnbits/nostr-zap-lamp","owner":"lnbits","description":"Get a visual Zap! when someone zaps your or anyone on Nostr.","archived":false,"fork":false,"pushed_at":"2024-11-06T07:08:23.000Z","size":14775,"stargazers_count":17,"open_issues_count":3,"forks_count":6,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-11-06T07:36:33.334Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://nostr-zap-lamp.lnbits.com/","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/lnbits.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":"2023-08-02T12:24:42.000Z","updated_at":"2024-10-25T18:11:10.000Z","dependencies_parsed_at":null,"dependency_job_id":"74c52c27-3a63-4886-a6be-22a36f42d85c","html_url":"https://github.com/lnbits/nostr-zap-lamp","commit_stats":null,"previous_names":["lnbits/nostr-zap-lamp"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lnbits%2Fnostr-zap-lamp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lnbits%2Fnostr-zap-lamp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lnbits%2Fnostr-zap-lamp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lnbits%2Fnostr-zap-lamp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lnbits","download_url":"https://codeload.github.com/lnbits/nostr-zap-lamp/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241567294,"owners_count":19983466,"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":"2025-03-02T20:28:51.203Z","updated_at":"2025-03-02T20:28:51.810Z","avatar_url":"https://github.com/lnbits.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Nostr Zap Lamp\n\n![](https://github.com/lnbits/nostr-zap-lamp/raw/main/img/lamp.jpg)\n\nGet a visual \"Zap!\"\" when someone zaps you or anyone on Nostr.\n\nThe Nostr Zap Lamp flashes when a relay broadcasts a Nostr event of kind 9735. You can set the lamp to flash zaps sent to a specific npub, or any npub on nostr.\n\nThe number of flashes corresponds to the number of digits in the number of sats sent. i.e. 3 sats will result in 1 flash, 152 sats will result in 3 flashes, 1001 sats will result in 4 flashes.\n\n[Buy a pre-assembled or complete Zap Lamp kit on the LNbits shop](https://shop.lnbits.com/product/nostr-zap-lamp)\n\n# Features\n\n+ Show a signal when a zap is sent to one or all nostr npubs\n+ Background brightness control\n+ Easily configure to use your own nostr relay\n+ Simple configuration to work with any npub\n\n## Parts\n+ [LED \"Neon\" lamp](https://www.amazon.co.uk/YIVIYAR-Lightning-Battery-Bedroom-Christmas/dp/B08K4SCVKQ)\n+ An ESP32 dev board\n+ USB cable\n+ A momentary switch push button - For example https://www.amazon.com/Momentary-Spring-Return-Self-Return-Pushbutton-Switches/dp/B09DJY5Y5L\n+ Four jumper cables\n+ Block connectors\n+ A case. [This repo includes files for a 3D printed case](enclosure)\n\n## Build Instructions\n\n+ Identify the positive and negative leads of the lamp. Tie a knot in the +ve lead for future identification\n+ Cut the lamp leads to around 10cm long\n+ Attach a female jumper lead to each. Solder or use block connectors to attach the leads.\n+ Attach female jumper leads to the push button\n+ Connect the lamp to the ESP32: GPIO13 on the ESP32 -\u003e lamp's positive wire and GND on the ESP32 -\u003e lamp's negative wire.\n+ Connect the push button button to the ESP32 on GPIO4 and GND\n+ Install the lamp, ESP32, button and lead in the printed enclosure\n+ Power on the device and configure using the WiFi access point portal.\n\n## Firmware Upload Instructions\n\n+ Use the web installer at https://nostr-zap-lamp.lnbits.com/ to flash and configure the device\n+ Alternatively, use the Arduino IDE to flash the firmware.\n    - Install the ESP32 board in the Arduino IDE by adding the following URL to the board manager: https://dl.espressif.com/dl/package_esp32_index.json\n    - Install the following libraries using the Arduino IDE library manager:\n        - uBitcoin\n        - WebSockets\n        - ArduinoJson\n        - base64\n        - WiFiManager\n        - Nostr\n    - Open the nostrZapLamp.ino file in the Arduino IDE\n    - Select the ESP32 Dev Module board and the correct port\n    - Compile and upload the firmware\n    - Use the web installer at https://nostr-zap-lamp.lnbits.com/ to configure the device\n        \n## 5v Relay option\n\nUsing a 5v Relay the lamp will be brighter, or you can swap out the light and connect anything to the relay that you want to turn on.\n\nESP32 GND \u003c==========================\u003e Relay \"DC-\"\n\nESP32 5V \u003c==========================\u003e Relay \"DC+\"\n\nLED POS \u003c===========================\u003e Relay \"DC+\"\n\nESP32 GND \u003c=========================\u003e Relay \"COM\"\n\nLED GND \u003c===========================\u003e Relay \"NO\"\n\nGPIO 13 \u003c===========================\u003e Relay \"S\"\n\n\u003cimg src=\"https://github.com/lnbits/nostr-zap-lamp/assets/33088785/7e265c4e-256c-49fb-a936-c3c6ccfa081b\" style=\"width:300px\"\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flnbits%2Fnostr-zap-lamp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flnbits%2Fnostr-zap-lamp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flnbits%2Fnostr-zap-lamp/lists"}