Formula trouble with BMP085, probably a bug

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
User avatar
costo
Normal user
Posts: 500
Joined: 21 Nov 2015, 15:03
Location: NL, zw-NB

Formula trouble with BMP085, probably a bug

#1 Post by costo » 17 Dec 2015, 00:28

When I use the Optional Settings in the device tab of the BMP085.
I can write %value%-1.1, or %value%/1.1, or %value%*1.1 (1.1 can ofcourse be any other constant)
After submit I will see what I typed in the Formula , %value% and a '-', '/' or '*'
So this works fine.

But when I want to ADD a constant, there is something wrong.
I can type %value%+0.5 but when I click Submit I read %value% 0.5 .......
so the '+' sign does not work, it will not be displyed AND the value will not be added.

I believe it is a bug because i did erase flash and reflashed ESPEasy but the problem persists.
I wonder if I am the only one with this problem.

Martinus

Re: Formula trouble with BMP085, probably a bug

#2 Post by Martinus » 17 Dec 2015, 14:59

Could be a bug in earlier versions. Can't reproduce it here using core 2.0.0. and ESP build R51
Are you using ESP core 2.0.0.?

User avatar
costo
Normal user
Posts: 500
Joined: 21 Nov 2015, 15:03
Location: NL, zw-NB

Re: Formula trouble with BMP085, probably a bug

#3 Post by costo » 17 Dec 2015, 15:22

I am using core 2.0.0 but ESPEasy version 48.
I will try to update to R51, i did not find it on sourceforge, there is only R48.

I will try harder to find this R51 release 8-)

Martinus

Re: Formula trouble with BMP085, probably a bug

#4 Post by Martinus » 17 Dec 2015, 15:32

You can find latest development releases on github only. These sometimes fixes bugs, but could also introduce new ones. :mrgreen:
https://github.com/ESP8266nu/ESPEasy

Latest development build is R52.

When I feel that a certain version feels stable, I'll upload the zipfile to SourceForge.

VasilijHCN
Normal user
Posts: 18
Joined: 08 Oct 2015, 18:02

Re: Formula trouble with BMP085, probably a bug

#5 Post by VasilijHCN » 23 Dec 2015, 19:35

settings
settings
settings.png (41.06 KiB) Viewed 5025 times
Using last version, pulse counter need to be count*2, no result, formula is %Count%*2 and %Total%*2
I use this for domoticz to multiply pulse counts to 2. also truing this %Count%/0.5 - also fail
Please help, power meter has 1000 impulses per kwh, i ned 2000 impulses. I use another meter with 2000i/kwh, domoticz set impulses for all meters :( .

Martinus

Re: Formula trouble with BMP085, probably a bug

#6 Post by Martinus » 27 Dec 2015, 15:00

You can only use %value% in formula's, it does not use the 'value name'.
So it should be %value%*2

Currently the total counter is only shown in the webgui for some debugging purposes. It was developed for Domoticz Incremental counters that have only one increment value.

VasilijHCN
Normal user
Posts: 18
Joined: 08 Oct 2015, 18:02

Re: Formula trouble with BMP085, probably a bug

#7 Post by VasilijHCN » 28 Dec 2015, 11:48

Thank U, i try this.

Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 62 guests