{"id":17654277,"url":"https://github.com/pgaskin/lua-sagemcom-openwrt","last_synced_at":"2025-09-06T15:38:01.124Z","repository":{"id":237985422,"uuid":"795638582","full_name":"pgaskin/lua-sagemcom-openwrt","owner":"pgaskin","description":"OpenWRT Lua library for controlling Sagemcom routers.","archived":false,"fork":false,"pushed_at":"2024-05-03T18:53:44.000Z","size":48,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-30T09:22:52.438Z","etag":null,"topics":["bell","home-hub","lua","lua51","openwrt","sagemcom"],"latest_commit_sha":null,"homepage":"","language":"Lua","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/pgaskin.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}},"created_at":"2024-05-03T17:51:31.000Z","updated_at":"2024-05-03T19:19:13.000Z","dependencies_parsed_at":"2024-05-03T19:40:45.223Z","dependency_job_id":"30335191-3cff-44b2-b409-5c6bc83dfbff","html_url":"https://github.com/pgaskin/lua-sagemcom-openwrt","commit_stats":null,"previous_names":["pgaskin/lua-sagemcom-openwrt"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/pgaskin/lua-sagemcom-openwrt","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pgaskin%2Flua-sagemcom-openwrt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pgaskin%2Flua-sagemcom-openwrt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pgaskin%2Flua-sagemcom-openwrt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pgaskin%2Flua-sagemcom-openwrt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pgaskin","download_url":"https://codeload.github.com/pgaskin/lua-sagemcom-openwrt/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pgaskin%2Flua-sagemcom-openwrt/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269366853,"owners_count":24405250,"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","status":"online","status_checked_at":"2025-08-08T02:00:09.200Z","response_time":72,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["bell","home-hub","lua","lua51","openwrt","sagemcom"],"created_at":"2024-10-23T12:09:18.742Z","updated_at":"2025-08-08T05:12:47.381Z","avatar_url":"https://github.com/pgaskin.png","language":"Lua","readme":"# lua-sagemcom-openwrt\n\nOpenWRT Lua library for controlling Sagemcom routers.\n\nTested against the Bell Giga Hub 4000 (F@ST 5689E) firmware 1.19.6 (gui 7.3.28, guiapi 1.106).\n\nHas basic error handling, but expects responses to be well-formed in general.\n\n#### How to automatically disable radios on wan connection\n\n- Copy [`sagemcom.lua`](./sagemcom.lua) and [`sha2.lua`](./sha2.lua) to `/usr/lib/lua`.\n- Copy [`set_sagemcom_radios.lua`](./set_sagemcom_radios.lua) to `/usr/bin/set_sagemcom_radios`.\n- `opkg update \u0026\u0026 opkg install luci-lib-base luci-lib-httpclient and luci-lib-json`.\n- Create `/etc/hotplug.d/iface/90-sagemcom-radios` (replace wan/admin/password with your values):\n  ```shell\n  #!/bin/sh\n  [ \"$ACTION\" = \"ifup\" -a \"$INTERFACE\" = \"wan\" ] \u0026\u0026 {\n    { set_sagemcom_radios 192.168.2.1 admin password off 2\u003e\u00261 || echo exit status $? ; } | while read x\n    do\n      echo \"(set_sagemcom_radios) $x\" \u003e /dev/kmsg\n      echo \"$x\" | logger -t set_sagemcom_radios\n    done\n  }\n  exit 0\n  ```\n- `chmod +x /usr/bin/set_sagemcom_radios /etc/hotplug.d/iface/90-sagemcom-radios`\n- `printf '%s\\n' '' /usr/lib/lua/sagemcom.lua /usr/lib/lua/sha2.lua /usr/bin/set_sagemcom_radios /etc/hotplug.d/iface/90-sagemcom-radios \u003e\u003e /etc/sysupgrade.conf`\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpgaskin%2Flua-sagemcom-openwrt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpgaskin%2Flua-sagemcom-openwrt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpgaskin%2Flua-sagemcom-openwrt/lists"}