Monitor sump pump


#21

i was look at the gauge code the last active code is missing
also I tried that I got 2 email at a time instead of one


#22

FYI, you can skip all the /60000, /1000 math operators.

Been testing this one and it works, using formatDuration():


#23

I am have trouble get the gauge to read correct as im not sure wht to set variable type to


#24

Can you post a snapshot of your piston?


#25

here is data


here the gauges


#26

I don’t think those global vars should be using 2 “@@” at the beginning of them.
Global variables should be a single “@varName

Are you actually getting valid data for your global variables? you should be able to check that on the piston page as shown here:

In that example, you can see I’m populating valid data into “sumpTriggerTime” and “sumpDuration”.
So first thing is to make sure you have valid data. Only then can you look at writing to gauges.


#27

Single @variables are global variables, but we now can use double @@variables to make the variable accessable to other instances of webCoRE.


#28

Thanks! Learn something new every day!


#29

The reason for the super variable is because when ties are used you nee two instances of web core


#30

yes i am seeing data the gauge reading are off


#31

@allrak

i tried


i got no email


#32

Try logging it to the console and change the logging level to “full”.
Take a look at the “log info” below and add them into your piston.
The goal here is to make sure your actually getting the data you expect.


#33

yes it did drop


#34

You didn’t actually use [email protected], right? (Just checking)


#35

@slam525i no

also image what are variable type in this


#36

Please be clear on your questions. Which specific variable are you talking about?
I have mine set to all dynamic, as you can see in my piston example I’ve already posted.

It sounds like the piston is working for you, so if something isn’t working as expected, please post the actual piston AND the logs where it’s not doing what you’d expect.

We seem to be going back and forth on this a bit much.


#37

I got it all working except gauges
image
im not sure on type of variable type and code for last active


#38

[email protected]
[email protected]
datetime@SumpTriggerTime5/16/2018, 10:36:35 AM


#39

Hi slam525i what is the code for the last active gauge ?


#40