{"id":15398446,"url":"https://github.com/jubnzv/modbus-restapi","last_synced_at":"2025-04-16T01:20:07.757Z","repository":{"id":94900178,"uuid":"127548889","full_name":"jubnzv/modbus-restapi","owner":"jubnzv","description":"Expose Modbus TCP devices via REST API.","archived":false,"fork":false,"pushed_at":"2018-04-08T12:36:54.000Z","size":3,"stargazers_count":5,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-06T11:05:51.770Z","etag":null,"topics":["flask-restful","modbus-tcp","rest-api"],"latest_commit_sha":null,"homepage":"","language":"Python","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/jubnzv.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":"2018-03-31T16:14:48.000Z","updated_at":"2022-05-20T15:53:24.000Z","dependencies_parsed_at":"2023-04-06T16:47:03.878Z","dependency_job_id":null,"html_url":"https://github.com/jubnzv/modbus-restapi","commit_stats":{"total_commits":2,"total_committers":1,"mean_commits":2.0,"dds":0.0,"last_synced_commit":"fc47373e0d0f909190315eba56089d6f43d37fec"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jubnzv%2Fmodbus-restapi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jubnzv%2Fmodbus-restapi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jubnzv%2Fmodbus-restapi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jubnzv%2Fmodbus-restapi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jubnzv","download_url":"https://codeload.github.com/jubnzv/modbus-restapi/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249179059,"owners_count":21225482,"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":["flask-restful","modbus-tcp","rest-api"],"created_at":"2024-10-01T15:43:53.201Z","updated_at":"2025-04-16T01:20:07.723Z","avatar_url":"https://github.com/jubnzv.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# modbus-restapi\n\nSmall Flask application that exposes Modbus TCP devices with REST API. Using to perform some testing routines.\n\n### Available functions\n\n1. Read Modbus registers: `POST` on (`/modbus-explorer/api/tcp/read'`):\n````\n{\n    ip: [string],\n    port: [integer],\n    slave_id: [integer],\n    type_prefix: [integer],\n    start_address: [integer],\n    count: [integer]\n}\n````\n\n2. Write Modbus registers: `POST` on (`/modbus-explorer/api/tcp/post'`):\n````\n{\n    ip: [string],\n    port: [integer],\n    slave_id: [integer],\n    type_prefix: [integer],\n    start_address: [integer],\n    data: [array of integers]\n}\n````\n\n\n### Usage examples\n\nRead first 10 coils:\n```\ncurl -i -H \"Content-Type: application/json\" -X POST -d '{\"ip\":\"localhost\", \"port\":\"5020\", \"slave_id\": 1, \"type_prefix\": 1, \"start_address\": 1, \"count\": 10}' http://localhost:5000/modbus-explorer/api/tcp/read\n```\n\nWrite some coils:\n```\ncurl -i -H \"Content-Type: application/json\" -X POST -d '{\"ip\":\"localhost\", \"port\":\"5020\", \"slave_id\": 0, \"type_prefix\": 1, \"start_address\": 10, \"data\": [1, 0, 0, 1]}' http://localhost:5000/modbus-explorer/api/tcp/write\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjubnzv%2Fmodbus-restapi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjubnzv%2Fmodbus-restapi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjubnzv%2Fmodbus-restapi/lists"}