Weight - HX711 Load Cell and rules
Moderators: grovkillen, Stuntteam, TD-er
Weight - HX711 Load Cell and rules
Hello,
I use the device "Weight" which works very well... Thank you to the developers!!!
I would like to write a rule which set the tare of the scale once a day. (same as if I check the box tare to set the offset on the device config page)
Is it possible to do?
Is there a place where I could find info about that?
Thank you in advance!
Chris
I use the device "Weight" which works very well... Thank you to the developers!!!
I would like to write a rule which set the tare of the scale once a day. (same as if I check the box tare to set the offset on the device config page)
Is it possible to do?
Is there a place where I could find info about that?
Thank you in advance!
Chris
Re: Weight - HX711 Load Cell and rules
I don't know this plugin, but shouldn't it set to "zero" at start (boot) ?
If so, then just wiring the reset button to some accessible point whould just fix that.
The current boot time of the ESPeasy is within 1 sec, only accessing wifi will take a few seconds more, but then the sensors and display should already be active and usable.
If so, then just wiring the reset button to some accessible point whould just fix that.
The current boot time of the ESPeasy is within 1 sec, only accessing wifi will take a few seconds more, but then the sensors and display should already be active and usable.
- grovkillen
- Core team member
- Posts: 3621
- Joined: 19 Jan 2017, 12:56
- Location: Hudiksvall, Sweden
- Contact:
Re: Weight - HX711 Load Cell and rules
It's not yet "wiki guided" but the command is "tare".
Code: Select all
if (command == F("tare"))
{
String log = F("HX711: tare");
Settings.TaskDevicePluginConfigFloat[event->TaskIndex][3] = -UserVar[event->BaseVarIndex + 1];
Plugin_067_OversamplingValue = 0;
Plugin_067_OversamplingCount = 0;
addLog(LOG_LEVEL_INFO, log);
success = true;
}
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you
Re: Weight - HX711 Load Cell and rules
Hello All,
Thank you very much to TD-er and grovkillen for your reply.
@grovkillen: your solution is exactly what I needed!!! It works perfectly
Regards
Chris
Thank you very much to TD-er and grovkillen for your reply.
@grovkillen: your solution is exactly what I needed!!! It works perfectly
Regards
Chris
- grovkillen
- Core team member
- Posts: 3621
- Joined: 19 Jan 2017, 12:56
- Location: Hudiksvall, Sweden
- Contact:
Re: Weight - HX711 Load Cell and rules
Thanks for the feedback.
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you
Re: Weight - HX711 Load Cell and rules
For this purpose, you might need a real-time clock (RTC) or use the timer inbuilt in your microcontroller . Most microcontrollers have unreliable timers as they tend to exhibit lagging after a while. Below is a simple algorithmic step to follow:
- Step 1: SET TIME for which TARE should occur. That is something like an alarm. The time should be when the scale is not expected to be active, that is when it has no-load on it.
Step 2: IF it is time THEN Tare the scale. The if-then statement will have the TARE code as its body of the statement.
Re: Weight - HX711 Load Cell and rules
Has this ever made it into the wiki ?
just another DIY tinkerer
Re: Weight - HX711 Load Cell and rules
Not sure if the Wiki will get updates, but it would be great to write it down in the readTheDocs.
Right now, this page is written in a rather "minimalistic" style... https://espeasy.readthedocs.io/en/lates ... #p067-page
Right now, this page is written in a rather "minimalistic" style... https://espeasy.readthedocs.io/en/lates ... #p067-page
Who is online
Users browsing this forum: No registered users and 33 guests