DIGITEMP(1)
π DIGITEMP π
okay bestie, listen up β this is the manual page for digitemp, a little general commands manual situation, and honestly? it's iconic. she reads temperatures off 1-wire sensors and she does NOT miss. let's get into it. π¦
β¨ NAME β¨
digitemp β the program that reads from 1-wire temperature sensors. that's it, that's the girl. π
πΈ SYNOPSIS πΈ
digitemp [options]
no subcommands, no drama, just options. slay.
π DESCRIPTION π
so DigiTemp uses the Dallas 1-wire bus to read temperatures from digital sensors attached to a serial port adapter. it literally handles everything: initializing the bus, searching for attached devices, reading devices, and custom log strings. a whole multitasker. π
the temperature devices she supports:
DS1820DS18S20DS18B20DS1822
she ALSO handles the DS2406 1-wire hub switches, and the DS2422 and DS2423 counters. not just a one-trick pony fr fr. π₯
and for hardware? DigiTemp uses either the DS9097 passive serial port adapter, or the DS2480B based DS9097U adapter. 1-wire adapters from ibuttonlink.com, such as the Link45, are also supported. so many options bestie, we love a flexible queen. π
π OPTIONS π
okay so the rules: at least 1 action must be given, along with some optional arguments. actions are one (and only on) of the -w -t -a -w options. yes, that's how it's written, i don't make the rules. π
-h,-?β show a summary of options. the lil help me bestie move.-vβ show verbose output. she's chatty, we love that.-iβ initialize.digitemprcfile, search the bus for all supported devices. manifesting your config into existence β¨-Iβ initialize.digitemprcfile, search the bus for all supported devices, store devices in sorted serial # order. same energy, but organized. main character with a planner.-wβ walk the full device tree and display the serial number and type of all devices detected on the bus. going for a lil stroll πΆββοΈ-s /dev/ttyS0β set serial port to use. make sure you have permission to access this port, bestie, don't get caught lackin. for USB operation passUSBinstead of/dev/ttySX.-l /var/log/temperatureβ send output to logfile. the output format is defined by the.B -ocommand.-c digitemp.confβ set digitemp configuration file. the default is.digitemprcin the current directory.-r 1000β read delay in ms. this sets the amount of time to wait between sending the temperature conversion command and reading the result. theDS18S20takes about750mSto do the temperature conversion. default is1000mS(1 sec). patience is a virtue ig π-t #β read sensor number#. the#depends on the order of the sensors in the.digitemprcfile.-qβ quiet output, no copyright banner. shy era.-aβ read all sensors. all of them. every single one. π«Ά-Aβ treatDS2438as A/D converter, output raw voltages and currents.-d 5β delay between samples (in seconds).-n 50β number of times to repeat the command.-O"counter format string"β see Counter Format below. π-o [1..3] ["output format string"]β see Temperature Format below. π-H"Humidity format string"β see Humidity Format below. π
π‘οΈ Temperature Format π‘οΈ
the temperature format can be either a numeric value, or a string. the numeric values select pre-configured output formats:
1 = One line per sensor, time, C, F (default)
2 = One line per sample, elapsed time, temperature in C
3 = Same as #2, except temperature is in F
#2 and #3 have the data separated by tabs, suitable for import into a spreadsheet or other graphing software. spreadsheet girlies rise up π
the format string uses strftime tokens plus 5 special ones for DigiTemp:
%sβ for sensor #%Cβ for centigrade%Fβ for fahrenheit%Rβ to output the hex serial number%Nβ for seconds since Epoch.
β οΈ the case of the token is important! do not play with her like that. case matters!!
the default format string is:
"%b %d %H:%M:%S Sensor %s C: %.2C F: %.2F"
which gives you an output of:
May 24 21:25:43 Sensor 0 C: 23.66 F: 74.59
look at her. gorgeous. πΈ
the DS2438 sensor can be used for a variety of things. it includes a temperature sensor and an A/D converter. DigiTemp defaults to using it as a humidity sensor. the raw voltages and currents can be displayed by passing the -A argument.
when the -o2 or -o3 log options are used, the attached DS2438's temperatures will be output without the humidity. noted, no cap.
π’ Counter Format String π’
the counter format string is similar, adding these tokens:
%nβ is the counter #, which depends on its position in the.digitemprcfile%Cβ is the count in decimal.
π§ Humidity Format String π§
the humidity format string is the same as the temperature format string with the addition of this format specifier:
%hβ is the humidity in0-100%
π AUTHOR π
this manual page was written by JesΓΊs Roncero <jesus@roncero.org>, for the Debian project (but may be used by others). modifications by Brian C. Lane <bcl@brianlane.com>. legends, both of them. π
π₯ UPDATES π₯
DigiTemp updates can be found on the http://www.digitemp.com website. go check her out.
and that's the whole page bestie, no crumbs left. this version is from August 2008, it's the DIGITEMP(1) manual, and she ate. periodt. π
β¨ππ¦
π¦ where this page comes from
- debian bookworm: digitemp 3.7.2-2 Β· GPL-2.0-or-later
- debian trixie: digitemp 3.7.2-2 Β· GPL-2.0-or-later
- epel 9: digitemp 3.7.2-6.el9 Β· GPLv2+
- fedora 43: digitemp 3.7.2-15.fc43 Β· GPL-2.0-or-later
- fedora 44: digitemp 3.7.2-17.fc44 Β· GPL-2.0-or-later
- ubuntu jammy: digitemp 3.7.2-2 Β· GPL-2.0-or-later
- ubuntu noble: digitemp 3.7.2-2 Β· GPL-2.0-or-later
- ubuntu questing: digitemp 3.7.2-3
- ubuntu resolute: digitemp 3.7.2-3build1 Β· GPL-2.0-or-later
- ubuntu stonking: digitemp 3.7.2-3build1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms