Weight - HX711 Load Cell and rules

Moderators: Voyager, BertB, rtenklooster, Stuntteam, Martinus, grovkillen, TD-er

Post Reply
Message
Author
Asco
Normal user
Posts: 9
Joined: 24 Jun 2018, 17:48

Weight - HX711 Load Cell and rules

#1 Post by Asco » 11 Jul 2018, 14:11

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

TD-er
Normal user
Posts: 1052
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Weight - HX711 Load Cell and rules

#2 Post by TD-er » 14 Jul 2018, 07:25

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.

User avatar
grovkillen
Normal user
Posts: 1900
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: Weight - HX711 Load Cell and rules

#3 Post by grovkillen » 14 Jul 2018, 08:43

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]
Sponsor ESP Easy, we need you :idea: :idea: :idea:

Asco
Normal user
Posts: 9
Joined: 24 Jun 2018, 17:48

Re: Weight - HX711 Load Cell and rules

#4 Post by Asco » 03 Aug 2018, 16:01

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

User avatar
grovkillen
Normal user
Posts: 1900
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: Weight - HX711 Load Cell and rules

#5 Post by grovkillen » 03 Aug 2018, 16:08

Asco wrote:
03 Aug 2018, 16:01
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
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]
Sponsor ESP Easy, we need you :idea: :idea: :idea:

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests