Crate owget

Crate owget 

Source
Expand description

owgetRust version

§Read a value or directory from owserver

Combines the functions of owread and owdir

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

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

§SYNTAX

owdir [OPTIONS] PATH

§PURPOSE

owget combines the functions of owread and owget

  • Useful for exploring the owfs structure without knowing if a file is a property or direcory
  • owtree is another way of visulaizing structure
  • using –dir– for directory listing will distiguish files from directories

§OPTIONS

  • -s IP:port (default localhost:4304)
  • --dir Add trailing / for directory elements
  • --bare Suppress non-device entries
  • `–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

§USAGE

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

§EXAMPLE

Read a temperature

owget /10.67C6697351FF/temperature
    85.7961

Get bare root directory

owget --bare
/10.67C6697351FF
/05.4AEC29CDBAAB

{c} 2025 Paul H Alfille – MIT Licence

Functions§

from_path 🔒
main 🔒