OnWorks favicon

owwrite - Online in the Cloud

Run owwrite in OnWorks free hosting provider over Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

This is the command owwrite that can be run in the OnWorks free hosting provider using one of our multiple free online workstations such as Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator



owdir, owread, owwrite, owget, owexist, owpresent - lightweight owserver access


Minimal options
owdir -s [host:]port [directory]
owread -s [host:]port filepath
owwrite -s [host:]port filepath value
owget -s [host:]port [directory] | filepath

Server discovery
owdir --autoserver [directory]
owread --autoserver filepath
owwrite --autoserver filepath value
owget --autoserver [directory] | filepath

Full options
owdir -q --quiet -f --format f[.]i[[.]c] ] [ --dir ] -s [host:]port [directory]
[directory2 ...]

owread -q --quiet -C --celsius -K --kelvin -F --fahrenheit -R --rankine [ --hex ] [
--start= offset ] [ --size= bytes ] -s [host:]port filepath [filepath2 ...]

owwrite -q --quiet -C --celsius -K --kelvin -F --fahrenheit -R --rankine [ --hex ] [
--start= offset ] -s [host:]port filepath value [filepath2 value2 ...]

owget -q --quiet -f --format f[.]i[[.]c] -C --celsius -K --kelvin -F --fahrenheit -R
--rankine [ --hex ] [ --start= offset ] [ --size= bytes ] [ --dir ] -s [host:]port
[directory] | filepath

owdir -V --version
owread -V --version
owwrite -V --version
owget -V --version

owdir -h | --help
owread -h | --help
owwrite -h | --help
owget -h | --help


1-wire is a wiring protocol and series of devices designed and manufactured by Dallas
Semiconductor, Inc. The bus is a low-power low-speed low-connector scheme where the data
line can also provide power.

Each device is uniquely and unalterably numbered during manufacture. There are a wide
variety of devices, including memory, sensors (humidity, temperature, voltage, contact,
current), switches, timers and data loggers. More complex devices (like thermocouple
sensors) can be built with these basic devices. There are also 1-wire devices that have
encryption included.

The 1-wire scheme uses a single bus master and multiple slaves on the same wire. The bus
master initiates all communication. The slaves can be individually discovered and
addressed using their unique ID.

Bus masters come in a variety of configurations including serial, parallel, i2c, network
or USB adapters.

OWFS design
OWFS is a suite of programs that designed to make the 1-wire bus and its devices easily
accessible. The underlying principle is to create a virtual filesystem, with the unique ID
being the directory, and the individual properties of the device are represented as simple
files that can be read and written.

Details of the individual slave or master design are hidden behind a consistent interface.
The goal is to provide an easy set of tools for a software designer to create monitoring
or control applications. There are some performance enhancements in the implementation,
including data caching, parallel access to bus masters, and aggregation of device
communication. Still the fundemental goal has been ease of use, flexibility and
correctness rather than speed.

OWSHELL programs
owdir owread owwrite and owget are collectively called the owshell programs. They allow
lightweight access to an owserver (1) for use in command line scripts.

Unlike owserver (1) owhttpd (1) owftpd (1) owhttpd (1) there is not persistent connection
with the 1-wire bus, no caching and no multithreading. Instead, each program connects to a
running owserver (1) and performs a quick set of queries.

owserver (1) performs the actual 1-wire connection (to physical 1-wire busses or other
owserver programs), performs concurrency locking, caching, and error collection.

owshell programs are intended for use in command line scripts. An alternative approach is
to mount an owfs (1) filesystem and perform direct file lists, reads and writes.

owdir performs a directory listing. With no argument, all the devices on the main 1-wire
bus will be listed. Given the name of a 1-wire device, the available properties will be
listed. It is the equivalent of

ls directory

in the owfs (1) filesystem.

owread obtains for value of a 1-wire device property. e.g. 28.0080BE21AA00/temperature
gives the DS18B20 temperature. It is the equivalent of

cat filepath

in the owfs (1) filesystem.

owwrite performs a change of a property, changing a 1-wire device setting or writing to
memory. It is the equivalent of

echo value > filepath

in the owfs (1) filesystem.

owget (1) is a convenience program, combining the function of owdir (1) and owread (1) by
first trying to read the argument as a directory, and if that fails as a 1-wire property.


