Skip to main content

sartorius

Asynchronous python ethernet interface and command-line tool for Sartorius and Minebea Intec scales.

Compatibility

This driver should work for any ethernet scale that uses the standardized communications protocol of the Scale Manufacturers Association. However, it has only been tested on the following models:

  • Minebea Intec Signum
  • Sartorius Entris
  • Sartorius Miras

Installation

pip install sartorius

Scale Setup

For Minebea scale setup, navigate to SETUP - UNICOM - DATAPROT - ETHER.

  • Make sure SRC.IP is set to a valid LAN address
  • Ensure MODE - SBI-SRV - 6.1.1 is set (manual says this should be default but it is not)
  • All other defaults are good

This driver is intended to be stable to disconnects, so operators should be able to unplug and reposition the device without affecting any long polling.

Command Line

$ sartorius scale-ip.local
{
    "mass": 0.0,
    "units": "kg",
    "stable": true,
    "info": {
        "model": "SIWADCP-1-",
        "serial": "37454321",
        "software": "00-37-09"
    }
}

If using a port other than the default of 49155 e.g. for a MODBUS gateway, use --port or a colon between the IP address and port. sartorius 192.168.1.1 --port 10000 or sartorius 192.168.1.1:12345

You can tare and zero with --zero and remove the info field with --no-info. See sartorius --help for more.

To use in shell scripts, parse the json output with something like jq. For example, sartorius scale-ip.local | jq .mass will return the mass.

Python

If you'd like to link this to more complex behavior, consider using a Python script. This driver exclusively supports asynchronous Python ≥3.7.

import asyncio
import sartorius

async def get():
    async with sartorius.Scale('scale-ip.local') as scale:
        await scale.zero()             # Zero and tare the scale
        print(await scale.get())       # Get mass, units, stability
        print(await scale.get_info())  # Get model, serial, software version

asyncio.run(get())

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sartorius-0.2.2.tar.gz (12.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sartorius-0.2.2-py2.py3-none-any.whl (13.8 kB view details)

Uploaded Python 2Python 3

File details

Details for the file sartorius-0.2.2.tar.gz.

File metadata

  • Download URL: sartorius-0.2.2.tar.gz
  • Upload date:
  • Size: 12.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.12

File hashes

Hashes for sartorius-0.2.2.tar.gz
Algorithm Hash digest
SHA256 c4d77f41a33295bb8ac4bfec02c5e6d4890399940d0564a554cf25b1ba2173ce
MD5 114b4cf025db8d1764a10498bc298fc4
BLAKE2b-256 73d0d402966889ceca7e7bf88bade23563b57ee220276111a65b3613ae5ab736

See more details on using hashes here.

File details

Details for the file sartorius-0.2.2-py2.py3-none-any.whl.

File metadata

  • Download URL: sartorius-0.2.2-py2.py3-none-any.whl
  • Upload date:
  • Size: 13.8 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.12

File hashes

Hashes for sartorius-0.2.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 5d8d4bb7a670ae8a13759a89f6d3e65083a2760c4fa12fbd13a6c8d9cc0872cf
MD5 0fffa51ad7fddc17a870f6e0e8e9bec3
BLAKE2b-256 a02466dba1ac37f52ea49bc1846d3d3000c2e5b5254d4d35d07561f2ddf0acb9

See more details on using hashes here.

Release history Release notifications | RSS feed

0.7.1

2 files

0.7.0

2 files

0.6.0

2 files

0.5.1

2 files

0.5.0

2 files

0.4.0

2 files

0.3.1

2 files

0.3.0

2 files

This release

0.2.2 This release

2 files

0.2.1

2 files

0.2.0

2 files

0.1.1

2 files

0.1.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page