summaryrefslogtreecommitdiff
path: root/usr.sbin/envstat
AgeCommit message (Collapse)Author
2023-06-19Silence wrong maybe-uninitialized raised by GCC/x86_64 10.4.0 -Os.rin
2022-11-21A driver for the Bosch BMP280 / BME280 temperature, humidity andbrad
atmospheric pressure sensor. This is an inexpensive to moderately expensive chip available from a large number of places. The driver supports all aspects of the two chips, except for the repeating read mode which would allow for sub-second queries, such as fall detection or perhaps even as an altimeter. This driver also only supports the I2C interface and not the SPI interface. The BME280, the one with humidity, is not fully tested at this point, awaiting upon a breakout board and may not show proper humidity.
2022-05-28fix various typos, mainly in comments.andvar
2021-11-27usr.sbin: remove unnecessary CONSTCOND, lint no longer needs itrillig
Since 2021-01-31, lint no longer requires a CONSTCOND comment in a do-while-0 statement since this is a common code pattern, especially in statement-like macros. sed -i -E 's,} while \(/\* ?CONSTCOND ?\*/ ?0\),} while (0),' */*.[ch]
2020-11-14New sentence, new line.wiz
Other whitespace fixes, and some Xr fixes.
2020-11-14Add option -n to print only the value of a sensor.mlelstv
If statistics are selected with -T, then also display max, min and average. The empty line between each display is skipped when one or more sensors are selected with -s.
2020-11-14Allow to select raw output for a single device or a list of sensors.mlelstv
2020-11-14For raw output (-x) allow to extract individual properties like drvctl -p.mlelstv
E.g. # envstat -x /vcmbox0/0/cur-value 328150000
2020-06-07Update for proplib(3) API changes.thorpej
2020-04-22Externalize yytext, it belongs to the lexerjoerg
2018-05-27Add support for light sensors that report Illuminance in lux.thorpej
2017-07-03Remove workaround for ancient HTML generation code.wiz
2014-05-18add HYT-221/271/939 humidity/temperature I2C sensorkardel
extend envsys(4) framework by %rH (relative humidity)
2012-12-14Since we're no longer making a copy of the option args, we shouldn'tpgoyette
attempt to free it.
2012-12-13- no point in allocating memory to hold command line arguments.christos
- allocate memory inside the function used.
2012-12-13PR/47316: Henning Petersen: Memory leak in envstat with config file.christos
2012-05-11Fix alignment display for temperature, fans and integer units.njoly
2012-03-15Add __printflike attribution to use vprintf and friends with an argumentjoerg
as format string.
2012-02-09Various English usage, spelling and markup fixes for envstat(4)-relatedriz
things, from Snader_LB.
2011-12-04change printed indicator and battery charge strings from ON and OFF to TRUEjmcneill
and FALSE, because messages like "battery present: ON" are difficult for my brain to parse.
2011-08-31Use __deadjoerg
2011-06-08Instead of relying on the want-percent attribute, use the sensorpgoyette
type to restrict value-based limits from Battery-capacity sensors.
2011-06-07Sort sections.wiz
2011-06-07Add a BUGS section to point out that the statistic "average" is anpgoyette
average only of the current, minimum, and maximum values, and not a running average of all displayed current values.
2011-06-07Zero is a valid value for some sensors so update statistics code topgoyette
handle that.
2011-06-061. Don't print blank for Integer sensors with value of zeropgoyette
2. Properly print percentages in -T statistics mode 3. Always set Sensor Type (units) to a non-NULL value 4. Enable printing of percentages for Integer sensors
2011-06-04Since there is no longer a value-avg property, remove the code thatpgoyette
extracts it.
2010-12-16When skipping output for a temperature of absolute zero, don't forget topgoyette
skip past the display columns that the value would otherwise occupy. Fixes display issue when swsensor(4) is used and it has a value of 0K, as reported by njoly@
2010-12-15Don't need prog_ioctl here, it's a leftover of the previous approach.pooka
pointed out by Paul Goyette
2010-12-14Use a consistent approach for rump kernel calls made by libs.pooka
Should investigate a dynamic approach in the future.
2010-12-13RUMP_ACTION -> RUMPPRGpooka
2010-11-05adapt to new rumpclient_init() signaturepooka
2010-11-05support rump client modepooka
2010-10-05Add option k to synopsis.njoly
2010-10-05Apply proper conversion (which is _no_ conversion) when setting limitpgoyette
values for sensors of type ENVSYS_INTEGER.
2010-10-05Some Integer-type sensors can have limits, so allow them to be displayed.pgoyette
2010-08-26Use <paths.h>. Remove trailing white space.jruoho
2010-08-01Print the correct value for critmin of a fan sensor.mlelstv
2010-07-09Add brief explanations of unit abbreviations.reed
Add units(1) to see also.
2010-03-19Remove aiboost(4) as obsolete and redundant since the introduction of aibs(4).cnst
http://mail-index.netbsd.org/tech-kern/2010/03/06/msg007458.html Reviewed by <pgoyette>, <cegger>, <jruoho>, <tech-kern>.
2010-02-15Document the new {high, maximum}-capacity keywords, and some generalpgoyette
clean-up.
2010-02-15Update cross-reference to refer to new aibs(4) instead of aiboost(4)pgoyette
2010-02-15Update userland envstat(8) to handle new {high,maximum}-capacity limits.pgoyette
2010-02-12Fix double free, when requesting an invalid sensor.njoly
2010-02-12remove the fourth (empty) column from the -T printouts; ok pgoyettecnst
2010-02-09fix a typo resulting in warn-max being shown in two columns (one time ↵cnst
instead of crit-min); ok pgoyette
2010-02-09New aibs(4) driver for ASUSTeK AI Booster (ACPI ATK0110) hardware monitorcnst
with limit support. http://thread.gmane.org/gmane.os.netbsd.devel.kernel/35654 Reviewed by <pgoyette>, <jruoho> and <tech-kern>.
2010-01-30New sentence, new line.wiz
2010-01-30Since we never have both a limit value and a limit %capacity value,pgoyette
remove the Capacity column. Reduce inter-column spacing, and display all four limits on one page, rather than using the -W command line option to switch between critical and warning limits. (The -W option is still permitted, but has no effect.) %capacity limits are displayed in the WarnMin and CritMin columns, but have a trailing % sign.
2009-10-29option noinput nounputchristos