Find an owserver using the Service Discovery protocol. Essentially Apple's Bonjour (aka
zeroconf). Only the first owserver will be used, and that choice is probably arbitrary.

-s [host:]port
Connect via tcp (network) to an owserver process that is connected to a physical 1-wire
bus. This allows multiple processes to share the same bus. The owserver process can be
local or remote.

If the server option is not specified, the default is the local machine and the IANA
allocated default port of 4304. Thus "-s localhost:4304" is the equivalent.



Hexidecimal mode. For reading data, each byte of character will be displayed as two
characrters 0-9ABCDEF. Most useful for reading memory locations. No spaces between data.

Writing data in hexidecimal mode just means that the data should be given as one long
hexidecimal string.


Read or write memory locations starting at the offset byte rather than the beginning. An
offset of 0 means the beginning (and is the default).


Read up to the specified number of bytes of a memory location.


-h --help
Shows (this) basic summary of options.

-V --version
Version of this program.


Modify the display of directories to indicate which entries are also directories. A
directory member will have a trailing '/' if it is a directory itself. This aids recursive

-f --format f[.]i[[.]c]
Display format for the 1-wire devices. Each device has a 8 byte address, consisting of:

f family code, 1 byte

i ID number, 6 bytes

c CRC checksum, 1 byte

Possible formats are f.i (default, 01.A1B2C3D4E5F6), fi fic f.ic f.i.c and fi.c

All formats are accepted as input, but the output will be in the specified format.


owdir -s 3000 --format fic
Get the device listing (full 16 hex digits, no dots) from the local owserver at
port 3000

owread -F --autoserver 51.125499A32000/typeK/temperature
Read temperature from the DS2751-based thermocouple on an auto-discovered owserver
Temperature in fahrenheit.

owwrite -s 32.000800AD23110/pages/page.1 "Passed"
Connect to a OWFS server process ( owserver ) that was started on another machine
at tcp port 3001 and write to the memory of a DS2780

Use owwrite online using onworks.net services

Free Servers & Workstations

Download Windows & Linux apps

  • 1
    Music Caster
    Music Caster
    Music Caster is a tray music player
    that lets you cast your local music to a
    Google Cast device. On the first run,
    you will need to click the arrow in your
    Download Music Caster
  • 2
    PyQt is the Python bindings for
    Digia's Qt cross-platform
    application development framework. It
    supports Python v2 and v3 and Qt v4 and
    Qt v5. PyQt is avail...
    Download PyQt
  • 3
    Sardi is a complete restyling and
    optimisation of svg code. 6 choices for
    your applications and 10 kind of folders
    to use in your file manager. The sardi
    Download Sardi
  • 4
    LMMS Digital Audio Workstation
    LMMS Digital Audio Workstation
    LMMS is a free cross-platform software
    which allows you to produce music with
    your computer. If you like this project
    consider getting involved in the project
    Download LMMS Digital Audio Workstation
  • 5
    FreeRTOS Real Time Kernel (RTOS)
    FreeRTOS Real Time Kernel (RTOS)
    FreeRTOS is a market-leading real-time
    operating system (RTOS) for
    microcontrollers and small
    microprocessors. Distributed freely
    under the MIT open source lice...
    Download FreeRTOS Real Time Kernel (RTOS)
  • 6
    Avogadro is an advanced molecular
    editor designed for cross-platform use
    in computational chemistry, molecular
    modeling, bioinformatics, materials
    science and ...
    Download Avogadro
  • More »

Linux commands

  • 1
    aa-clickquery - program for querying
    click-apparmor DESCRIPTION: This program
    is used to query click-apparmor for
    information. USAGE: aa-clickquery
    Run aa-clickquery
  • 2
    aa-exec-click - program for executing
    click packages under confinement
    DESCRIPTION: This program is used to
    execute click package under AppArmor
    confinement. I...
    Run aa-exec-click
  • 3
    cpmcp - copy files from and to CP/M
    disks ...
    Run cpmcp
  • 4
    cpmls - list sorted contents of
    directory ...
    Run cpmls
  • 5
    g.proj - Prints or modifies GRASS
    projection information files (in various
    co-ordinate system descriptions). Can
    also be used to create new GRASS
    locations. KE...
    Run g.projgrass
  • 6
    g.region - Manages the boundary
    definitions for the geographic region.
    KEYWORDS: general, settings ...
    Run g.regiongrass
  • More »