This repository has been archived by the owner. It is now read-only.
Read temperature from USB Thermometer (based on DS18B20)
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
LICENSE.md
Makefile
README.md
usbtemp.c

README.md

usb-thermometer

Read temperature from USB thermometer (with DS18B20 1–wire probe).

Supported devices:

How to run it

  1. Clone (or download) this repository (and extract files)
  2. Run $ make to compile the binary
  3. Run the binary: $ ./usbtemp

The output is in degrees Celsius and looks like:

May 13 17:05:02 Sensor C: 22.62

Date/time formatting is %b %d %H:%M:%S.

Troubleshooting

User, running binary, must have permissions to write to /dev/ttyUSB0 or similar character device. Usually, adduser to dialout group or chmod o+rw the character device helps.

Licence

Copyright 2017, jaka

Software is released under the 2-Clause BSD License.