{"id":27353502,"url":"https://github.com/jefferyto/openwrt-slide-switch","last_synced_at":"2025-04-12T21:03:07.238Z","repository":{"id":44910301,"uuid":"67340231","full_name":"jefferyto/openwrt-slide-switch","owner":"jefferyto","description":"Translate slide switch position changes into normal button presses","archived":false,"fork":false,"pushed_at":"2025-01-16T20:33:38.000Z","size":267,"stargazers_count":39,"open_issues_count":1,"forks_count":15,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-04-12T21:02:24.012Z","etag":null,"topics":["lede","openwrt","openwrt-package"],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jefferyto.png","metadata":{"files":{"readme":"README.md","changelog":"NEWS.md","contributing":null,"funding":null,"license":"COPYING","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":"AUTHORS","dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-09-04T11:09:09.000Z","updated_at":"2025-02-04T03:41:33.000Z","dependencies_parsed_at":"2025-01-16T21:22:15.546Z","dependency_job_id":"c2761d82-a4a2-4bb7-876b-b543d7df57ac","html_url":"https://github.com/jefferyto/openwrt-slide-switch","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jefferyto%2Fopenwrt-slide-switch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jefferyto%2Fopenwrt-slide-switch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jefferyto%2Fopenwrt-slide-switch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jefferyto%2Fopenwrt-slide-switch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jefferyto","download_url":"https://codeload.github.com/jefferyto/openwrt-slide-switch/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248631687,"owners_count":21136562,"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":["lede","openwrt","openwrt-package"],"created_at":"2025-04-12T21:03:03.592Z","updated_at":"2025-04-12T21:03:07.230Z","avatar_url":"https://github.com/jefferyto.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# slide-switch\n\nslide-switch translates slide switch position changes into normal button\npresses and releases for OpenWrt devices.\n\n## Usage\n\nAfter installing slide-switch, follow the instructions in the [OpenWrt\nUser Guide][] to add scripts for each switch position. Both procd\nscripts (in `/etc/rc.button`) and hotplug scripts (in\n`/etc/hotplug.d/button`) are supported.\n\nEach switch position has a corresponding button name in the form\n`\u003cswitch name\u003e-\u003cswitch position\u003e`. For example, the TP-Link TL-MR3020\nhas a switch named *mode* with positions \"3g\", \"wisp\" and \"ap\"; button\nnames for the positions would be `mode-3g`, `mode-wisp` and `mode-ap`.\nSee [Supported Devices][] for a list of switch names\nand positions.\n\nslide-switch will trigger both button presses and releases. For example,\nif the *mode* switch is moved from \"3g\" to \"wisp\", a release action will\nbe triggered for \"3g\" (`BUTTON=mode-3g ACTION=released`), and a press\naction will be triggered for \"wisp\" (`BUTTON=mode-wisp ACTION=pressed`).\nNote that the timeout action is not supported at this time.\n\nOn boot, slide-switch will also trigger a button press for the active\nposition of each switch. To disable or re-enable this behaviour, run\n`slide-switch boot disable` or `slide-switch boot enable`, respectively.\n\n[OpenWrt User Guide]: https://openwrt.org/docs/guide-user/hardware/hardware.button\n[Supported Devices]: #supported-devices\n\n## Supported Devices\n\n| Device                         | Switch Name  | Switch Positions               | Verified           | Notes |\n| ------------------------------ | :----------: | :----------------------------: | :----------------: | ----- |\n| [Buffalo WZR-600DHP][]         | movie-engine | on / off                       |                    |       |\n| [Buffalo WZR-600DHP][]         | router       | on / off / auto                |                    |       |\n| [Buffalo WZR-HP-AG300H][]      | movie-engine | on / off                       |                    |       |\n| [Buffalo WZR-HP-AG300H][]      | router       | on / off / auto                |                    |       |\n| [Buffalo WZR-HP-G300NH][]      | movie-engine | on / off                       | :heavy_check_mark: |       |\n| [Buffalo WZR-HP-G300NH][]      | router       | on / off / auto                | :heavy_check_mark: |       |\n| [GL.iNet GL-AR150][]           | mode         | left / center / right          |                    |       |\n| [GL.iNet GL-AR300M][]          | mode         | left / center / right          | :heavy_check_mark: |       |\n| [GL.iNet GL-AR300M-Lite][]     | mode         | left / center / right          |                    |       |\n| [GL.iNet GL-AR300M16][]        | mode         | left / center / right          | :heavy_check_mark: |       |\n| [GL.iNet GL-AR750][]           | mode         | dot / clear                    | :heavy_check_mark: |       |\n| [GL.iNet GL-AR750S][]          | mode         | dot / clear                    | :heavy_check_mark: |       |\n| [GL.iNet GL-E750][]            | mode         | dot / clear                    | :heavy_check_mark: |       |\n| [GL.iNet GL-MT1300][]          | mode         | dot / clear                    | :heavy_check_mark: |       |\n| [GL.iNet GL-MT3000][]          | mode         | dot / clear                    | :heavy_check_mark: |       |\n| [GL.iNet GL-MT300A][]          | mode         | left / center / right          | :heavy_check_mark: |       |\n| [GL.iNet GL-MT300N v1][]       | mode         | left / center / right          |                    |       |\n| [GL.iNet GL-MT300N v2][]       | mode         | left / center / right          | :heavy_check_mark: |       |\n| [GL.iNet GL-MV1000][]          | mode         | dot / clear                    |                    |       |\n| [HooToo HT-TM02][]             | mode         | wired / wireless               | :heavy_check_mark: |       |\n| [TP-Link TL-MR3020 v1][]       | mode         | 3g / wisp / ap                 | :heavy_check_mark: |       |\n| [TP-Link TL-MR3020 v3][]       | mode         | 3g / wisp / ap                 | :heavy_check_mark: |       |\n| [TP-Link TL-MR3040 v2][]       | mode         | 3g / wisp / ap                 | :heavy_check_mark: |       |\n| [TP-Link TL-WR810N(EU) v1.1][] | mode         | router-ap / repeater / client  | :heavy_check_mark: |       |\n| [TP-Link TL-WR810N(EU) v2][]   | mode         | router-ap / repeater / client  |                    |       |\n| [TP-Link TL-WR902AC v1][]      | mode         | share-eth / share-hotspot / ap | :heavy_check_mark: |       |\n| [TP-Link TL-WR902AC v3][]      | mode         | share-eth / share-hotspot / ap | :heavy_check_mark: |       |\n\nFor most devices, switch data is initially collected from the OpenWrt\nwiki and from OpenWrt's source code. The Verified column indicates cases\nwhere the switch data has been tested and verified correct by users.\n\n[Buffalo WZR-600DHP]: https://openwrt.org/toh/buffalo/wzr-600dhp\n[Buffalo WZR-HP-AG300H]: https://openwrt.org/toh/buffalo/wzr-hp-ag300h\n[Buffalo WZR-HP-G300NH]: https://openwrt.org/toh/buffalo/wzr-hp-g300h\n[GL.iNet GL-AR150]: https://openwrt.org/toh/gl.inet/gl-ar150\n[GL.iNet GL-AR300M]: https://openwrt.org/toh/gl.inet/gl-ar300m\n[GL.iNet GL-AR300M-Lite]: https://openwrt.org/toh/gl.inet/gl-ar300m_lite\n[GL.iNet GL-AR300M16]: https://openwrt.org/toh/gl.inet/gl-ar300m\n[GL.iNet GL-AR750]: https://openwrt.org/toh/gl.inet/gl-ar750\n[GL.iNet GL-AR750S]: https://openwrt.org/toh/gl.inet/gl-ar750s\n[GL.iNet GL-E750]: https://openwrt.org/toh/gl.inet/gl-e750\n[GL.iNet GL-MT1300]: https://openwrt.org/toh/gl.inet/gl-mt1300_v1\n[GL.iNet GL-MT3000]: https://openwrt.org/toh/gl.inet/gl-mt3000\n[GL.iNet GL-MT300A]: https://openwrt.org/toh/gl.inet/gl-mt300a\n[GL.iNet GL-MT300N v1]: https://openwrt.org/toh/gl.inet/gl-mt300n_v1\n[GL.iNet GL-MT300N v2]: https://openwrt.org/toh/gl.inet/gl-mt300n_v2\n[GL.iNet GL-MV1000]: https://openwrt.org/toh/gl.inet/gl-mv1000\n[HooToo HT-TM02]: https://openwrt.org/toh/hootoo/tripmate-nano\n[TP-Link TL-MR3020 v1]: https://openwrt.org/toh/tp-link/tl-mr3020\n[TP-Link TL-MR3020 v3]: https://openwrt.org/toh/tp-link/tl-mr3020_v3\n[TP-Link TL-MR3040 v2]: https://openwrt.org/toh/tp-link/tl-mr3040\n[TP-Link TL-WR810N(EU) v1.1]: https://openwrt.org/toh/tp-link/tl-wr810n\n[TP-Link TL-WR810N(EU) v2]: https://openwrt.org/toh/tp-link/tl-wr810n\n[TP-Link TL-WR902AC v1]: https://openwrt.org/toh/tp-link/tl-wr902ac_v1\n[TP-Link TL-WR902AC v3]: https://openwrt.org/toh/tp-link/tl-wr902ac_v3\n\n## Changelog\n\nSee [NEWS][].\n\n### Backward-Incompatible Changes\n\n#### 1.0.0\n\n* GL.iNet GL-AR150,  \n  GL.iNet GL-AR300M,  \n  GL.iNet GL-MT300A,  \n  GL.iNet GL-MT300N v1,  \n  GL.iNet GL-MT300N v2:\n  * Changed switch name from *switch* to *mode*\n* GL.iNet GL-AR750,  \n  GL.iNet GL-AR750S:\n  * Changed switch name from *switch* to *mode*\n  * Changed position names from \"left\" and \"right\" to \"clear\" and \"dot\",\n    respectively\n\n[NEWS]: NEWS.md\n\n## Contributing\n\nBeyond code for bug fixes or new features, any help to verify switch\ndata or add data for new devices would be greatly appreciated.\n\n## License\n\nCopyright (C) 2016-2019, 2022 The slide-switch authors  \n\u003chttps://github.com/jefferyto/openwrt-slide-switch\u003e\n\nslide-switch is free software; you can redistribute it and/or\nmodify it under the terms of the GNU General Public License\nversion 2 as published by the Free Software Foundation.\n\nslide-switch is distributed in the hope that it will be useful,\nbut WITHOUT ANY WARRANTY; without even the implied warranty of\nMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\nGNU General Public License for more details.\n\nYou should have received a copy of the GNU General Public License\nalong with slide-switch.  If not, see \u003chttp://www.gnu.org/licenses/\u003e.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjefferyto%2Fopenwrt-slide-switch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjefferyto%2Fopenwrt-slide-switch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjefferyto%2Fopenwrt-slide-switch/lists"}