0
Calculation in the last second of each month
Hi everyone.
I need help from you guys.
As anyone had the need to do a math calculation in the last second of each month?
My idea is to present the client with the difference between this month energy consumption comparing to the last month.
The math is easy, my problem is with the trigger, because we have months with 29 or 30 or 31 days.
So I need to do the calculation ( Double = Thismonthcount - Previousmonthcount ) in the last second of each month.
Thanks for the help.
Customer support service by UserEcho
But if you use it as 1'st of every month then it will update the values at 29/30/31 at 00:00.
Example: Ive made a scheduler that will start the program what then will send out the meters values.
bOS calculates its time like so: time trigger 0:0 for 1 day of month means the start of the day not the end... For you it will send out the values at the end of the last day of the month. at least so far it has worked like that.
Hi Jurgen.
Thanks for the reply.
I'm already doing that, I'm sending the energy report at 1'st 00h. My problem is that i need to compare values between this monthcount and previousmonthcount. If I do that on the 1'st of every month I will be doing 0 kWh - xx kWh.
We only have access to thismonthcount and previous monthcount, nothing more.
If you have any other idea how to get the difference...
My idea is to inclued in the report, for example, "Congratulations, this month you consumed less 25 kWh then the previous month."