Hello,
I would like to make a formula: My sensor post 8 cm HC-sr-04. I would like to calculate a volume. 8*(100*100).
Someone has an idea?
Thank you for the coperation
Best regards Vinc
Formula Rules
Moderators: grovkillen, Stuntteam, TD-er
Re: Formula Rules
try to activate the formula option in the hc sr 04 ino . you will have to compile.isva wrote:Hello,
I would like to make a formula: My sensor post 8 cm HC-sr-04. I would like to calculate a volume. 8*(100*100).
Someone has an idea?
Thank you for the coperation
Best regards Vinc
Domoticz on Raspi 2 -- 14 ESP units (hacked Sonoff,NodeMCUs, Wemos, self-built units) running with RC140- Mega 2.0.0 dev8
Re: Formula Rules
Hello,
Wehre can I compile?
Do you have an example for the formula?
Thank you
Best regards
Wehre can I compile?
Do you have an example for the formula?
Thank you
Best regards
Re: Formula Rules
In order to compile, you have to download the source files, modify them and then compile them in the ArduinoIDE. There is a tutorial in the wiki
There is however a simpler solution to your problem; rules :-
1. Activate rules under the advanced tab
2. Create a dummy device with value name Volume (for example as task 2)
3. Under rules tab enter the following code
Code: Select all
On US#distance do //whenever there is a Ultrasonic distance measurement do:
Taskvalueset 2,1,[US#distance]*100*100 // use the value obtained by ultrasoundsensor, do your calculation and write it to the dummy
Endon
Domoticz on Raspi 2 -- 14 ESP units (hacked Sonoff,NodeMCUs, Wemos, self-built units) running with RC140- Mega 2.0.0 dev8
Who is online
Users browsing this forum: No registered users and 99 guests