{"id":20170157,"url":"https://github.com/marcodpt/serialscale","last_synced_at":"2026-01-07T06:40:30.758Z","repository":{"id":200559012,"uuid":"705709607","full_name":"marcodpt/serialscale","owner":"marcodpt","description":"An IOT server written in rust for reading weighing data on scales via serial port.","archived":false,"fork":false,"pushed_at":"2024-05-29T18:55:43.000Z","size":36,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-02T23:35:16.821Z","etag":null,"topics":["iot","iot-device","localserver","rust","scale","scales","serialport","serialscale","server","toledo","usb","usb-device","usb-serial","weight"],"latest_commit_sha":null,"homepage":"https://crates.io/crates/serialscale","language":"Rust","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/marcodpt.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":"2023-10-16T14:42:00.000Z","updated_at":"2024-05-29T18:55:46.000Z","dependencies_parsed_at":null,"dependency_job_id":"1b07c104-2838-4866-83c8-4a8b3200d5c3","html_url":"https://github.com/marcodpt/serialscale","commit_stats":null,"previous_names":["marcodpt/toledo"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcodpt%2Fserialscale","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcodpt%2Fserialscale/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcodpt%2Fserialscale/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcodpt%2Fserialscale/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/marcodpt","download_url":"https://codeload.github.com/marcodpt/serialscale/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246009029,"owners_count":20708880,"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":["iot","iot-device","localserver","rust","scale","scales","serialport","serialscale","server","toledo","usb","usb-device","usb-serial","weight"],"created_at":"2024-11-14T01:17:29.529Z","updated_at":"2026-01-07T06:40:30.714Z","avatar_url":"https://github.com/marcodpt.png","language":"Rust","readme":"# Serial Scale\nAn IOT server written in rust for reading weighing data on scales via serial\nport.\n\n## Features\n - very fast single binary with no dependencies\n - extensively tested with [hurl](https://github.com/Orange-OpenSource/hurl)\n - currently only supports\n[Toledo](https://en.wikipedia.org/wiki/Mettler_Toledo) scales\n(pull requests welcome).\n\n## Install\n```\ncargo install serialscale\n```\n\n## Usage\nConnects to a scale via USB serial port.\n\n```\nsudo serialscale /dev/ttyUSB0\n```\n\nYou must identify in your operating system, according to the scale's connection\ntype, which is the correct path.\n\nFor more options use:\n\n```\nserialscale --help\n```\n\n## Development\n```\nsudo apt install libudev-dev pkg-config\ncargo build --release\n```\n\n## Releases\nCurrently, only binaries for generic versions of Linux are distributed across\nreleases.\n```\nsudo apt install pkg-config libssl-dev musl-tools\nrustup target add x86_64-unknown-linux-musl\ncargo build --release --target x86_64-unknown-linux-musl\n```\n\n## Tests\n```\n./target/release/serialscale -b 0 tests/test.dat\nhurl --test tests/en/basic.hurl\n\n./target/release/serialscale -b 0 tests/test.dat --unit Kg\nhurl --test tests/en/basic.hurl\n\n./target/release/serialscale -b 0 tests/test.dat -u Lb --port 8003\nhurl --test tests/en/unit_lb.hurl\n\n./target/release/serialscale -b 0 tests/test.dat --min-weight 3.67 -u Kg -p 8004\nhurl --test tests/en/min_weight.hurl\n\n./target/release/serialscale -b 0 tests/test.dat --max-weight 0 --port 8005\nhurl --test tests/en/max_weight.hurl\n\n./target/release/serialscale -b 0 tests/test.dat --min-tare 6  -p 8006\nhurl --test tests/en/min_tare.hurl\n\n./target/release/serialscale -b 0 tests/test.dat --max-tare 5 -u Kg -p 8007\nhurl --test tests/en/max_tare.hurl\n\n./target/release/serialscale -b 0 tests/test.dat -l pt -u Kg\nhurl --test tests/pt/basic.hurl\n\n./target/release/serialscale -b 0 tests/test.dat -u Lb -l pt --port 8003\nhurl --test tests/pt/unit_lb.hurl\n\n./target/release/serialscale -b 0 tests/test.dat --min-weight 3.67 -u Kg -l pt -p 8004\nhurl --test tests/pt/min_weight.hurl\n\n./target/release/serialscale -b 0 tests/test.dat --max-weight 0 -l pt --port 8005\nhurl --test tests/pt/max_weight.hurl\n\n./target/release/serialscale -b 0 tests/test.dat --min-tare 6 -l pt -p 8006\nhurl --test tests/pt/min_tare.hurl\n\n./target/release/serialscale --baud-rate 0 tests/test.dat --max-tare 5 -u Kg --lang pt -p 8007\nhurl --test tests/pt/max_tare.hurl\n```\n\n## Contributing\nIt's a very simple project. Any contribution is greatly appreciated.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarcodpt%2Fserialscale","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarcodpt%2Fserialscale","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarcodpt%2Fserialscale/lists"}