• S
    sky_watcher

    @phildunlap Yes, now works fine. And I found that if I want only one value, and that one to be the real time value I have to write like this:

    var rawValues = pressure.last(1, true);
    

    Thank you! Have a great day!

    posted in Mango Automation read more
  • S
    sky_watcher

    @phildunlap Hi Phil, I made some test with some points. I have 3 points, one is the point which trigger the alarm and the other two points are a value for temperature and pressure. These two points are logged into my data base every 3 minutes. When the alarm is triggered it sends me in the email the last value that was recorded into my data base which is not the real time value because after the alarm the temperature and the pressure changed but the new values are not recorded into the data base yet.

    0_1546885986287_1111.jpg

    I think this line, line 7, get the last recorded value, it is a way to get instant value instead?

    0_1546886027759_222.jpg

    Thank you!

    posted in Mango Automation read more
  • S
    sky_watcher

    @phildunlap Ok, let say that my temperature point is recorded in my database every 3 minutes, but my point is updated form PLC at every 5 seconds, (the record at every 3 minutes is made by an average off all readings between those 3 minutes, correct?).

    If my alarm point occurs somewhere between those 3 minutes intervals which value is displayed for T0? Instant value or the last value recorded?

    I came with this problem when I saw that the timestamp for the alarm trigger point and T0 are different.

    I hope I was clear enough :)

    posted in Mango Automation read more
  • S
    sky_watcher

    @phildunlap Thank's, if I put this line I get the same time for all the points.

    ${evt.prettyActiveTimestamp}
    

    But my question is the value in real time or is last value from my database?

    0_1546626888445_1111fdsfgr.jpg

    posted in Mango Automation read more
  • S
    sky_watcher

    @phildunlap Hi Phil, I have to reopen this discussion, today when I played around with the email feature, I was trying to customize the email and I've noticed that the time when the alarm was triggered is not the same with the time for the values, and this make sense because I record that values in the database every minute.

    So I have a question, can I print there the instant value, not a recorded value from my data base? Because when the alarm is triggered that point can have another value that the one that is last recorded in my database.

    0_1546614058426_11sadf.jpg

    posted in Mango Automation read more
  • S
    sky_watcher

    @phildunlap Yes, is working now.

    Thank you a lot! Have a great day!

    posted in Mango Automation read more
  • S
    sky_watcher

    @phildunlap Yes, now work perfect for value, but the time is still in that weird format.

    0_1546548324807_asdf.jpg

    posted in Mango Automation read more
  • S
    sky_watcher

    @phildunlap Still doesn't work, I don't receive any email after this modification.

    0_1546546860524_ddddd.jpg

    posted in Mango Automation read more
  • S
    sky_watcher

    @phildunlap I tried this before, but without removing print statement and did not worked. I tried again now after I've removed the print statement and is not working.

    posted in Mango Automation read more
  • S
    sky_watcher

    @jared-wiltshire I've seen your post after writing to Phil...

    I'll look into the docs and come with an answer.

    Thank you Jared!

    posted in Mango Automation read more