{"id":25891647,"url":"https://github.com/lnbits/hardware-installer","last_synced_at":"2026-03-04T20:31:41.904Z","repository":{"id":204450748,"uuid":"711886141","full_name":"lnbits/hardware-installer","owner":"lnbits","description":"LNbits Hardware Installer","archived":false,"fork":false,"pushed_at":"2025-11-20T08:50:00.000Z","size":179,"stargazers_count":1,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-11-30T11:26:18.182Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://hwi.lnbits.com/","language":"JavaScript","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/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,"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":"2023-10-30T11:24:14.000Z","updated_at":"2025-11-20T08:50:05.000Z","dependencies_parsed_at":null,"dependency_job_id":"316d32dd-00c8-48bf-a78c-d757daa7327b","html_url":"https://github.com/lnbits/hardware-installer","commit_stats":null,"previous_names":["lnbits/hardware-installer"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/lnbits/hardware-installer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lnbits%2Fhardware-installer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lnbits%2Fhardware-installer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lnbits%2Fhardware-installer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lnbits%2Fhardware-installer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lnbits","download_url":"https://codeload.github.com/lnbits/hardware-installer/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lnbits%2Fhardware-installer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30091771,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-04T19:41:02.502Z","status":"ssl_error","status_checked_at":"2026-03-04T19:40:05.550Z","response_time":59,"last_error":"SSL_read: 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":[],"created_at":"2025-03-02T20:29:00.829Z","updated_at":"2026-03-04T20:31:41.838Z","avatar_url":"https://github.com/lnbits.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Generic Installer\n\n## this serves as an example for the `hardware-installer`\n\n## install\n\n```console\nnpm install\n```\n\n### run locally\n\n```console\nnpm run serve\n```\n\n### build production\n\n```console\nnpm run build\n```\n\n## Configuration\n\n### versions.json\n\nconfigure firmware, devices and verisons\n`src/versions.json`\n\n```json\n{\n  \"devices\": [\"esp32\"],\n  \"versions\": [\"v0.1.0\"]\n}\n```\n\nadd firmware accordingly into `src/firmware/esp32/v0.0.0`\n\n### config.js\n\n`src/config.js`\n\n#### firmware files\n\n```js\nexport const addressesAndFiles = [\n  {\n    address: \"0x1000\",\n    fileName: \"genericInstaller.ino.bootloader.bin\",\n  },\n  {\n    address: \"0x9000\",\n    fileName: \"genericInstaller.ino.partitions.bin\",\n  },\n  {\n    address: \"0xE000\",\n    fileName: \"boot_app0.bin\",\n  },\n  {\n    address: \"0x10000\",\n    fileName: \"genericInstaller.ino.bin\",\n  },\n];\n```\n\n#### firmware config (elements.json)\n\nyou can define form fields, whichcan be uploaded to the device in serial config mode.\n\n```js\nexport const elements = [\n  {\n    name: \"password\",\n    value: \"ToTheMoon1\",\n    label: \"Password for PoS AP WiFi\",\n    type: \"text\",\n  },\n];\n```\n\n## Development\n\n### Helper scripts\n\ninstall dependencies and libraries\n\n```console\n./install.sh\n```\n\ncompile for device\n\n```console\n./build.sh esp32\n```\n\ndebug (serial port, device type)\n\n```console\n./debug.sh /dev/ttyACM0 esp32\n```\n\n### arduino-cli\n\ncompiling\n\n```console\narduino-cli compile --build-path build --fqbn esp32:esp32:esp32 bitcoinSwitch\n```\n\nmonitoring\n\n```console\narduino-cli monitor -p /dev/ttyUSB1 -c baudrate=115200\n```\n\nuploading\n\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%2Fhardware-installer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flnbits%2Fhardware-installer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flnbits%2Fhardware-installer/lists"}