Trying to post runtime stats to fuel stream, error


#1

1) Give a description of the problem
I am trying to post the runtime intervals of my geo thermal unit to fuel stream. But when i check out the fuel stream I get the error, " Data Column for axes #0 cannot be of type string ". So I awesome my problem is that my variable that keeps the runtime is set to dynamic and not an integer. How can I convert my run time from minutes/seconds to an integer ?

2) What is the expected behavior?
What should I convert my dynamic variable that contains the runtime to something stream fuel can understand ?

3) What is happening/not happening?
(PUT YOUR INFO HERE)

**4) Post a Green Snapshot of the piston![image|45x37]

5) Attach any logs (From ST IDE and by turning logging level to Full)
(PASTE YOUR LOGS HERE BETWEEN THE MARKS)

REMOVE BELOW AFTER READING


#2

Juse use integer(variableName) in an expression.

More here: https://wiki.webcore.co/Functions


#3

Assuming that your chargestart and chargestop are datetime values, the underlying data is actually tracked as time in milliseconds. If minutes make the most sense for showing in your stream you could convert from milliseconds to minutes rather than using formatDuration. That would be (chargestop - chargestart) / 1000 / 60 to convert from milliseconds to seconds then seconds to minutes.

Geo here too, does it work well for you? I love it, and the desuperheater saves a lot of money on hot water over the winter.


#4

Thanks so much, great help from both of you. I would have never gotten it was in milliseconds. The piston is now working and calculating the correct time !!!

In regards to the geo, love it :slight_smile: . Using my Aeotec HEM to tune the GEO and figure out the most efficient way to use it !!!