{"id":19015116,"url":"https://github.com/adfinis/muuvctl","last_synced_at":"2025-10-08T03:54:38.645Z","repository":{"id":68508372,"uuid":"204933506","full_name":"adfinis/muuvctl","owner":"adfinis","description":"Control muuv tables with a command line tool","archived":false,"fork":false,"pushed_at":"2024-03-20T16:35:03.000Z","size":2402,"stargazers_count":19,"open_issues_count":5,"forks_count":4,"subscribers_count":17,"default_branch":"master","last_synced_at":"2025-04-23T01:45:37.686Z","etag":null,"topics":["furniture","iot","muuv"],"latest_commit_sha":null,"homepage":"","language":"Python","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/adfinis.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":"2019-08-28T13:04:15.000Z","updated_at":"2024-12-06T03:19:34.000Z","dependencies_parsed_at":"2024-11-08T19:49:42.575Z","dependency_job_id":null,"html_url":"https://github.com/adfinis/muuvctl","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/adfinis/muuvctl","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adfinis%2Fmuuvctl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adfinis%2Fmuuvctl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adfinis%2Fmuuvctl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adfinis%2Fmuuvctl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/adfinis","download_url":"https://codeload.github.com/adfinis/muuvctl/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adfinis%2Fmuuvctl/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278886413,"owners_count":26062975,"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-10-08T02:00:06.501Z","response_time":56,"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":["furniture","iot","muuv"],"created_at":"2024-11-08T19:35:38.463Z","updated_at":"2025-10-08T03:54:38.599Z","avatar_url":"https://github.com/adfinis.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# muuvctl\n\nControl muuv tables with a command line tool\n\n## Wiring\n\n### Basics\n\n* Open the frontend controller\n* Solder a 3-Pin cable to `RX`,`TX` and `GND`\n* Connect `RX`,`TX` and `GND` to a USB-\u003e UART controller\n\n![](./doc/board.png)\n\n### Using controller while USB plugged in\n\nThe basic wiring has the disadvantage that only the UART-Controller can control the table and the muuv-device is disfunctional. It can be fixed with a relay connected to `RTS` line of the UART which breaks the `RX` line. It is important that the relay is high trigger.\n\n![](./doc/relay-circuit.png)\n\n## Installing\n\n### System wide:\n```\npip install .\n```\n\n### For current user:\n```\npip install --user .\n```\nIn order to run `muuvctl` from commandline, make sure that `/home/$USER/.local/bin` is in your `$PATH`\n\n### Bash completion\n\nAdd the following to your  `.bashrc`:\n```\ncomplete -W \"--debug --port get goto --follow\" muuvctl\n```\n\n## Usage\n\nMove the table to position 80:\n```\nmuuvctl goto 80\n```\n\nGet current position of the table:\n```\nmuuvctl get\n```\n\nGet live position of the table:\n```\nmuuvctl get --follow\n```\n\n\n\n## Serial protocol\n\nThe protocol seems to be called TiMOTION F-Bus.\nBaudrate is: `9600`\nThe following is known (possibly not everything that the controller can do):\n\n### RX\nThe controller in the table sends the following:\n```c\nuint8_t StartByte =  0x98;\nuint8_t StartByte =  0x98;\nuint8_t Param;\nuint8_t Param;\nuint8_t Data;\nuint8_t Data;\n```\n`Param` is the following:\n```c\nSTOPPED      =  0x00;\nSAVE_TRIGGED =  0x01;\nMOVING       =  0x03;\n```\n`Data` is normally the position of the table.\n\n### TX\n\nYou need to send the following struct to control it\n```c\nuint8_t StartByte = 0xD8;\nuint8_t StartByte = 0xD8;\nuint8_t Param;\nuint8_t Command;\nuint8_t Command;\n```\nOnly known value for `Param` is `0x66` which is used in all commands.\n\n\n`Command` is the following:\n```c\nSTOP  = 0x00;\nDOWN  = 0x01;\nUP    = 0x02;\nRESET = 0x03;\nPOS1  = 0x04;\nPOS2  = 0x08;\nPOS3  = 0x10;\nPOS4  = 0x20;\nSAVE  = 0x40;\n```\n\n#### TX Examples\n\n* Move up: `0xD8, 0xD8, 0x66, 0x02, 0x02`\n* Move down: `0xD8, 0xD8, 0x66, 0x01, 0x01`\n* Stop: `0xD8, 0xD8, 0x66, 0x00, 0x00`\n* Goto POS1: `0xD8, 0xD8, 0x66, 0x04, 0x04`\n* Goto POS4: `0xD8, 0xD8, 0x66, 0x20, 0x20`\n* Reset: `0xD8, 0xD8, 0x66, 0x03, 0x03`   \n\n##### Save\n* Send min. 32x SAFE: `0xD8, 0xD8, 0x66, 0x40, 0x40`\n* Optional: wait until table sends: `0x98, 0x98, 0x01, 0x01, POS, POS `\n* Send 4x wanted POS, for POS1: `0xD8, 0xD8, 0x66, 0x04, 0x04`\n* Send 1x STOP: `0xD8, 0xD8, 0x66, 0x00, 0x00`\n\n\n#### Notes\n\nThere seems to be no way to move the table to a specific position. You need to send up or down until the table reaches the desired position, then send stop.\n\n\n\n\n## Contributing\n\nPlease let us know what you would like to contribute before you get invested! This is really just a proof of concept at this stage.\n\n### pre-commit hook\n\n```bash\npip install pre-commit\npip install -r requirements-dev.txt -U\npre-commit install\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadfinis%2Fmuuvctl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadfinis%2Fmuuvctl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadfinis%2Fmuuvctl/lists"}