C Martin Posted July 19, 2013 Posted July 19, 2013 When we finally get system variables, can we also get access to the count down values used in the timer functions?
Michel Kohanim Posted July 19, 2013 Posted July 19, 2013 Hi Clarence, Can you elaborate a bit please? With kind regards, Michel
C Martin Posted July 19, 2013 Author Posted July 19, 2013 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.
apostolakisl Posted July 20, 2013 Posted July 20, 2013 I see your point. But, you can always know how far into the wait you are by checking the program summary page and seeing the last run time.
C Martin Posted July 20, 2013 Author Posted July 20, 2013 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.
arw01 Posted July 20, 2013 Posted July 20, 2013 +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
johnnyt Posted July 21, 2013 Posted July 21, 2013 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
arw01 Posted July 21, 2013 Posted July 21, 2013 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".
Autonow Posted July 22, 2013 Posted July 22, 2013 It is possible to give a name to a variable? instead of "state 1" or "State 2"
LeeG Posted July 22, 2013 Posted July 22, 2013 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.
Xathros Posted July 24, 2013 Posted July 24, 2013 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
Xathros Posted July 24, 2013 Posted July 24, 2013 Autonow- Variable names CANNOT contain spaces. ".", "-", and "_" are all Ok. -Xathros
arw01 Posted July 24, 2013 Posted July 24, 2013 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..
Autonow Posted July 26, 2013 Posted July 26, 2013 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.
LeeG Posted July 26, 2013 Posted July 26, 2013 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.
Xathros Posted July 26, 2013 Posted July 26, 2013 It really sounds like there is a space or other invalid character in the name. -Xathros
Autonow Posted July 26, 2013 Posted July 26, 2013 Figured it out.... The name can not have spaces or weird characters or it will not update
LeeG Posted July 26, 2013 Posted July 26, 2013 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.
ISYhbsh01 Posted August 21, 2013 Posted August 21, 2013 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
Michel Kohanim Posted August 21, 2013 Posted August 21, 2013 Hi hbsh01, I wished I knew. It makes no sense to me. With kind regards, Michel
Xathros Posted August 21, 2013 Posted August 21, 2013 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
Recommended Posts
Archived
This topic is now archived and is closed to further replies.