Jump to content

Variables


C Martin

Recommended Posts

Posted

when using the wait function, there must be a count down timer or variable. It might be nice to be able to set some flags based on where the countdown for the wait function might be.

ie. if I have 3 day wait, I might want to be able to check, lets say at day 2 of the 3 day wait to run another program to do something else if a certain condition might exist.

sometime. I might want to know when a long wait function reaches some point within the wait variable. It is kinf=d of hard to explain, I guess.

I am sure that I can simulate this by using multiple waits back-to-back in the program.

There are times when I don't know exactly when the wait was triggered, and I want to know haw far into the count the wait is.

 

I get a little abstract sometimes when I program.

Posted

the problem is; you won't know how far into the count you are in.

I have some three day waits for rainy day delays. I would like to have programs that can be triggered - maybe to check last rain falls,etc. Or maybe just get a status.

Thanks.

Posted

+1, I'd like timers themselves so we don't have to write separate programs for waits.

 

For example on a occupancy wait that times out in 90 minutes. I could have a condition that if it's within 5 minutes of the end of the countdown that a scene of lights can be flashed a couple of times to indicate it is close.

 

I do that by adding a shorter wait time now, flashing the lights, and resuming the wait. But with a time remaining, I could have it query a car status request (working on something for that), maybe examine last time a motion sensor was triggered (via a countdown timer on that).

 

Alan

Posted

Access to "last changed" timestamp of a variable in programs could help with this problem. Set variable at the beginning of your wait then have a program that looks for "var last changed > 2 hours".

 

I'd also like to see devices have last changed timestamp and have them accessible in program conditions... but I digress...

 

 

Sent from my iPad using Tapatalk

Posted

On that vein of device change status, would like to be able to keep a history per device of last activations. Go to a screen and see that the kitchen light was turn on at :

 

2:03 pm control on

2:30 pm scene kitchen_motion_off

3:05 om control fast-on

 

Something like that, formatted for spreadsheet. It's MAYBE possible with network resources to make up that web page "log".

Posted

Autonow

 

Sure. Click on the name and over type to whatever you want. I rename all my variables. Some folks will start Integers with an i and State with an s for easy identification of type.

Posted
On that vein of device change status, would like to be able to keep a history per device of last activations. Go to a screen and see that the kitchen light was turn on at :

 

2:03 pm control on

2:30 pm scene kitchen_motion_off

3:05 om control fast-on

 

Something like that, formatted for spreadsheet. It's MAYBE possible with network resources to make up that web page "log".

 

 

Do you mean like this:

 

 

This is the ISY log, exported to excel and sorted by Device and Time.

 

-Xathros

post-1437-140474160109_thumb.jpg

Posted

Autonow-

 

Variable names CANNOT contain spaces. ".", "-", and "_" are all Ok.

 

-Xathros

Posted

 

This is the ISY log, exported to excel and sorted by Device and Time.

 

-Xathros

 

Yes pretty much like that, except without having to monkey with it at all..

Posted

I knew I had tried that once before but no luck. After I type in the name, it will not save. It reverts back to State_1 when I hit enter. I have tried adding a variable, I have hit save (does not seem to be active) There must be a trick.

 

 

Autonow

 

Sure. Click on the name and over type to whatever you want. I rename all my variables. Some folks will start Integers with an i and State with an s for easy identification of type.

Posted

I double click the Name field to open it for update. Type the new name, hit enter which enables Save and click Save. If it does not work that way what is the level of Java being used.

 

Try double clicking the Name field, entering the new name. Without hitting enter single click another field such as Init.

If that enables Save click Save.

Posted

It really sounds like there is a space or other invalid character in the name.

 

-Xathros

Posted

Xathros posted that information about five posts back. It is useful to review all the posts in a topic as the answer is often in an earlier post.

  • 4 weeks later...
Posted

Can someone explain to me what's the point of such stupid spam posts? For the life of me I just don't get it. If they would advertise their product I would understand, but what's the purpose of spamming forums with just plain incoherent sentences?

 

Sent from my SPH-D710 using Tapatalk 2

Posted

Some forum spam controls prevent the posting of links or images on the first post for a new user or until a minimum number of previous posts has been reached. The spammers just assume all forums do this now.

 

-Xathros

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...