Crate owread

Crate owread 

Source
Expand description

owreadRust version

§Read a value from owserver ( from a 1-wire device )

owread is a tool in the 1-wire file system OWFS

This Rust version of owread is part of owrust – the Rust language OWFS programs

§SYNTAX

owread [OPTIONS] PATH

§PURPOSE

Read the value of a device property

  • Often a sensor reading like 10.4323424342/temperature
  • can also be informational like 10.4323424342/type

§OPTIONS

  • -s IP:port (default localhost:4304)
  • `–hex show the value in hexidecimal
  • `–size n return only n bytes
  • `–offset m start return at byte m
  • -h for full list of options

§PATH

  • 1-wire path to a file
  • No Default
  • More than one path can be given

owread only works on files, not directories. Use owget to read both files and directories.

§USAGE

  • owserver must be running in a network-accessible location
  • owread is a command line program
  • output to stdout
  • errors to stderr

§EXAMPLE

Read a temperature

owread /10.67C6697351FF/temperature
    85.7961

Read temperature in hex

owread /10.67C6697351FF/temperature --hex
20 20 20 20 20 37 36 2E 31 35 38 35

{c} 2025 Paul H Alfille – MIT Licence

Functions§

from_path 🔒
main 🔒