{"id":19831264,"url":"https://github.com/iodar/shelly-button-test","last_synced_at":"2026-06-09T06:04:16.050Z","repository":{"id":159243519,"uuid":"336374830","full_name":"iodar/shelly-button-test","owner":"iodar","description":"Application to test the configuration and functionality of the Shelly Button1. ","archived":false,"fork":false,"pushed_at":"2021-02-07T01:46:13.000Z","size":49,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-11T10:16:12.806Z","etag":null,"topics":["button1","http-server","iot","shelly","shelly-button1","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/iodar.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":"2021-02-05T19:57:00.000Z","updated_at":"2021-02-07T01:46:15.000Z","dependencies_parsed_at":"2023-07-29T22:48:41.441Z","dependency_job_id":null,"html_url":"https://github.com/iodar/shelly-button-test","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iodar%2Fshelly-button-test","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iodar%2Fshelly-button-test/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iodar%2Fshelly-button-test/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iodar%2Fshelly-button-test/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/iodar","download_url":"https://codeload.github.com/iodar/shelly-button-test/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241191417,"owners_count":19925247,"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":["button1","http-server","iot","shelly","shelly-button1","typescript"],"created_at":"2024-11-12T11:29:44.632Z","updated_at":"2026-06-09T06:04:16.018Z","avatar_url":"https://github.com/iodar.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Shelly Button1 Test\n\nThis project provides an easy to setup simple webserver that can\nbe used to try out the `Shelly Button1`. It supports web handlers\nand resources for each short and long push url action that the\n`Shelly Button1` has.\n\n# Prerequisites\n\n- nodejs \u003e= 12\n- yarn / npm\n\n# Build and Start\n\n- Build with `yarn install` oder `npm install`\n- Start server with `yarn start` or `npm start`\n\n# Features\n\nThe server starts on `http://localhost`. The following urls have handlers\nattached and can therefore be called by the `Shelly Button1`:\n\n- `/button/short/1`\n- `/button/short/2`\n- `/button/short/3`\n- `/button/long/1`\n\nThese urls must be configured as the actions url in the configuration\nof the `Shelly Button1`:\n\n| ACTION URL | URL TO SET TO |\n| ---- | ---- |\n| Short url 1 | `http://\u003cyour host url\u003e/button/short/1` |\n| Short url 2 | `http://\u003cyour host url\u003e/button/short/2` |\n| Short url 3 | `http://\u003cyour host url\u003e/button/short/3` |\n| Long url 1 | `http://\u003cyour host url\u003e/button/long/1` |\n\nWhen an url is called the server will respond with `HTTP/1.1 200 OK` and a small message.\nIt will also log the following information:\n- Url which was called (short, long, which one)\n- Ip address of the caller\n- Battery status of the button (is retrieved in a separate call to the button)\n\nThe log will look like this:\n\n```bash\n2021-02-07T09:13:28.533Z SERVER: 'short url 1' was called from 101.10.23.7\n2021-02-07T09:13:28.533Z SERVER: Shelly status (101.10.23.7) =\u003e Battery 100% and 4.19 Volts\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiodar%2Fshelly-button-test","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fiodar%2Fshelly-button-test","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiodar%2Fshelly-button-test/lists"}