Commit Graph

30 Commits

Author SHA1 Message Date
Theo Arends 1f3bb675ba HX711 redesign (#13986)
- Add HX711 command ``Sensor34 10 0|1|<weight in gram>`` to set HX711 fixed tare (0 = use auto tare, 1 = use calibrated tare, Any other value is user selected tare)
- HX711 removed command ``Sensor34 7`` as now active tare is persistent resulting in calculated current weight
- Changed HX711 commands ``Sensor34 11 <valueA>`` and ``Sensor34 12 <valueB>`` to use HX711 absolute weight conversion (#15292)
2022-04-09 18:24:37 +02:00
Theo Arends 97da53193c Fix weight_item display regression 2022-04-07 15:52:55 +02:00
Theo Arends ccdd8c9861 Add Sensor34 commands
Add commands ``Sensor34 10 <valueA>`` and ``Sensor34 11 <valueB>`` to use HX711 absolute weight conversion (#15292)
2022-04-07 15:06:21 +02:00
Theo Arends 5a507a5c6e Fix HX711 false readings by removing large deviations 2022-04-06 15:09:35 +02:00
Theo Arends e047c90228 Add TasShiftIn function
Add TasShiftIn function for future use.
2022-04-03 18:20:07 +02:00
Theo Arends a80a100efb Consolidate HX711 ShiftIn function
Consolidate HX711 ShiftIn function (#13983)
2022-04-03 17:51:03 +02:00
Theo Arends 5e805e0c4a Move Settings from DRAM to heap 2021-06-11 18:14:12 +02:00
c210392 cc692e490f Spelling fixes 2021-05-06 17:45:48 +10:00
Theo Arends 5db9b6f2c9 Refactor Gui Configure Scale save settings 2021-05-03 17:37:17 +02:00
Theo Arends 2f5c20a42f Add more rule triggers 2021-04-07 15:07:05 +02:00
Theo Arends e6bff6bf9e Standardize on unconnected pin being -1 2021-02-14 13:06:19 +01:00
Theo Arends aea856ca2c Refactor command line arguments 2021-01-30 12:48:44 +01:00
Theo Arends ac054ea666 Refactor AddLog usage 2021-01-23 17:10:06 +01:00
Stephan Hadinger 2f139d0e47 More PROGMEM 2021-01-18 21:48:04 +01:00
Barbudor 7797403f0b add missing quotes around %s in JSON response 2021-01-02 23:38:13 +01:00
Theo Arends dcbb3f1e0e Happy New Year 2021-01-01 13:44:04 +01:00
Theo Arends fa7fdbd51a Consolidate `AddLog_P`
Consolidate `AddLog_P` into `AddLog_P2` and rename to `AddLog_P`
2020-11-06 17:09:13 +01:00
Christopher Tremblay b5b6b97295 Swapped strstr for strchr where applicable
strstr calls with a single character were changed to strchr which should be more efficient.
2020-11-04 02:20:17 -08:00
Theo Arends af5082320d Use global struct 2020-10-30 12:29:48 +01:00
Stephan Hadinger 1af525619a Webserver->on() optimization phase 2 2020-10-20 18:56:18 +02:00
Theo Arends 86f801c349 Change pin handling part 4/4 2020-04-27 16:47:29 +02:00
Theo Arends 57f836cc9e Remove possible Webserver naming ambuigity 2020-04-15 09:58:38 +02:00
Theo Arends 8aa9109656 Happy New Year
Happy New Year
2019-12-31 14:23:34 +01:00
Theo Arends 424f8c86f4
Update xsns_34_hx711.ino 2019-12-12 14:40:03 +01:00
Thomas Herrmann 2ecb1b1847 Make WeightDelta for JSON message configurable. 2019-12-11 22:03:13 +01:00
Thomas Herrmann b9545f5194 Report raw value from HX711 to overcome auto-tare functionality.
Currently, when the device is switched off (intentionally or due to
power cut), Tasmota only supports starting with the last known weight
(Sensor34 7) or starting with 0 kg. In either case, this is sometimes
not the desired functionality. For off-site logging of weights, it is
more useful to report the raw, absolute value from the HX711 and to do
calibration/tare in upper layers.

Note: although it is called "Raw" value, the value is both averaged
and scaled! It is just the offset compensation that is missing.
2019-12-10 10:55:46 +01:00
Theo Arends 7777fa08b0 Sanitize code 2019-11-20 20:53:12 +01:00
Theo Arends 48e15216be Refactor Sensor MQTT data adding rule support 2019-11-10 17:40:37 +01:00
Theo Arends 5f4e38023d Add SetOption comments to code 2019-11-03 12:33:36 +01:00
Theo Arends 0e07397ff7 Change Sonoff-Tasmota to Tasmota 2019-10-27 12:04:08 +01:00