Welcome, Guest
Username: Password: Remember me

TOPIC: How to display consumption for a period.

How to display consumption for a period. 1 year 1 month ago #2672

  • Richter
  • Richter's Avatar
  • Offline
  • Junior Member
  • Posts: 25
  • Karma: 0
I deleted the old file and uploaded a new one.
looks like i broke it
I will do a reinstall. but there was both new and old file in the folder. and there was neither new nor old in the runtime folder. I put a new one there.
Attachments:
The administrator has disabled public write access.

How to display consumption for a period. 1 year 1 month ago #2673

  • Richter
  • Richter's Avatar
  • Offline
  • Junior Member
  • Posts: 25
  • Karma: 0
2 - here was new and old
3 there was not one here, I put a new one
Attachments:
The administrator has disabled public write access.

How to display consumption for a period. 1 year 1 month ago #2674

  • fatkhrus
  • fatkhrus's Avatar
  • Offline
  • Administrator
  • Posts: 868
  • Thank you received: 126
  • Karma: -108
Download intermediate version 2.60.1 for Runtime here: drive.google.com/file/d/1gopWiHAf9o9dPFi...wfB/view?usp=sharing
It should work.

Best regards,
Ruslan
Last Edit: 1 year 1 month ago by fatkhrus.
The administrator has disabled public write access.

How to display consumption for a period. 1 year 1 month ago #2675

  • Richter
  • Richter's Avatar
  • Offline
  • Junior Member
  • Posts: 25
  • Karma: 0
Thank you
it already works.

I'll keep trying
The administrator has disabled public write access.

How to display consumption for a period. 1 year 1 month ago #2676

  • Richter
  • Richter's Avatar
  • Offline
  • Junior Member
  • Posts: 25
  • Karma: 0
Hello,

so I was able to make the tag be stored in the database and the difference calculated per button click.
I would try to activate this tag (button) always at 23:59 and the other one always on the 1st of the month at 0:01.
This would give me value every day and value every month.

But I would like the date and only the energy difference to be displayed in the table of differences. I tried removing and adding in the scripts but it didn't affect the columns. How to remove the column I don't want to display and rename the one I want.
I created a second database, a second table, made a copy of the scripts, renamed the values in the copies of the scripts for the second database and table.
The second table doesn't work at all. the columns don't even appear even though it's a copy of the first table...

I'm running out of ideas to try.
Attachments:
The administrator has disabled public write access.

How to display consumption for a period. 1 year 1 month ago #2677

  • fatkhrus
  • fatkhrus's Avatar
  • Offline
  • Administrator
  • Posts: 868
  • Thank you received: 126
  • Karma: -108
Hello,

To calculate every period you have to use General script type with OnDateChange Execution type. And use inside of this script system tag SystemCurrentDateTimeNewDay (I've used SystemCurrentDateTimeNewMinute in attached example). I've changed your scripts to work correctly. You've forgotten to compile these scripts also. Without that these scripts will not work.
OK. I've understood that it's very hard to work with scripts for you. We will think in the next version how to make operations more easier inside of the table.

Best regards,
Ruslan

File Attachment:

File Name: consumption2.tsp2.zip
File Size:4 KB
The administrator has disabled public write access.
Go to top