{"id":23406236,"url":"https://github.com/zozs/tuya-web","last_synced_at":"2025-04-08T23:38:20.365Z","repository":{"id":223515307,"uuid":"760607377","full_name":"zozs/tuya-web","owner":"zozs","description":null,"archived":false,"fork":false,"pushed_at":"2024-03-28T10:23:24.000Z","size":26,"stargazers_count":0,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-14T18:24:44.021Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zozs.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}},"created_at":"2024-02-20T16:08:31.000Z","updated_at":"2024-02-20T16:08:42.000Z","dependencies_parsed_at":"2024-02-20T17:30:43.662Z","dependency_job_id":"33f9db8f-3a69-424c-b1db-1ab6d5df7b73","html_url":"https://github.com/zozs/tuya-web","commit_stats":null,"previous_names":["zozs/tuya-web"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zozs%2Ftuya-web","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zozs%2Ftuya-web/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zozs%2Ftuya-web/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zozs%2Ftuya-web/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zozs","download_url":"https://codeload.github.com/zozs/tuya-web/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247947823,"owners_count":21023058,"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-12-22T13:32:53.922Z","updated_at":"2025-04-08T23:38:20.348Z","avatar_url":"https://github.com/zozs.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# tuya-web\n\ntuya-web is a web service to toggle Tuya smart outlets on or off through a REST API.\n\nIt uses https://github.com/fruitiex/rust-async-tuyapi under the hood.\n\n## Compile\n\nRun `cargo build`\n\n## Running\n\nRun `cargo run -- --help` for a list of options.\n\nAn example for two different devices would be:\n\n```sh\ncargo run -- \\\n    -d aaaaaa01234 -k 'SomeSecret' -d 10.0.5.50 \\\n    -d bbbbbb56789 -k 'SecondCode' -d 10.0.5.51\n```\n\nYou can then turn on the first output by sending: `curl -X PUT \"http://localhost:3000/outlet/0/true\"`.\n\nWhile turning off the second output with: `curl -X PUT \"http://localhost:3000/outlet/1/false\"`\n\nToggling an outlet is done with: `curl -X POST \"http://localhost:3000/outlet/0\"`\n\n## License\n\ntuya-web is licensed under GNU AGPL v3 or later, see the `LICENSE` file for the full license.\n\n```\ntuya-web - a web service for tuya outlets\nCopyright (c) 2024, Linus Karlsson\n\nThis program is free software: you can redistribute it and/or modify\nit under the terms of the GNU Affero General Public License as\npublished by the Free Software Foundation, either version 3 of the\nLicense, or (at your option) any later version.\n\nThis program 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 Affero General Public License for more details.\n\nYou should have received a copy of the GNU Affero General Public License\nalong with this program.  If not, see \u003chttps://www.gnu.org/licenses/\u003e.\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzozs%2Ftuya-web","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzozs%2Ftuya-web","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzozs%2Ftuya-web/lists"}