rin
0517e95fd0
Silence wrong maybe-uninitialized raised by GCC/x86_64 10.4.0 -Os.
2023-06-19 03:03:11 +00:00
brad
068b504f95
A driver for the Bosch BMP280 / BME280 temperature, humidity and
...
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-11-21 21:24:00 +00:00
andvar
86c307248f
fix various typos, mainly in comments.
2022-05-28 10:36:21 +00:00
rillig
6f4965e060
usr.sbin: remove unnecessary CONSTCOND, lint no longer needs it
...
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]
2021-11-27 22:30:25 +00:00
wiz
af09e09a6e
New sentence, new line.
...
Other whitespace fixes, and some Xr fixes.
2020-11-14 20:07:13 +00:00
mlelstv
cc6482f1d2
Add option -n to print only the value of a sensor.
...
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-14 16:32:53 +00:00
mlelstv
48032c2032
Allow to select raw output for a single device or a list of sensors.
2020-11-14 12:36:49 +00:00
mlelstv
799a3dc99b
For raw output (-x) allow to extract individual properties like drvctl -p.
...
E.g.
# envstat -x /vcmbox0/0/cur-value
328150000
2020-11-14 09:11:55 +00:00
thorpej
bba3c68329
Update for proplib(3) API changes.
2020-06-07 00:51:48 +00:00
joerg
f60db1d4f9
Externalize yytext, it belongs to the lexer
2020-04-22 23:51:34 +00:00
thorpej
033d68f1b3
Add support for light sensors that report Illuminance in lux.
2018-05-27 01:39:00 +00:00
wiz
01869ca4d2
Remove workaround for ancient HTML generation code.
2017-07-03 21:28:48 +00:00
kardel
54c2251d60
add HYT-221/271/939 humidity/temperature I2C sensor
...
extend envsys(4) framework by %rH (relative humidity)
2014-05-18 11:46:23 +00:00
pgoyette
270592accd
Since we're no longer making a copy of the option args, we shouldn't
...
attempt to free it.
2012-12-14 05:29:28 +00:00
christos
dd6ce158a9
- no point in allocating memory to hold command line arguments.
...
- allocate memory inside the function used.
2012-12-13 20:06:42 +00:00
christos
83779a48b3
PR/47316: Henning Petersen: Memory leak in envstat with config file.
2012-12-13 19:31:25 +00:00
njoly
8b220255d1
Fix alignment display for temperature, fans and integer units.
2012-05-11 18:41:12 +00:00
joerg
66dd2755f5
Add __printflike attribution to use vprintf and friends with an argument
...
as format string.
2012-03-15 02:02:20 +00:00
riz
af51433848
Various English usage, spelling and markup fixes for envstat(4)-related
...
things, from Snader_LB.
2012-02-09 18:10:26 +00:00
jmcneill
1d4bba4173
change printed indicator and battery charge strings from ON and OFF to TRUE
...
and FALSE, because messages like "battery present: ON" are difficult for my
brain to parse.
2011-12-04 19:34:22 +00:00
joerg
bec77c5f43
Use __dead
2011-08-31 13:32:36 +00:00
pgoyette
eaed4c6e56
Instead of relying on the want-percent attribute, use the sensor
...
type to restrict value-based limits from Battery-capacity sensors.
2011-06-08 16:11:25 +00:00
wiz
c8bcdb2bd2
Sort sections.
2011-06-07 17:47:24 +00:00
pgoyette
40470b7ff0
Add a BUGS section to point out that the statistic "average" is an
...
average only of the current, minimum, and maximum values, and not a
running average of all displayed current values.
2011-06-07 17:28:59 +00:00
pgoyette
83a2ecf6cc
Zero is a valid value for some sensors so update statistics code to
...
handle that.
2011-06-07 17:24:32 +00:00
pgoyette
c84ec94ab0
1. Don't print blank for Integer sensors with value of zero
...
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-06 20:48:56 +00:00
pgoyette
dec626b5e2
Since there is no longer a value-avg property, remove the code that
...
extracts it.
2011-06-04 13:29:02 +00:00
pgoyette
120c01c6d1
When skipping output for a temperature of absolute zero, don't forget to
...
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-16 14:37:23 +00:00
pooka
d84441777f
Don't need prog_ioctl here, it's a leftover of the previous approach.
...
pointed out by Paul Goyette
2010-12-15 15:07:54 +00:00
pooka
57ec646236
Use a consistent approach for rump kernel calls made by libs.
...
Should investigate a dynamic approach in the future.
2010-12-14 08:04:14 +00:00
pooka
3d4766ce57
RUMP_ACTION -> RUMPPRG
2010-12-13 18:00:38 +00:00
pooka
7d1c54af24
adapt to new rumpclient_init() signature
2010-11-05 13:52:41 +00:00
pooka
1ec3731938
support rump client mode
2010-11-05 13:42:37 +00:00
njoly
830a6e0073
Add option k to synopsis.
2010-10-05 10:03:53 +00:00
pgoyette
87b1c2cb4e
Apply proper conversion (which is _no_ conversion) when setting limit
...
values for sensors of type ENVSYS_INTEGER.
2010-10-05 05:03:49 +00:00
pgoyette
58f7870b48
Some Integer-type sensors can have limits, so allow them to be displayed.
2010-10-05 00:14:55 +00:00
jruoho
d439ff278b
Use <paths.h>. Remove trailing white space.
2010-08-26 05:25:57 +00:00
mlelstv
1898a7c316
Print the correct value for critmin of a fan sensor.
2010-08-01 15:39:52 +00:00
reed
a66933c999
Add brief explanations of unit abbreviations.
...
Add units(1) to see also.
2010-07-09 22:24:13 +00:00
cnst
deaf16ef51
Remove aiboost(4) as obsolete and redundant since the introduction of aibs(4).
...
http://mail-index.netbsd.org/tech-kern/2010/03/06/msg007458.html
Reviewed by <pgoyette>, <cegger>, <jruoho>, <tech-kern>.
2010-03-19 04:04:27 +00:00
pgoyette
c4b330d512
Document the new {high, maximum}-capacity keywords, and some general
...
clean-up.
2010-02-15 23:04:11 +00:00
pgoyette
55a81df24d
Update cross-reference to refer to new aibs(4) instead of aiboost(4)
2010-02-15 22:38:28 +00:00
pgoyette
74999bdda4
Update userland envstat(8) to handle new {high,maximum}-capacity limits.
2010-02-15 22:37:14 +00:00
njoly
9a9cbde160
Fix double free, when requesting an invalid sensor.
2010-02-12 14:26:27 +00:00
cnst
7397d018ca
remove the fourth (empty) column from the -T printouts; ok pgoyette
2010-02-12 05:02:40 +00:00
cnst
0854bc43a8
fix a typo resulting in warn-max being shown in two columns (one time instead of crit-min); ok pgoyette
2010-02-09 05:32:51 +00:00
cnst
1c23afa3cb
New aibs(4) driver for ASUSTeK AI Booster (ACPI ATK0110) hardware monitor
...
with limit support.
http://thread.gmane.org/gmane.os.netbsd.devel.kernel/35654
Reviewed by <pgoyette>, <jruoho> and <tech-kern>.
2010-02-09 03:19:50 +00:00
wiz
05f103b5db
New sentence, new line.
2010-01-30 08:57:49 +00:00
pgoyette
c6140fa206
Since we never have both a limit value and a limit %capacity value,
...
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.
2010-01-30 02:56:39 +00:00
christos
aecc92ac3d
option noinput nounput
2009-10-29 14:38:37 +00:00