This object is in archive! 

Flushing Unused Variables

Alberto Macias shared this question 8 years ago
Need Answer

I was looking into the API looking for an option to flush unused variables without luck, is this possible? or maybe I just cannot find it.

Replies (8)

photo
1

No, variables is totally secret. The only way to se them is by message.

You can't remove unused either.

To se them you have to use virtual meter. But the backside of that is that you create traffic to the server.

photo
1

From old rule creator you can delete variables. Put variable name in the search bar and then right click on it.

photo
1

Yes, but according to an answer on a ticket I got - don't do that. Can creates problems.

photo
1

This is an example of problems after when you uses the old rule creator.

Duplicated rule numbers and total disorder.

Before all rules was in alphabetic order.

photo
1

Here you have the answer on this:

Hello Henry,


regarding the doubling of your Rules I wasn't able to reproduce this issue.


It is not possible to sort Rules alphabetically, they are sorted according to their ordinal numbers.

It is however possible to change a number of the Rule if you drag and drop it in a different place

in Rules creator list.


It is not possible to delete a variable in Rules creator, but it is possible to change its value. I have

discussed this with our developer in charge and he informed me that it might cause problems in

our system so it will not be implemented.It was also not possible to do it in the old UI but our users

used a bug in the old Rules creator to do it. Also please don't use the old UI as a reference since

it is obsolete and no longer debugged.


Enjoy the weekend.


Best regards,


Hrvoje

photo
2

Holy cow!, the only controller I know that cannot delete its own variables... Thanks for the answer. I really dont understand why something this simple can create that amount of problems for zipato.

photo
photo
1

Hi Alberto. Might seem simple, but as we all know, most of the things for Zipato is not simple...3 years now and still no v1.0

photo
4

To delete a variable:

  1. Go to the API
  2. Scroll down to Rules and expand all the operations.
  3. Expand the 'Get all rules' operation and execute it.
  4. Look in the list for the variable you want to delete (note, this list contains variables and rules).
  5. Remember the id of the variable you want to delete.
  6. Expand the 'Delete a Rule' operation (it is incorrectly named Delete a schedule).
  7. Fill in the variable id and press execute.

Voila..

photo
1

Thanks Steven will give it a try.

photo
1

It works thank you!

photo
1

Just in case somebody else deletes variables this way I strongly recommend to reboot and sync your controller immediately after you delete variables. I experimented weird behaviour in between the deletion and the reboot/sync. Tried it a few times and every time there is some weird behaviour like not updating device's status.

photo
1

In case someone prefers a video: https://www.youtube.com/watch?v=itLPzvEUF1I

Leave a Comment
 
Attach a file