Maxim Prokhorov
d9e87552ce
ina219: another case of constexpr static binding
2022-05-18 22:48:30 +03:00
Maxim Prokhorov
c9e3cd65f4
sns: constrain only works on a single type
...
make sure we use clamp instead of constrain
2022-05-18 22:18:33 +03:00
Maxim Prokhorov
49cd7fc3f4
sns: fixes for gcc4.8
2022-05-18 22:11:33 +03:00
hamed
660d8c339b
sns: add INA219 (current / power monitor)
...
resolves #2501
Co-Authored-by: Maxim Prokhorov <prokhorov.max@outlook.com >
2022-05-18 21:22:32 +03:00
Maxim Prokhorov
8f194848ee
sns: some more error types
2022-05-18 21:22:32 +03:00
Maxim Prokhorov
396733d1fb
sns: show locked address in the description
...
and make sure we use it when trying to read/write something
2022-05-18 21:21:02 +03:00
Maxim Prokhorov
77b9cbcb36
sns: flash strings in description
2022-05-18 21:20:10 +03:00
Maxim Prokhorov
6f426da2b6
sns: v9261 instance-local state
2022-05-18 21:20:10 +03:00
Maxim Prokhorov
d8d49b046c
sns: handle modbus errors, make sure to wait for warm-up
2022-05-18 21:20:10 +03:00
Maxim Prokhorov
db550a3f59
sns: fixed-size arguments when dealing with containers
...
make sure we don't just hope that pointer logic works
2022-05-18 21:20:10 +03:00
Maxim Prokhorov
9e6fb0c61d
sns: allow to reload max6675 instance
2022-05-18 21:20:10 +03:00
Maxim Prokhorov
f896d9863d
sns: fix implementation method qualifiers
...
some swserial migrations
also make sure we use pstrs
2022-05-18 21:20:10 +03:00
Maxim Prokhorov
24a8905e87
sns: using stream helpers in ezoph
2022-05-18 21:20:10 +03:00
Maxim Prokhorov
56449c41e6
sns: update dallas to use instance variables
...
simplify the internals and allow to use multiple instances
possibly fix comparison issue with raw int vs. float, when checking for
errors. division may not actually succeed
2022-05-18 21:20:10 +03:00
Maxim Prokhorov
d800445442
sns: bme680 updates for the i2c change
2022-05-18 21:20:10 +03:00
Maxim Prokhorov
79110c1f65
sns: more i2c sensor updates
...
migrate to the new structure
2022-05-18 21:20:10 +03:00
Maxim Prokhorov
93f2608753
sns: vl53l1x updates
...
stronger time types, overrides
init underlying lib object as a member
this might be changed to unique_ptr, in case we really want begin() to
be idempotent and being able to re-init things
(which might not be actually possible?)
2022-05-18 21:20:10 +03:00
Maxim Prokhorov
20203633ed
sns: similar updates to pulse meter
2022-05-18 21:20:10 +03:00
Maxim Prokhorov
34f8f04c94
sns: mics* sensor updates
...
structure, overrides, strong time types
actually use the analog sensor base to read
(and fixing yet another pinmode accident)
2022-05-18 21:20:10 +03:00
Maxim Prokhorov
9cd798ba1a
sns: geiger sensor updates
...
fixed structure, overrides. strong time types
2022-05-18 21:20:10 +03:00
Maxim Prokhorov
d670e85b10
sns: update events sensor
...
updated structure, overrides. strong time type
testing timesource changes. this should work, but might need to tweak
things if it starts to fail b/c of flash code loads
2022-05-18 21:20:10 +03:00
Maxim Prokhorov
c0d6ed1288
sns: actually load bmx280 fixed address from settings
...
conversion is not working for signed ints, only unsigned
2022-05-18 21:20:10 +03:00
Maxim Prokhorov
080d7ab930
sns: more abstract properties for base sensor
...
do not force to implement constructor, just update vtable
continue testing with bme280 class, update structure
2022-05-18 21:20:10 +03:00
Maxim Prokhorov
91b137e92f
sns: do not auto-detect when i2c address is set
...
make sure there's an option for direct address setup
sensor updates are wip, since base sensor code is also changing
2022-05-18 21:20:01 +03:00
Maxim Prokhorov
0005c659e7
i2c: simplify find and locking logic
...
use bitset when locking, avoid manual index & mask calculation
update check() to use boolean logic instead of returning int status
remove wip address-range, just use the {begin, end} pair
uint8_t instead of unsigned char when dealing with data
2022-05-18 21:16:31 +03:00
Maxim Prokhorov
864a8c84fe
i2c: remove extra {begin,end} transmission when reading
2022-05-18 21:16:31 +03:00
Maxim Prokhorov
092db6b3a5
sns: generic wrappers for sensor and filter pointer
...
Avoid confusion between ref and pointer when looping over sensors
Re-use helper class in the magnitude object as well
Remove custom code related to filter movement, just use unique_ptr
Plus, updates filter code to use stl vector where possible
Experimening with dynamic cls id. Perhaps this should be something
else... but, at least there are no longer any header-defined values.
2022-05-18 21:16:31 +03:00
Maxim Prokhorov
85ee526c8a
sns: more flash strings for type prefix and value suffix
2022-05-11 18:12:55 +03:00
Maxim Prokhorov
b080dd9ea6
i2c: ...and show addresses in hex
2022-05-07 15:38:57 +03:00
Maxim Prokhorov
e40f91397b
pio: use git toolchain with -latest-base
...
preemptive fix for the issue resolved in the 3.1.0
2022-05-07 15:25:35 +03:00
Maxim Prokhorov
c0e6372559
i2c: actually show addresses on boot
2022-05-07 15:22:45 +03:00
Maxim Prokhorov
3275f4921f
sns: the rest of magnitude settings
...
As mentioned in the #2491
Hides parent element when these groups are empty
2022-05-06 18:56:54 +03:00
Maxim Prokhorov
c04cdff200
sns: build flag for dummy sensor
2022-05-06 18:56:54 +03:00
Maxim Prokhorov
7c2130b722
pio: prune unused libraries from shared_lib_dir
2022-05-06 15:48:16 +03:00
Xose Pérez
1c9553176d
hw: add support for PM1006 (IKEA Vindriktning) ( #2505 )
...
IKEA Vindriktning Air Quality Sensor
https://www.ikea.com/gb/en/p/vindriktning-air-quality-sensor-80515910/
2022-05-06 14:37:49 +03:00
Ken Nixon
99c3d24bbd
hw: add support for Itead Sonoff POW R3 ( #2506 )
...
Added support for Itead Sonoff POW R3 (https://itead.cc/product/sonoff-powr3/ )
This device is essentially the same as the POW R2, except:
- the relay is a normally closed type,
- the current and power ratings of the device are higher.
2022-05-06 13:47:37 +03:00
Maxim Prokhorov
59bd14966e
webui: rebuild blobs
2022-05-05 22:49:02 +03:00
Maxim Prokhorov
62b2edadc4
sns: show and edit correction values in webui
...
fixes #2491
2022-05-05 22:35:34 +03:00
Maxim Prokhorov
57f04023d4
pio: major version option renames
2022-05-05 20:02:35 +03:00
Maxim Prokhorov
f9df216409
pio: mention registry ui
2022-05-05 17:50:21 +03:00
Maxim Prokhorov
2b50620f92
pio: move some of libraries to the registry
...
While I am still hesitant to call this an improvement,
at least this makes part of the installation slightly faster
2022-05-05 17:50:21 +03:00
Maxim Prokhorov
c971716b66
settings: fixup c-string comparison
...
since it won't decide between String and StringView,
manually direct it to the StringView
2022-05-05 17:50:21 +03:00
Maxim Prokhorov
6b1a2de06d
ir: bump IRremoteESP8266 to 2.8.2
2022-05-05 17:50:21 +03:00
Maxim Prokhorov
128acef7dd
sys: port blocking delay code from Core
2022-05-05 17:50:21 +03:00
Maxim Prokhorov
0c3b1acecc
sns: more flash strings
...
also normalize token values of particle measurements
2022-05-05 17:50:21 +03:00
Maxim Prokhorov
5ccc70e42e
pio: trying to work out 6.0.0 changes
2022-05-05 17:50:21 +03:00
dependabot[bot]
02581c6988
webui: bump minimist from 1.2.5 to 1.2.6 in /code ( #2508 )
...
Bumps [minimist](https://github.com/substack/minimist ) from 1.2.5 to 1.2.6.
- [Release notes](https://github.com/substack/minimist/releases )
- [Commits](https://github.com/substack/minimist/compare/1.2.5...1.2.6 )
---
updated-dependencies:
- dependency-name: minimist
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-11 14:08:35 +03:00
Maxim Prokhorov
791576458f
prometheus: anonymous namespace & fix warnings
...
clangd does not like integer SUPPORT flags and `||`
2022-02-12 17:52:37 +03:00
Maxim Prokhorov
afd914609d
sns: comments & update sensor::Value helpers
2022-02-12 17:51:50 +03:00
Maxim Prokhorov
e5e8f86866
sns: really handle all of available temperature conversions
...
amends e51e259f02
fixing incorrect conversion from kelvin, and also add full
conversion from possible farenheit source (if that ever happens)
experimenting with the idea of unit conversion... while a table-like
approach will work and will be slightly shorter, it would not have the
specific type checks and constexpr still does not play well with lambdas
plus, any conversion function referenced as a pointer will not really
be a constexpr (...and still require c++17 to work correctly when iterating)
2022-02-11 22:09:01 +03:00