{"id":13666807,"url":"https://github.com/lnbits/bitcoinswitch","last_synced_at":"2025-04-26T12:31:42.288Z","repository":{"id":61089714,"uuid":"547589789","full_name":"lnbits/bitcoinswitch","owner":"lnbits","description":"Turn things on with bitcoin!","archived":false,"fork":true,"pushed_at":"2024-08-28T09:26:10.000Z","size":28893,"stargazers_count":76,"open_issues_count":5,"forks_count":23,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-11-11T01:35:17.227Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://bitcoinswitch.lnbits.com/","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"arcbtc/bitcoinSwitch","license":"gpl-3.0","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":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2022-10-08T00:08:15.000Z","updated_at":"2024-10-30T04:13:27.000Z","dependencies_parsed_at":"2023-10-12T22:52:54.090Z","dependency_job_id":null,"html_url":"https://github.com/lnbits/bitcoinswitch","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lnbits%2Fbitcoinswitch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lnbits%2Fbitcoinswitch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lnbits%2Fbitcoinswitch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lnbits%2Fbitcoinswitch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lnbits","download_url":"https://codeload.github.com/lnbits/bitcoinswitch/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250986523,"owners_count":21518531,"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-08-02T06:01:25.525Z","updated_at":"2025-04-26T12:31:41.320Z","avatar_url":"https://github.com/lnbits.png","language":"C++","funding_links":[],"categories":["Uncategorized"],"sub_categories":["Uncategorized"],"readme":"\u003cimg width=\"600\" src=\"https://user-images.githubusercontent.com/33088785/166832680-600ed270-cbc9-4749-82f1-c1853b242329.png\"\u003e\u003cimg width=\"600\" src=\"https://user-images.githubusercontent.com/33088785/166829474-a28ca2b7-dd3e-46d4-89d3-8a10bf1d3fad.png\"\u003e\n\n# Clicky, the Bitcoin Switch\n\n👉 An absolutely incredible \u003ca href=\"https://ereignishorizont.xyz/bitcoinswitch/en/\"\u003ebitcoinSwitch guide\u003c/a\u003e by [Axel](https://github.com/AxelHamburch/) 👈\n\nAlso check out our \u003ca href=\"https://twitter.com/arcbtc/status/1585627498510831616\"\u003evideo tutorial\u003c/a\u003e.\n\n\n✅ $8 worth parts / 15min setup\n\n✅ Websockets for blazingly fast turning on the things\n\n✅ Web-installer/config for easy setup\n\n✅ Support for MULTIPLE GPIOS/LNURLs (!)\n\n\n# Flash and configure via webinstaller https://bitcoinswitch.lnbits.com/\n\n\u003cimg src=\"https://github.com/lnbits/bitcoinswitch/assets/63317640/35936b5d-d337-4dcb-8967-5f33d087b6d7\" alt=\"switch_front\" width=\"200\"\u003e\n\u003cimg src=\"https://github.com/lnbits/bitcoinswitch/assets/63317640/ce702a01-a315-4a0c-a86a-c69fe6a79264\" alt=\"switch_back\" width=\"200\"\u003e\n\n\n### Things you can turn on with a switch\n\nThere is a broad range of things from lamps, to candy-, claw or even arcade machines that can be turned on by a lightning payment with Clicky. \nHave a look at the [LNbits shop](https://shop.lnbits.com/product-category/hardware/fun-things) what we did or check the [LNbits wiki](https://github.com/lnbits/lnbits/wiki/Tooling-\u0026-Building-with-LNbits) on how to build those yourself.\n\n\n### What you need\n- esp32 dev kit\n- High level relais\n- Female to male and male to male cables\n- Data cable\n- Optional: a case\n- Desktop PC\n- LNbits LNURLdevice Extension\n- Something to turn on\n  \n\n   \u003ctable\u003e\n  \u003ctr\u003e\n    \u003cth\u003e\u003cimg src=\"https://user-images.githubusercontent.com/33088785/204107016-bc9473e0-2843-4873-af71-cd934e07f444.gif\" alt=\"Snow\" style=\"width:80%\"\u003e\u003c/th\u003e\n    \u003cth\u003e\u003cimg src=\"https://user-images.githubusercontent.com/33088785/204107029-cc4ad95b-b130-4b48-9091-86d7be7d4f16.gif\" alt=\"Forest\" style=\"width:80%\"\u003e\u003c/th\u003e\n    \u003cth\u003e\u003cimg src=\"https://user-images.githubusercontent.com/33088785/204107037-870571f8-b860-4019-93d4-bbdbeaf1091f.gif\" alt=\"Mountains\" style=\"width:80%\"\u003e\u003c/th\u003e\n    \u003cth\u003e\u003cimg src=\"https://user-images.githubusercontent.com/33088785/204107044-b8a7d94f-6908-40dd-bb82-974e08f077f4.gif\" alt=\"Mountains\" style=\"width:80%\"\u003e\u003c/th\u003e\n  \u003c/tr\u003e\n\u003c/table\u003e\n\nOnce flashed, press GPIO4 in few seconds of ESP32 booting up to be able to config.\n\n\nGot questions ? Join us \u003ca href=\"https://t.me/lnbits\"\u003et.me/lnbits\u003c/a\u003e, \u003ca href=\"https://t.me/makerbits\"\u003et.me/makerbits\u003c/a\u003e\n\n\n## Complicated install instructions not using browser flashing\n\n- Install \u003ca href=\"https://www.arduino.cc/en/software\"\u003eArduino IDE 1.8.19\u003c/a\u003e\n- Install ESP32 boards, using \u003ca href=\"https://docs.espressif.com/projects/arduino-esp32/en/latest/installing.html#installing-using-boards-manager\"\u003eboards manager\u003c/a\u003e\n![image](https://user-images.githubusercontent.com/33088785/161862832-1269a12e-16ce-427c-9a92-df3ee573a1fb.png)\n\n- Download this repo\n- Copy these \u003ca href=\"libraries\"\u003elibraries\u003c/a\u003e into your Arduino install \"libraries\" folder\n- Open this \u003ca href=\"bitcoinSwitch.ino\"\u003ebitcoinSwitch.ino\u003c/a\u003e file in the Arduino IDE\n- Select the correct ESP32 board from tools\u003eboard\n- Upload to device\n\n![trigger](https://user-images.githubusercontent.com/33088785/166829947-d0194b32-19fc-4a16-83d3-dc6f9af9337c.gif)\n\n\n### Development\nbuild with arduino-cli\n```console\nsh build.sh\n```\nbuild webinstaller, fetch main assets from lnbits.github.io\n```console\nsh build-installer.sh\n```\nstart preview\n```console\ncd installer\nhttp-server -p 8080\n```\n\n### arduino-cli\ncompiling\n```console\narduino-cli compile --build-path build --fqbn esp32:esp32:esp32 bitcoinSwitch\n```\nmonitoring\n```console\narduino-cli monitor -p /dev/ttyUSB1 -c baudrate=115200\n```\nuploading\n```console\narduino-cli upload --fqbn esp32:esp32:esp32 --input-dir build -p /dev/ttyUSB1\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flnbits%2Fbitcoinswitch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flnbits%2Fbitcoinswitch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flnbits%2Fbitcoinswitch/lists"}